OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
Parameter< ParamType > Class Template Reference
+ Inheritance diagram for Parameter< ParamType >:

Public Types

using ValueType = ParameterTraits<ParamType>
 

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
bool isOptional ()
 
void setOptional (bool optional)
 
bool hasDefaultValue ()
 
virtual bool isValid ()
 
const std::string & getKeyword ()
 
void setKeyword (const std::string &keyword)
 
bool empty ()
 

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 319 of file ParameterManager.hpp.

Member Typedef Documentation

◆ ValueType

template<class ParamType >
using Parameter< ParamType >::ValueType = ParameterTraits<ParamType>

Definition at line 321 of file ParameterManager.hpp.

Member Function Documentation

◆ getData()

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

Definition at line 328 of file ParameterManager.hpp.

◆ getParamType()

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

Implements ParameterBase.

Definition at line 347 of file ParameterManager.hpp.

◆ setData() [1/6]

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

Implements ParameterBase.

Definition at line 333 of file ParameterManager.hpp.

◆ setData() [2/6]

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

Implements ParameterBase.

Definition at line 337 of file ParameterManager.hpp.

◆ setData() [3/6]

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

Implements ParameterBase.

Definition at line 340 of file ParameterManager.hpp.

◆ setData() [4/6]

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

Implements ParameterBase.

Definition at line 330 of file ParameterManager.hpp.

◆ setData() [5/6]

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

Implements ParameterBase.

Definition at line 343 of file ParameterManager.hpp.

◆ setData() [6/6]

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

Implements ParameterBase.

Definition at line 334 of file ParameterManager.hpp.

◆ setDefaultValue()

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

Definition at line 323 of file ParameterManager.hpp.


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