SIM_EachDataCallback Class Reference

#include <SIM_Data.h>

Inheritance diagram for SIM_EachDataCallback:

HDK_Sample::SIM_HairForceCallback

List of all members.

Public Member Functions

 SIM_EachDataCallback ()
virtual ~SIM_EachDataCallback ()
virtual bool callbackNeedsName () const
virtual void callbackConst (const SIM_Data *data, const char *name)=0
virtual void callback (SIM_Data *data, const char *name)


Detailed Description

This class defines the callback object that is passed to SIM_Data::forEachSubData() and SIM_Data::forEachConstSubData().
Examples:

SIM/SIM_SolverHair.C.

Definition at line 63 of file SIM_Data.h.


Constructor & Destructor Documentation

SIM_EachDataCallback::SIM_EachDataCallback (  )  [inline]

Definition at line 66 of file SIM_Data.h.

virtual SIM_EachDataCallback::~SIM_EachDataCallback (  )  [inline, virtual]

Definition at line 68 of file SIM_Data.h.


Member Function Documentation

virtual void SIM_EachDataCallback::callback ( SIM_Data data,
const char *  name 
) [inline, virtual]

This is the callback function that is called for each data found by SIM_Data::forEachSubData(). The default implementation calls the version for const SIM_Data pointers. The name parameter is the relative path to the data item from the starting data item for the search (the startfrom parameter to SIM_Data::forEachSubData()).

Definition at line 88 of file SIM_Data.h.

virtual void SIM_EachDataCallback::callbackConst ( const SIM_Data data,
const char *  name 
) [pure virtual]

This is the callback function that is called for each data found by SIM_Data::forEachConstSubData(). The name parameter is the relative path to the data item from the starting data item for the search (the startfrom parameter to SIM_Data::forEachConstSubData()).

Implemented in HDK_Sample::SIM_HairForceCallback.

virtual bool SIM_EachDataCallback::callbackNeedsName (  )  const [inline, virtual]

If your callback functions require the names of the data, override this function to return true. Otherwise the name parameter to the callback functions will always be null. Sending the name information to the callback introduces a small performance penalty.

Definition at line 75 of file SIM_Data.h.


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

Generated on Mon Jan 28 00:48:52 2013 for HDK by  doxygen 1.5.9