Main Page | Class List | File List | Class Members | File Members

CallbackStorage Struct Reference

Storage of callback functions. It is a struct just for demonstration purposes. More...

List of all members.

Public Member Functions

 CallbackStorage ()
 Default constructor.
void insert (function< void(const double &) > func)
 Inserts a callback function into a list of callbacks.
void operator() (const double &val)
 Calls all the stored callbacks passing the given value.
void insert (double &Ref)
 Generates a suitable callback function and stores it in the list of callbacks. Actually makes an assignment to the given reference.

Public Attributes

vector< function< void(const
double &) > 
v )
 Actual storage of the callbacks.


Detailed Description

Storage of callback functions. It is a struct just for demonstration purposes.

Definition at line 49 of file LambdaVector.cpp.


Member Function Documentation

void CallbackStorage::insert double &  Ref  )  [inline]
 

Generates a suitable callback function and stores it in the list of callbacks. Actually makes an assignment to the given reference.

Parameters:
Ref Reference to a double variable.

Definition at line 85 of file LambdaVector.cpp.

References g(), and v.

Here is the call graph for this function:

void CallbackStorage::insert function< void(const double &) >  func  )  [inline]
 

Inserts a callback function into a list of callbacks.

Parameters:
func A callback function

Definition at line 61 of file LambdaVector.cpp.

References v.

Referenced by main().

void CallbackStorage::operator() const double &  val  )  [inline]
 

Calls all the stored callbacks passing the given value.

Parameters:
val A value to pass to all the called functions.

Definition at line 70 of file LambdaVector.cpp.

References v.


The documentation for this struct was generated from the following file:
Generated on Mon Sep 26 00:09:23 2005 for Games around boost::lambda by  doxygen 1.4.4