OpenMD 3.1
Molecular Dynamics in the Open
|
PropertyMap class maintains a list of GenericData. More...
#include <PropertyMap.hpp>
Public Member Functions | |
PropertyMap () | |
trivial constructor | |
virtual | ~PropertyMap ()=default |
Virtual Destructor responsible for deleting all of the generc data in PropertyMap. | |
void | addProperty (std::shared_ptr< GenericData > genData) |
Adds property into property map. | |
bool | removeProperty (const std::string &propName) |
Removes property from PropertyMap by name. | |
std::vector< std::string > | getPropertyNames () |
Returns all names of properties. | |
std::vector< std::shared_ptr< GenericData > > | getProperties () |
Returns all of the properties in PropertyMap. | |
bool | hasProperty (const std::string &propName) |
Checks if property is in this PropertyMap. | |
std::shared_ptr< GenericData > | getPropertyByName (const std::string &propName) |
Returns property. | |
Protected Attributes | |
std::map< std::string, std::shared_ptr< GenericData > > | propMap_ |
PropertyMap class maintains a list of GenericData.
Type of Property is actually GenericData.
Definition at line 69 of file PropertyMap.hpp.
|
inline |
trivial constructor
Definition at line 72 of file PropertyMap.hpp.
void OpenMD::PropertyMap::addProperty | ( | std::shared_ptr< GenericData > | genData | ) |
Adds property into property map.
genData | GenericData to be added into PropertyMap |
Definition at line 53 of file PropertyMap.cpp.
Referenced by OpenMD::AtomType::addProperty(), OpenMD::NonBondedInteractionType::addProperty(), and OpenMD::SimInfo::addProperty().
std::vector< std::shared_ptr< GenericData > > OpenMD::PropertyMap::getProperties | ( | ) |
Returns all of the properties in PropertyMap.
Definition at line 89 of file PropertyMap.cpp.
Referenced by OpenMD::AtomType::getProperties(), OpenMD::NonBondedInteractionType::getProperties(), and OpenMD::SimInfo::getProperties().
std::shared_ptr< GenericData > OpenMD::PropertyMap::getPropertyByName | ( | const std::string & | propName | ) |
Returns property.
propName | name of property |
Definition at line 110 of file PropertyMap.cpp.
Referenced by OpenMD::AtomType::getPropertyByName(), OpenMD::NonBondedInteractionType::getPropertyByName(), and OpenMD::SimInfo::getPropertyByName().
std::vector< std::string > OpenMD::PropertyMap::getPropertyNames | ( | ) |
Returns all names of properties.
Definition at line 79 of file PropertyMap.cpp.
Referenced by OpenMD::AtomType::getPropertyNames(), OpenMD::NonBondedInteractionType::getPropertyNames(), and OpenMD::SimInfo::getPropertyNames().
bool OpenMD::PropertyMap::hasProperty | ( | const std::string & | propName | ) |
Checks if property is in this PropertyMap.
propName | name of property |
Definition at line 99 of file PropertyMap.cpp.
Referenced by OpenMD::AtomType::hasProperty().
bool OpenMD::PropertyMap::removeProperty | ( | const std::string & | propName | ) |
Removes property from PropertyMap by name.
propName | the name of property to be removed |
Definition at line 65 of file PropertyMap.cpp.
Referenced by OpenMD::AtomType::removeProperty(), OpenMD::NonBondedInteractionType::removeProperty(), and OpenMD::SimInfo::removeProperty().
|
protected |
Definition at line 142 of file PropertyMap.hpp.