OpenGLPrakt --> events --> cEvent
a class which provides a way to store cEvent objects and derived objects
friend ostream & operator << ( ostream & , const cStorableEvent & ) ; | mainly for debugging purposes: a way to output an event |
public cStorableEvent ( const cEvent & e ) ;
default constructor - gets the event to store
(Note: It does not store the event provided but a clone of it, therefore cEvent::Clone() is called.)
e | const reference to cEvent object to store |
public cStorableEvent ( const cStorableEvent & cse ) ;
the copy constructor
This is important as we have a dynamically allocated member.
const | reference to cStorableEvent to copy |
public ~ cStorableEvent ( ) ;
destructor
public operator const cEvent & ( ) ;
operator for casting to cEvent
public const bool operator == ( const cStorableEvent & se ) const ;
operator == to compare cStorableEvents
This is just delegated to the stored cEvents.
se | const reference to cStorableEvent to compare with |
public const bool operator < ( const cStorableEvent & se ) const ;
operator < to compare cStorableEvents
This is just delegated to the stored cEvents.
This operator is a bit odd but needed by STL to store cStorableEvents in Sorted Containers.
se | const reference to cStorableEvent to compare with |
public const bool operator == ( const cEvent & e ) const ;
operator == for comparing cStorableEvents with cEvents
public const bool operator < ( const cEvent & e ) const ;
operator < for comparing cStorableEvents with cEvents
public const string & GetName ( ) const ;
return name/type of event
This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.
Click here to return to the top of the page.