OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::SimpleTypeData< ElemDataType > Class Template Reference

SimpleTypeData class is a POD repository class. More...

#include <GenericData.hpp>

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

Public Member Functions

 SimpleTypeData ()
 
 SimpleTypeData (const std::string &id)
 
 SimpleTypeData (const std::string &id, const ElemDataType &data)
 
template<typename T >
 SimpleTypeData (const SimpleTypeData< T > &s)
 
SimpleTypeData< ElemDataType > & operator= (const SimpleTypeData< ElemDataType > &s)
 
template<typename T >
SimpleTypeData< ElemDataType > & operator= (const SimpleTypeData< T > &s)
 
const ElemDataType & getData () const
 
ElemDataType & getData ()
 
void setData (const ElemDataType &data)
 
- Public Member Functions inherited from OpenMD::GenericData
 GenericData ()
 
 GenericData (const std::string &id)
 
virtual ~GenericData ()
 
const std::string getID () const
 
void setID (const std::string &id)
 

Private Attributes

ElemDataType data_
 

Detailed Description

template<typename ElemDataType>
class OpenMD::SimpleTypeData< ElemDataType >

SimpleTypeData class is a POD repository class.

Warning
ElemDataType must be copy constructible, and copy assignable

Definition at line 105 of file GenericData.hpp.

Constructor & Destructor Documentation

◆ SimpleTypeData() [1/4]

template<typename ElemDataType>
OpenMD::SimpleTypeData< ElemDataType >::SimpleTypeData ( )
inline

Definition at line 108 of file GenericData.hpp.

◆ SimpleTypeData() [2/4]

template<typename ElemDataType>
OpenMD::SimpleTypeData< ElemDataType >::SimpleTypeData ( const std::string &  id)
inline

Definition at line 109 of file GenericData.hpp.

◆ SimpleTypeData() [3/4]

template<typename ElemDataType>
OpenMD::SimpleTypeData< ElemDataType >::SimpleTypeData ( const std::string &  id,
const ElemDataType &  data 
)
inline

Definition at line 110 of file GenericData.hpp.

◆ SimpleTypeData() [4/4]

template<typename ElemDataType>
template<typename T >
OpenMD::SimpleTypeData< ElemDataType >::SimpleTypeData ( const SimpleTypeData< T > &  s)
inline

Member Function Documentation

◆ getData() [1/2]

◆ getData() [2/2]

template<typename ElemDataType>
ElemDataType& OpenMD::SimpleTypeData< ElemDataType >::getData ( )
inline

Definition at line 132 of file GenericData.hpp.

◆ operator=() [1/2]

template<typename ElemDataType>
SimpleTypeData<ElemDataType>& OpenMD::SimpleTypeData< ElemDataType >::operator= ( const SimpleTypeData< ElemDataType > &  s)
inline

◆ operator=() [2/2]

template<typename ElemDataType>
template<typename T >
SimpleTypeData<ElemDataType>& OpenMD::SimpleTypeData< ElemDataType >::operator= ( const SimpleTypeData< T > &  s)
inline

◆ setData()

template<typename ElemDataType>
void OpenMD::SimpleTypeData< ElemDataType >::setData ( const ElemDataType &  data)
inline

Sets POD data

Parameters
dataPOD data to be set

Definition at line 137 of file GenericData.hpp.

Referenced by OpenMD::ConstraintElem::setMoved(), and OpenMD::ConstraintElem::setMoving().

Member Data Documentation

◆ data_

template<typename ElemDataType>
ElemDataType OpenMD::SimpleTypeData< ElemDataType >::data_
private

Definition at line 140 of file GenericData.hpp.


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