proj home

Files   Classes   Functions   Hierarchy  

gobjcallbackcontainer< T > Class Template Reference

Callback writes graphics. More...

#include <gobjbase.h>

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

List of all members.

Public Types

typedef void(T::* Fptr )(gobjContainer &)

Public Member Functions

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


Detailed Description

template<class T>
class gobjcallbackcontainer< T >

Callback writes graphics.

A function is supplied that pushes gobj's to a gobjContainer.

Definition at line 404 of file gobjbase.h.


Member Typedef Documentation

template<class T>
typedef void(T::* gobjcallbackcontainer< T >::Fptr)(gobjContainer &)


Constructor & Destructor Documentation

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

Constructor binding function.

Definition at line 412 of file gobjbase.h.

00413     : fobj(data_,fn_) {}


Member Function Documentation

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

Write graphics by executing the callback function.

Implements gobj.

Definition at line 416 of file gobjbase.h.

References GOBJDEBUGCODE, and gobjpush.

00417   { 
00418     GOBJDEBUGCODE
00419     gobjContainer* shp = new gobjContainer(true);
00420     
00421     fobj(*shp); 
00422     gobjpush(shp);
00423   }


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