proj home

Files   Classes   Functions   Hierarchy  

gobjcallback< T > Class Template Reference

Callback writes graphics. More...

#include <gobjbase.h>

Inheritance diagram for gobjcallback< T >:
Collaboration diagram for gobjcallback< T >:

List of all members.

Public Types

typedef void(T::* Fptr )()

Public Member Functions

 gobjcallback (T &data_, Fptr fn_)
 Constructor binding function.
void draw ()
 Write graphics by executing the callback function.


Detailed Description

template<class T>
class gobjcallback< T >

Callback writes graphics.

A function is supplied which when called back pushes gobj's to the global graphics stream.

Definition at line 126 of file gobjbase.h.


Member Typedef Documentation

template<class T>
typedef void(T::* gobjcallback< T >::Fptr)()


Constructor & Destructor Documentation

template<class T>
gobjcallback< T >::gobjcallback ( T data_,
Fptr  fn_ 
) [inline]

Constructor binding function.

Definition at line 134 of file gobjbase.h.

00135     : fobj(data_,fn_) {}


Member Function Documentation

template<class T>
void gobjcallback< T >::draw (  )  [inline, virtual]

Write graphics by executing the callback function.

Implements gobj.

Definition at line 138 of file gobjbase.h.

References GOBJDEBUGCODE.

00139     { GOBJDEBUGCODE fobj(); }


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

Generated on Fri Mar 4 00:49:57 2011 for Chelton Evans Source by  doxygen 1.5.8