Flow123d
release_2.1.0-84-g6a13a75
|
#include <substance.hh>
Public Member Functions | |
void | initialize (const Input::Array &in_array) |
Read from input array. More... | |
void | initialize (SubstanceList &list) |
Bind to existing list. More... | |
void | initialize (const std::vector< std::string > &names) |
Construct from a list of names. More... | |
const Substance & | operator[] (unsigned int index) |
const std::vector< std::string > & | names () |
unsigned int | size () const |
Private Attributes | |
std::shared_ptr< std::vector< Substance > > | substances_ |
The actual list of substances. More... | |
std::shared_ptr< std::vector< std::string > > | names_ |
Auxiliary list of substance names used in some classes. More... | |
SubstanceList is an envelope around a vector of substances, which provides some additional functionality such as:
Definition at line 70 of file substance.hh.
void SubstanceList::initialize | ( | const Input::Array & | in_array | ) |
Read from input array.
Definition at line 58 of file substance.cc.
void SubstanceList::initialize | ( | SubstanceList & | list | ) |
Bind to existing list.
Definition at line 71 of file substance.cc.
void SubstanceList::initialize | ( | const std::vector< std::string > & | names | ) |
Construct from a list of names.
Definition at line 78 of file substance.cc.
|
inline |
|
inline |
Definition at line 83 of file substance.hh.
|
inline |
Definition at line 87 of file substance.hh.
|
private |
Auxiliary list of substance names used in some classes.
Definition at line 95 of file substance.hh.
|
private |
The actual list of substances.
Definition at line 92 of file substance.hh.