# PhasicFlow: src/phasicFlow/containers/List/anyList/anyList.cpp Source File
PhasicFlow is an open-source parallel DEM (discrete element method) package for simulating granular flow. It is developed in C++ and can be exectued on both GPU (like CUDA) and CPU.

anyList.cpp
Go to the documentation of this file.
/*------------------------------- phasicFlow ---------------------------------
O C enter of
O O E ngineering and
O O M ultiscale modeling of
OOOOOOO F luid flow
------------------------------------------------------------------------------
Copyright (C): www.cemf.ir
email: hamid.r.norouzi AT gmail.com
------------------------------------------------------------------------------
Licence:
This file is part of phasicFlow code. It is a free software for simulating
granular and multiphase flows. You can redistribute it and/or modify it under
the terms of GNU General Public License v3 or any other later versions.
phasicFlow is distributed to help others in their research in the field of
granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-----------------------------------------------------------------------------*/
#include "anyList.hpp"
size_t pFlow::anyList::size()const
{
return anyList_.size();
}
bool pFlow::anyList::empty()const
{
return size()==0;
}
bool pFlow::anyList::contains(const word& name)const
{
return names_.search(name);
}
const pFlow::wordList& pFlow::anyList::names()const
{
return names_;
}
anyList.hpp
pFlow::List< word >
pFlow::word
std::string word
Definition: builtinTypes.hpp:64
pFlow::anyList::contains
bool contains(const word &name) const
Does container contain this variable name?
Definition: anyList.cpp:35
pFlow::anyList::empty
bool empty() const
Is container empty.
Definition: anyList.cpp:30
pFlow::List::size
size_t size() const
Definition: ListI.hpp:82
pFlow::anyList::size
size_t size() const
Size of container.
Definition: anyList.cpp:25
pFlow::anyList::anyList_
anyListType anyList_
Contains a list of variables with any type.
Definition: anyList.hpp:51
pFlow::anyList::names
const wordList & names() const
List of varibales names.
Definition: anyList.cpp:40