OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::GenericData Class Reference

Base class for generic data which is associated with an id. More...

#include <GenericData.hpp>

Inheritance diagram for OpenMD::GenericData:
OpenMD::AtomData OpenMD::SimpleTypeData< ElemDataType > OpenMD::VectorTypeData< ElemDataType >

Public Member Functions

 GenericData ()
 
 GenericData (const std::string &id)
 
virtual ~GenericData ()
 
const std::string getID () const
 
void setID (const std::string &id)
 

Private Member Functions

 GenericData (const GenericData &)
 
GenericDataoperator= (GenericData &)
 

Private Attributes

std::string id_
 

Detailed Description

Base class for generic data which is associated with an id.

@ class GenericData GenericData.hpp "utils/GenericData.hpp"

Definition at line 64 of file GenericData.hpp.

Constructor & Destructor Documentation

◆ GenericData() [1/3]

OpenMD::GenericData::GenericData ( )
inline

Definition at line 66 of file GenericData.hpp.

Referenced by setID().

◆ GenericData() [2/3]

OpenMD::GenericData::GenericData ( const std::string &  id)
inline

Definition at line 68 of file GenericData.hpp.

References setID().

◆ ~GenericData()

virtual OpenMD::GenericData::~GenericData ( )
inlinevirtual

virtual destructor

Definition at line 71 of file GenericData.hpp.

◆ GenericData() [3/3]

OpenMD::GenericData::GenericData ( const GenericData )
private

Member Function Documentation

◆ getID()

const std::string OpenMD::GenericData::getID ( ) const
inline

Returns the id of this generic data

Returns
the id of this generic data
See also
setID

Definition at line 81 of file GenericData.hpp.

References id_.

Referenced by OpenMD::AtomType::addProperty(), and OpenMD::PropertyMap::addProperty().

◆ operator=()

GenericData& OpenMD::GenericData::operator= ( GenericData )
private

Referenced by setID().

◆ setID()

void OpenMD::GenericData::setID ( const std::string &  id)
inline

Sets the id of this generic data

Parameters
idthe id to be set
See also
getID

Definition at line 90 of file GenericData.hpp.

References GenericData(), id_, and operator=().

Referenced by GenericData(), OpenMD::BaseAtomVisitor::setVisited(), OpenMD::ReplacementVisitor::visit(), OpenMD::LipidHeadVisitor::visit(), OpenMD::DefaultAtomVisitor::visit(), and OpenMD::RBCOMVisitor::visit().

Member Data Documentation

◆ id_

std::string OpenMD::GenericData::id_
private

Definition at line 96 of file GenericData.hpp.

Referenced by getID(), and setID().


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