Tapkee
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ParameterKeyword< T > Struct Template Reference

#include <keywords.hpp>

Public Types

typedef std::string Name
 

Public Member Functions

 ParameterKeyword (const Name &n, const T &dv)
 
 ParameterKeyword (const ParameterKeyword &pk)
 
ParameterKeyword operator= (const ParameterKeyword &pk)
 
Parameter operator= (const T &value) const
 
Parameter operator= (const DefaultValue &) const
 
 operator Name () const
 

Public Attributes

Name name
 
default_value
 

Detailed Description

template<typename T>
struct tapkee::keywords::keywords_internal::ParameterKeyword< T >

ParameterKeyword instance is used to represent a keyword that is assigned to some value. Such an assignment results to instance of Parameter class which can be later checked and casted back to the value it represents.

Usage is

* ParameterKeyword<int> keyword;
* Parameter p = (keyword = 5);
* int p_value = p;
*

Definition at line 46 of file keywords.hpp.

Member Typedef Documentation

typedef std::string Name

Definition at line 48 of file keywords.hpp.

Constructor & Destructor Documentation

ParameterKeyword ( const Name n,
const T &  dv 
)

Definition at line 50 of file keywords.hpp.

ParameterKeyword ( const ParameterKeyword< T > &  pk)

Member Function Documentation

operator Name ( ) const

Definition at line 62 of file keywords.hpp.

ParameterKeyword operator= ( const ParameterKeyword< T > &  pk)
Parameter operator= ( const T &  value) const

Definition at line 54 of file keywords.hpp.

Parameter operator= ( const DefaultValue ) const

Definition at line 58 of file keywords.hpp.

Member Data Documentation

T default_value

Definition at line 68 of file keywords.hpp.

Name name

Definition at line 67 of file keywords.hpp.


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