Flow123d  jenkins-Flow123d-linux-release-multijob-198
Public Member Functions | Private Attributes | List of all members
SubstanceList Class Reference

#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 Substanceoperator[] (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...
 

Detailed Description

SubstanceList is an envelope around a vector of substances, which provides some additional functionality such as:

Definition at line 82 of file substance.hh.

Member Function Documentation

void SubstanceList::initialize ( const Input::Array in_array)

Read from input array.

Definition at line 68 of file substance.cc.

Here is the caller graph for this function:

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.

const std::vector<std::string>& SubstanceList::names ( )
inline

Definition at line 97 of file substance.hh.

Here is the caller graph for this function:

const Substance& SubstanceList::operator[] ( unsigned int  index)
inline

Definition at line 95 of file substance.hh.

unsigned int SubstanceList::size ( ) const
inline

Definition at line 99 of file substance.hh.

Member Data Documentation

boost::shared_ptr<std::vector<std::string> > SubstanceList::names_
private

Auxiliary list of substance names used in some classes.

Definition at line 107 of file substance.hh.

boost::shared_ptr<std::vector<Substance> > SubstanceList::substances_
private

The actual list of substances.

Definition at line 104 of file substance.hh.


The documentation for this class was generated from the following files: