Aegis  4.25.D505
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
introspector_boolean_by_method< T > Class Template Reference

#include <by_method.h>

Inheritance diagram for introspector_boolean_by_method< T >:
introspector_boolean introspector

Public Member Functions

virtual ~introspector_boolean_by_method ()

Static Public Member Functions

static pointer create (T &a_object, void(T::*a_set)(bool), bool(T::*a_is_set)() const)

Protected Member Functions

void enumeration (const nstring &name)

Private Member Functions

 introspector_boolean_by_method (T &a_object, void(T::*a_set)(bool), bool(T::*a_is_set)() const)
 introspector_boolean_by_method ()
 introspector_boolean_by_method (const introspector_boolean_by_method &)
introspector_boolean_by_methodoperator= (const introspector_boolean_by_method &)

Private Attributes

T & object
void(T::* set )(bool)
bool(T::* is_set )() const

Detailed Description

template<class T>
class introspector_boolean_by_method< T >

The introspector_boolean_by_method template class is used to represent the manipulations required to manage bool instance variables by the meta-data parser, using a template to allow parametric spacialization using pointers to methods to manipulate the bool within it's object.

Definition at line 32 of file by_method.h.


Constructor & Destructor Documentation

template<class T >
virtual introspector_boolean_by_method< T >::~introspector_boolean_by_method ( ) [inline, virtual]

The destructor.

Definition at line 39 of file by_method.h.

template<class T >
introspector_boolean_by_method< T >::introspector_boolean_by_method ( T &  a_object,
void(T::*)(bool)  a_set,
bool(T::*)() const  a_is_set 
) [inline, private]

The constructor. It is private on purpose, use the create class method instead.

Parameters:
a_objectThe object the bool is a member of.
a_setmethod used to set the bool member
a_is_setmethod used to determine whether or not the bool member has been set

Definition at line 53 of file by_method.h.

template<class T >
introspector_boolean_by_method< T >::introspector_boolean_by_method ( ) [private]

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

template<class T >
static pointer introspector_boolean_by_method< T >::create ( T &  a_object,
void(T::*)(bool)  a_set,
bool(T::*)() const  a_is_set 
) [inline, static]

The create class method is used to create new dynamically allocated instances of this class.

Parameters:
a_objectThe object the bool is a member of.
a_setmethod used to set the bool member
a_is_setmethod used to determine whether or not the bool member has been set

Definition at line 74 of file by_method.h.

template<class T >
void introspector_boolean_by_method< T >::enumeration ( const nstring name) [inline, protected, virtual]

The enumeration method is called when the parser sees a name in an enumeration tag place.

Parameters:
nameThe name of the enumerand.

Reimplemented from introspector.

Definition at line 86 of file by_method.h.

template<class T >
introspector_boolean_by_method& introspector_boolean_by_method< T >::operator= ( const introspector_boolean_by_method< T > &  ) [private]

The assignment operator. Do not use.


Field Documentation

template<class T >
bool(T::* introspector_boolean_by_method< T >::is_set)() const [private]

The is_set instance variable is sued to remember the method used to determine whether or not the member has been set.

Definition at line 113 of file by_method.h.

template<class T >
T& introspector_boolean_by_method< T >::object [private]

The object instance variable is used to remember the object the field is a member of.

Definition at line 101 of file by_method.h.

template<class T >
void(T::* introspector_boolean_by_method< T >::set)(bool) [private]

The set instance variable i sused to remember the method used to set the boolean_by_method member

Definition at line 107 of file by_method.h.


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