Flow123d
jenkins-Flow123d-linux-release-multijob-198
|
#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 | |
boost::shared_ptr< std::vector < Substance > > | substances_ |
The actual list of substances. More... | |
boost::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 82 of file substance.hh.
void SubstanceList::initialize | ( | const Input::Array & | in_array | ) |
Read from input array.
Definition at line 68 of file substance.cc.
void SubstanceList::initialize | ( | SubstanceList & | list | ) |
Bind to existing list.
Definition at line 81 of file substance.cc.
void SubstanceList::initialize | ( | const std::vector< std::string > & | names | ) |
Construct from a list of names.
Definition at line 88 of file substance.cc.
|
inline |
|
inline |
Definition at line 95 of file substance.hh.
|
inline |
Definition at line 99 of file substance.hh.
|
private |
Auxiliary list of substance names used in some classes.
Definition at line 107 of file substance.hh.
|
private |
The actual list of substances.
Definition at line 104 of file substance.hh.