36 #ifndef PARAMETERCOLLECTION_HPP_ 37 #define PARAMETERCOLLECTION_HPP_ 40 #include <boost/shared_ptr.hpp> 41 #include "ChasteSerialization.hpp" 42 #include <boost/serialization/shared_ptr.hpp> 43 #include <boost/serialization/map.hpp> 44 #include "SerializableSingleton.hpp" 45 #include "UnitCollection.hpp" 46 #include "BaseParameterInstance.hpp" 47 #include "ParameterInstance.hpp" 59 static boost::shared_ptr<ParameterCollection>
mpInstance;
64 std::map<std::string, std::pair<std::string, boost::shared_ptr<BaseParameterInstance> > >
mParameters;
86 void AddParameter(boost::shared_ptr<BaseParameterInstance> pParameter,
const std::string& rFirstInstantiated);
105 boost::shared_ptr<BaseParameterInstance>
GetParameter(
const std::string& rName);
129 template<
class Archive>
130 void serialize(Archive & archive,
const unsigned int version)
static boost::shared_ptr< ParameterCollection > SharedInstance()
static boost::shared_ptr< ParameterCollection > mpInstance
std::map< std::string, std::pair< std::string, boost::shared_ptr< BaseParameterInstance > > > mParameters
boost::shared_ptr< BaseParameterInstance > GetParameter(const std::string &rName)
friend class boost::serialization::access
void AddParameter(boost::shared_ptr< BaseParameterInstance > pParameter, const std::string &rFirstInstantiated)
void DumpToFile(const std::string &rFilename)
void serialize(Archive &archive, const unsigned int version)
static ParameterCollection * Instance()