#include <CombinedOdeSystemInformation.hpp>
Static Public Member Functions | |
static boost::shared_ptr < CombinedOdeSystemInformation > | Instance (const std::vector< AbstractOdeSystem * > &rSubsystems) |
Protected Member Functions | |
CombinedOdeSystemInformation (const std::vector< boost::shared_ptr< const AbstractOdeSystemInformation > > &rSubsystemInfo) | |
CombinedOdeSystemInformation (const CombinedOdeSystemInformation &) | |
CombinedOdeSystemInformation & | operator= (const CombinedOdeSystemInformation &) |
void | Initialise () |
Static Private Attributes | |
static std::vector< struct InstancePointers > | msInstances |
Classes | |
struct | InstancePointers |
Definition at line 43 of file CombinedOdeSystemInformation.hpp.
CombinedOdeSystemInformation::CombinedOdeSystemInformation | ( | const std::vector< boost::shared_ptr< const AbstractOdeSystemInformation > > & | rSubsystemInfo | ) | [protected] |
Main constructor.
Not user accessible - to obtain an instance of this class use the Instance method.
rSubsystemInfo | the information objects of the ODE systems used to construct the system we are providing information about. |
Definition at line 82 of file CombinedOdeSystemInformation.cpp.
References AbstractOdeSystemInformation::mInitialConditions, AbstractOdeSystemInformation::mInitialised, AbstractOdeSystemInformation::mVariableNames, and AbstractOdeSystemInformation::mVariableUnits.
Referenced by Instance().
CombinedOdeSystemInformation::CombinedOdeSystemInformation | ( | const CombinedOdeSystemInformation & | ) | [protected] |
Copy constructor. Not defined.
CombinedOdeSystemInformation& CombinedOdeSystemInformation::operator= | ( | const CombinedOdeSystemInformation & | ) | [protected] |
Overloaded assignment operator. Not defined.
void CombinedOdeSystemInformation::Initialise | ( | void | ) | [protected, virtual] |
We need to provide an Initialise method, but in this case all the work is done by our constructor, so this method does nothing.
Implements AbstractOdeSystemInformation.
Definition at line 116 of file CombinedOdeSystemInformation.cpp.
boost::shared_ptr< CombinedOdeSystemInformation > CombinedOdeSystemInformation::Instance | ( | const std::vector< AbstractOdeSystem * > & | rSubsystems | ) | [static] |
Return a pointer to the singleton instance, creating it if necessary.
rSubsystems | the ODE systems used to construct the system we are providing information about. |
Definition at line 34 of file CombinedOdeSystemInformation.cpp.
References CombinedOdeSystemInformation(), msInstances, CombinedOdeSystemInformation::InstancePointers::pInfoInstance, and CombinedOdeSystemInformation::InstancePointers::subsystemInformation.
Referenced by CombinedOdeSystem::CombinedOdeSystem().
std::vector< struct CombinedOdeSystemInformation::InstancePointers > CombinedOdeSystemInformation::msInstances [static, private] |
The single instance of this class for each vector of sub-systems.
Definition of the instance static member.
Definition at line 61 of file CombinedOdeSystemInformation.hpp.
Referenced by Instance().