Tapkee
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Parameter Class Reference

#include <parameter.hpp>

Public Member Functions

 Parameter ()
 
 Parameter (const Parameter &p)
 
 ~Parameter ()
 
template<typename T >
Parameter withDefault (T value)
 
template<typename T >
 operator T ()
 
 operator ParametersSet ()
 
template<typename T >
bool is (T v)
 
template<typename T >
bool operator== (T v) const
 
CheckedParameter checked ()
 
bool isInitialized () const
 
template<template< class > class F, class Q >
bool isCondition (F< Q > cond) const
 
ParameterName name () const
 
std::string repr () const
 
ParametersSet operator, (const Parameter &p)
 

Static Public Member Functions

template<typename T >
static Parameter create (const std::string &name, const T &value)
 

Private Types

typedef std::string ParameterName
 

Private Member Functions

template<typename T >
 Parameter (const ParameterName &pname, const T &value)
 
template<typename T >
getValue () const
 
template<typename T >
bool isTypeCorrect () const
 
void invalidate (const std::string &reason)
 

Private Attributes

bool valid
 
std::string invalidity_reasons
 
ParameterName parameter_name
 
stichwort_internal::ValueKeeper keeper
 

Friends

class CheckedParameter
 

Detailed Description

Definition at line 46 of file parameter.hpp.

Member Typedef Documentation

typedef std::string ParameterName
private

Definition at line 50 of file parameter.hpp.

Constructor & Destructor Documentation

Parameter ( const ParameterName pname,
const T &  value 
)
private

Definition at line 55 of file parameter.hpp.

Parameter ( )

Definition at line 69 of file parameter.hpp.

Parameter ( const Parameter p)

Definition at line 75 of file parameter.hpp.

~Parameter ( )

Definition at line 81 of file parameter.hpp.

Member Function Documentation

CheckedParameter checked ( )

Definition at line 228 of file parameter.hpp.

static Parameter create ( const std::string &  name,
const T &  value 
)
static

Definition at line 64 of file parameter.hpp.

T getValue ( ) const
private

Definition at line 159 of file parameter.hpp.

void invalidate ( const std::string &  reason)
private

Definition at line 170 of file parameter.hpp.

bool is ( v)

Definition at line 115 of file parameter.hpp.

bool isCondition ( F< Q >  cond) const

Definition at line 139 of file parameter.hpp.

bool isInitialized ( ) const

Definition at line 133 of file parameter.hpp.

bool isTypeCorrect ( ) const
private

Definition at line 165 of file parameter.hpp.

ParameterName name ( ) const

Definition at line 144 of file parameter.hpp.

operator ParametersSet ( )

Definition at line 318 of file parameter.hpp.

operator T ( )

Definition at line 96 of file parameter.hpp.

ParametersSet operator, ( const Parameter p)

Definition at line 310 of file parameter.hpp.

bool operator== ( v) const

Definition at line 126 of file parameter.hpp.

std::string repr ( ) const

Definition at line 149 of file parameter.hpp.

Parameter withDefault ( value)

Definition at line 86 of file parameter.hpp.

Friends And Related Function Documentation

friend class CheckedParameter
friend

Definition at line 48 of file parameter.hpp.

Member Data Documentation

std::string invalidity_reasons
private

Definition at line 181 of file parameter.hpp.

Definition at line 183 of file parameter.hpp.

ParameterName parameter_name
private

Definition at line 182 of file parameter.hpp.

bool valid
private

Definition at line 180 of file parameter.hpp.


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