Tapkee
ValueKeeper Class Reference

#include <value_keeper.hpp>

List of all members.

Public Member Functions

template<typename T >
 ValueKeeper (const T &value)
 ValueKeeper ()
 ~ValueKeeper ()
 ValueKeeper (const ValueKeeper &v)
ValueKeeperoperator= (const ValueKeeper &v)
template<typename T >
getValue () const
template<typename T >
bool isTypeCorrect () const
bool isInitialized () const
template<typename T >
bool inRange (T lower, T upper) const
template<typename T >
bool equal (T value) const
template<typename T >
bool notEqual (T value) const
bool positive () const
bool nonNegative () const
bool negative () const
bool nonPositive () const
template<typename T >
bool greater (T lower) const
template<typename T >
bool lesser (T upper) const

Private Attributes

TypePolicyBasepolicy
CheckerPolicyBasechecker
void * value_ptr

Detailed Description

Definition at line 22 of file value_keeper.hpp.


Constructor & Destructor Documentation

ValueKeeper ( const T &  value) [explicit]

Definition at line 27 of file value_keeper.hpp.

Definition at line 33 of file value_keeper.hpp.

Definition at line 38 of file value_keeper.hpp.

ValueKeeper ( const ValueKeeper v)

Definition at line 43 of file value_keeper.hpp.


Member Function Documentation

bool equal ( value) const

Definition at line 95 of file value_keeper.hpp.

T getValue ( ) const

Definition at line 58 of file value_keeper.hpp.

bool greater ( lower) const

Definition at line 131 of file value_keeper.hpp.

bool inRange ( lower,
upper 
) const

Definition at line 87 of file value_keeper.hpp.

bool isInitialized ( ) const

Definition at line 81 of file value_keeper.hpp.

bool isTypeCorrect ( ) const

Definition at line 76 of file value_keeper.hpp.

bool lesser ( upper) const

Definition at line 139 of file value_keeper.hpp.

bool negative ( ) const

Definition at line 120 of file value_keeper.hpp.

bool nonNegative ( ) const

Definition at line 115 of file value_keeper.hpp.

bool nonPositive ( ) const

Definition at line 125 of file value_keeper.hpp.

bool notEqual ( value) const

Definition at line 103 of file value_keeper.hpp.

ValueKeeper& operator= ( const ValueKeeper v)

Definition at line 48 of file value_keeper.hpp.

bool positive ( ) const

Definition at line 110 of file value_keeper.hpp.


Member Data Documentation

Definition at line 149 of file value_keeper.hpp.

TypePolicyBase* policy [private]

Definition at line 148 of file value_keeper.hpp.

void* value_ptr [private]

Definition at line 150 of file value_keeper.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines