LibCT 2.0
Public Member Functions | Private Member Functions | Private Attributes

LibCT::EventData Class Reference

EventData is a container for arbritaty data that can be sent with an event. More...

#include <EventData.h>

List of all members.

Public Member Functions

 EventData (void *pData, bool ownPtr=false)
 Constructor.
 EventData (const EventData &rhs)
 Constructor.
EventDataoperator= (const EventData &rhs)
const void * GetData () const
 operator const void * () const
int Reference ()
int DeReference ()
void Destroy ()
 Destroy this event data.

Private Member Functions

 ~EventData ()
 Destructor.

Private Attributes

void * m_pData
 Pointer to the data.
int m_RefCount
 Referance count.
bool m_OwnPtr
 Do we own the pointer.

Detailed Description

EventData is a container for arbritaty data that can be sent with an event.


Constructor & Destructor Documentation

LibCT::EventData::EventData ( void *  pData,
bool  ownPtr = false 
) [inline]

Constructor.

Parameters:
pDataPointer to the data
ownPtrAre we to take ownership of the pointer? (if yes it will be deleted)
LibCT::EventData::EventData ( const EventData rhs) [inline]

Constructor.

Parameters:
rhsEventData to copy from
LibCT::EventData::~EventData ( ) [inline, private]

Destructor.


Member Function Documentation

int LibCT::EventData::DeReference ( ) [inline]

Decrement the referance

Returns:
New referance count
void LibCT::EventData::Destroy ( ) [inline]

Destroy this event data.

const void* LibCT::EventData::GetData ( ) const [inline]

Get the data

Returns:
Pointer to the data
LibCT::EventData::operator const void * ( ) const [inline]

Get the data

Returns:
Const-pointer to the data
EventData& LibCT::EventData::operator= ( const EventData rhs) [inline]

Assignment operator

Returns:
Referance to this
Parameters:
rhsEventData to assign from
int LibCT::EventData::Reference ( ) [inline]

Increment the referance

Returns:
New referance count

Member Data Documentation

Do we own the pointer.

void* LibCT::EventData::m_pData [private]

Pointer to the data.

Referance count.


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