www.cemf.ir
anyList.cpp
Go to the documentation of this file.
1
/*------------------------------- phasicFlow ---------------------------------
2
O C enter of
3
O O E ngineering and
4
O O M ultiscale modeling of
5
OOOOOOO F luid flow
6
------------------------------------------------------------------------------
7
Copyright (C): www.cemf.ir
8
email: hamid.r.norouzi AT gmail.com
9
------------------------------------------------------------------------------
10
Licence:
11
This file is part of phasicFlow code. It is a free software for simulating
12
granular and multiphase flows. You can redistribute it and/or modify it under
13
the terms of GNU General Public License v3 or any other later versions.
14
15
phasicFlow is distributed to help others in their research in the field of
16
granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
17
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
19
-----------------------------------------------------------------------------*/
20
21
22
#include "
anyList.hpp
"
23
24
25
size_t
pFlow::anyList::size
()
const
26
{
27
return
anyList_
.
size
();
28
}
29
30
bool
pFlow::anyList::empty
()
const
31
{
32
return
size()==0;
33
}
34
35
bool
pFlow::anyList::contains
(
const
word
& name)
const
36
{
37
return
names_.search(name);
38
}
39
40
const
pFlow::wordList
&
pFlow::anyList::names
()
const
41
{
42
return
names_;
43
}
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
src
phasicFlow
containers
List
anyList
anyList.cpp
Generated by
1.8.17