Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

rdCallbackSet Class Reference

A class for holding and managing a set of callbacks for a model. More...

#include <rdCallbackSet.h>

Inheritance diagram for rdCallbackSet:

rdPtrArray rdObject rdIntegCallbackSet List of all members.

Public Member Functions

 rdCallbackSet (rdModel *aModel)
 Default constructor.

virtual ~rdCallbackSet ()
 Destructor.

void deleteCallbacks ()
 Delete all callbacks.

rdModelgetModel ()
 Get a pointer to the model which is actuated.

rdCallbackgetCallback (int aIndex) const
 Get the callback at an index.

void setOn (bool aTrueFalse)
 Set all the callbacks either on or off.


Static Public Attributes

const int NUM_TYPES

Protected Attributes

rdModel_model
 Model for which the callbacks have been set.


Private Member Functions

void setNull ()
 Set the data members of this actuator to their null values.


Detailed Description

A class for holding and managing a set of callbacks for a model.

Author:
Frank C. Anderson
Version:
1.0


Constructor & Destructor Documentation

rdCallbackSet::~rdCallbackSet  )  [virtual]
 

Destructor.

Note that the individual callbacks are not deleted by this destructor. To delete the callbacks, the caller must do so individually, or the method rdCallback::deleteCallbacks() may be called.


Member Function Documentation

rdCallback * rdCallbackSet::getCallback int  aIndex  )  const
 

Get the callback at an index.

This method simply uses the method redExpandableArray::get() and casts the returned void as an rdCallback.

Parameters:
aIndex Array index of the callback to be returned.
Returns:
Callaback at aIndex.

rdModel * rdCallbackSet::getModel  ) 
 

Get a pointer to the model which is actuated.

Returns:
Pointer to the model.

void rdCallbackSet::setOn bool  aTrueFalse  ) 
 

Set all the callbacks either on or off.

Parameters:
aTrueFalse Arguement that, if true, results in all callbacks being turned on; if false, all callbacks are turned off.


The documentation for this class was generated from the following files:
Generated on Wed Aug 20 02:17:09 2003 for Simulation Software by doxygen1.3