Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ObjCryst::RefObjOption< T > Class Template Reference

Class for options of RefinableObj, templated so that we can warn the object that something has been changed. More...

Inheritance diagram for ObjCryst::RefObjOption< T >:

Inheritance graph
[legend]
Collaboration diagram for ObjCryst::RefObjOption< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RefObjOption (T *obj)
 Constructor for the option.

 ~RefObjOption ()
void Init (const int nbChoice, const string *name, const string *choiceNames, void(T::*fp)(const int))
virtual void SetChoice (const int choice)

Private Attributes

T * mpObj
 The object which uses this option.

void(T::* mfpSetNewValue )(const int)
 The pointer to the member function to be used when the choice is changed, to notify immediately the object.


Detailed Description

template<class T>
class ObjCryst::RefObjOption< T >

Class for options of RefinableObj, templated so that we can warn the object that something has been changed.

NOT USED SO FAR.


Constructor & Destructor Documentation

template<class T>
ObjCryst::RefObjOption< T >::RefObjOption T *  obj  ) 
 

Constructor for the option.

Parameters:
obj: the

template<class T>
ObjCryst::RefObjOption< T >::~RefObjOption  ) 
 


Member Function Documentation

template<class T>
void ObjCryst::RefObjOption< T >::Init const int  nbChoice,
const string *  name,
const string *  choiceNames,
void(T::*  fp)(const int)
 

template<class T>
virtual void ObjCryst::RefObjOption< T >::SetChoice const int  choice  )  [virtual]
 

Reimplemented from ObjCryst::RefObjOpt.


Member Data Documentation

template<class T>
void(T::* ObjCryst::RefObjOption< T >::mfpSetNewValue)(const int) [private]
 

The pointer to the member function to be used when the choice is changed, to notify immediately the object.

If null, the value is just recorded and no notification is done.

template<class T>
T* ObjCryst::RefObjOption< T >::mpObj [private]
 

The object which uses this option.


The documentation for this class was generated from the following file:
Generated on Tue Nov 14 15:05:59 2006 for ObjCryst++ by doxygen 1.3.6