OpenMD  2.5
Molecular Dynamics in the Open
Parameter< ParamType > Class Template Reference

#include <ParameterManager.hpp>

Inheritance diagram for Parameter< ParamType >:
ParameterBase

Public Types

typedef ParameterTraits< ParamType > ValueType
 

Public Member Functions

void setDefaultValue (const ParamType &value)
 
ParamType getData ()
 
virtual bool setData (std::string sval)
 
virtual bool setData (int ival)
 
virtual bool setData (unsigned long int lival)
 
virtual bool setData (RealType dval)
 
virtual bool setData (std::pair< int, int > pval)
 
virtual bool setData (std::vector< RealType > pval)
 
virtual std::string getParamType ()
 
- Public Member Functions inherited from ParameterBase
 ParameterBase ()
 
virtual ~ParameterBase ()
 
bool isOptional ()
 
void setOptional (bool optional)
 
bool hasDefaultValue ()
 
virtual bool isValid ()
 
const std::string & getKeyword ()
 
void setKeyword (const std::string &keyword)
 
bool empty ()
 

Private Member Functions

template<class T >
bool internalSetData (T data)
 

Private Attributes

ParamType data_
 

Additional Inherited Members

- Protected Attributes inherited from ParameterBase
std::string keyword_
 
bool optional_
 
bool defaultValue_
 
bool empty_
 

Detailed Description

template<class ParamType>
class Parameter< ParamType >

Definition at line 204 of file ParameterManager.hpp.

Member Typedef Documentation

◆ ValueType

template<class ParamType >
typedef ParameterTraits<ParamType> Parameter< ParamType >::ValueType

Definition at line 206 of file ParameterManager.hpp.

Member Function Documentation

◆ getData()

template<class ParamType >
ParamType Parameter< ParamType >::getData ( )
inline

Definition at line 208 of file ParameterManager.hpp.

◆ getParamType()

template<class ParamType >
virtual std::string Parameter< ParamType >::getParamType ( )
inlinevirtual

Implements ParameterBase.

Definition at line 229 of file ParameterManager.hpp.

◆ internalSetData()

template<class ParamType >
template<class T >
bool Parameter< ParamType >::internalSetData ( data)
inlineprivate

Definition at line 231 of file ParameterManager.hpp.

◆ setData() [1/6]

template<class ParamType >
virtual bool Parameter< ParamType >::setData ( std::string  sval)
inlinevirtual

Implements ParameterBase.

Definition at line 210 of file ParameterManager.hpp.

◆ setData() [2/6]

template<class ParamType >
virtual bool Parameter< ParamType >::setData ( int  ival)
inlinevirtual

Implements ParameterBase.

Definition at line 213 of file ParameterManager.hpp.

◆ setData() [3/6]

template<class ParamType >
virtual bool Parameter< ParamType >::setData ( unsigned long int  lival)
inlinevirtual

Implements ParameterBase.

Definition at line 216 of file ParameterManager.hpp.

◆ setData() [4/6]

template<class ParamType >
virtual bool Parameter< ParamType >::setData ( RealType  dval)
inlinevirtual

Implements ParameterBase.

Definition at line 219 of file ParameterManager.hpp.

◆ setData() [5/6]

template<class ParamType >
virtual bool Parameter< ParamType >::setData ( std::pair< int, int >  pval)
inlinevirtual

Implements ParameterBase.

Definition at line 222 of file ParameterManager.hpp.

◆ setData() [6/6]

template<class ParamType >
virtual bool Parameter< ParamType >::setData ( std::vector< RealType >  pval)
inlinevirtual

Implements ParameterBase.

Definition at line 225 of file ParameterManager.hpp.

◆ setDefaultValue()

template<class ParamType >
void Parameter< ParamType >::setDefaultValue ( const ParamType &  value)
inline

Definition at line 207 of file ParameterManager.hpp.

Member Data Documentation

◆ data_

template<class ParamType >
ParamType Parameter< ParamType >::data_
private

Definition at line 242 of file ParameterManager.hpp.


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