Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CEGUI::DataContainer< T > Class Template Reference

#include <CEGUIDataContainer.h>

Collaboration diagram for CEGUI::DataContainer< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DataContainer ()
 Constructor for DataContainer class.
virtual ~DataContainer (void)
 Destructor for DataContainer class.
void setData (T *data)
 Set a pointer to the external data.
T * getDataPtr (void)
 Return a pointer to the external data.
void setSize (size_t size)
 Set the size of the external data. This maybe zero depending on the type of T.
size_t getSize (void) const
 Get the size of the external data. This maybe zero depending on the type of T.
virtual void release (void)
 Release supplied data.

Protected Attributes

T * mData
size_t mSize

template<class T>
class CEGUI::DataContainer< T >


Constructor & Destructor Documentation

template<class T>
CEGUI::DataContainer< T >::DataContainer  )  [inline]
 

Constructor for DataContainer class.

Definition at line 49 of file CEGUIDataContainer.h.

template<class T>
virtual CEGUI::DataContainer< T >::~DataContainer void   )  [inline, virtual]
 

Destructor for DataContainer class.

Definition at line 59 of file CEGUIDataContainer.h.


Member Function Documentation

template<class T>
T* CEGUI::DataContainer< T >::getDataPtr void   )  [inline]
 

Return a pointer to the external data.

Returns:
Pointer to an object of type T, where T defined when the template is specialized.

Definition at line 83 of file CEGUIDataContainer.h.

Referenced by CEGUI::Imageset::load(), CEGUI::DirectX81Texture::loadFromFile(), CEGUI::OpenGLTexture::loadFromFile(), CEGUI::DirectX9Texture::loadFromFile(), and CEGUI::WindowManager::loadWindowLayout().

template<class T>
size_t CEGUI::DataContainer< T >::getSize void   )  const [inline]
 

Get the size of the external data. This maybe zero depending on the type of T.

Returns:
size_t containing the size of the external data

Definition at line 101 of file CEGUIDataContainer.h.

Referenced by CEGUI::Imageset::load(), CEGUI::DirectX81Texture::loadFromFile(), CEGUI::OpenGLTexture::loadFromFile(), CEGUI::DirectX9Texture::loadFromFile(), and CEGUI::WindowManager::loadWindowLayout().

template<class T>
virtual void CEGUI::DataContainer< T >::release void   )  [inline, virtual]
 

Release supplied data.

Reimplemented in CEGUI::RawDataContainer.

Definition at line 108 of file CEGUIDataContainer.h.

template<class T>
void CEGUI::DataContainer< T >::setData T *  data  )  [inline]
 

Set a pointer to the external data.

Parameters:
data Pointer to a object of type T, where T defined when the template is specialized.

Definition at line 74 of file CEGUIDataContainer.h.

Referenced by CEGUI::IrrlichtResourceProvider::loadRawDataContainer(), and CEGUI::DefaultResourceProvider::loadRawDataContainer().

template<class T>
void CEGUI::DataContainer< T >::setSize size_t  size  )  [inline]
 

Set the size of the external data. This maybe zero depending on the type of T.

Parameters:
size size_t containing the size of the external data

Definition at line 92 of file CEGUIDataContainer.h.

Referenced by CEGUI::IrrlichtResourceProvider::loadRawDataContainer(), and CEGUI::DefaultResourceProvider::loadRawDataContainer().


Member Data Documentation

template<class T>
T* CEGUI::DataContainer< T >::mData [protected]
 

Definition at line 120 of file CEGUIDataContainer.h.

template<class T>
size_t CEGUI::DataContainer< T >::mSize [protected]
 

Definition at line 121 of file CEGUIDataContainer.h.


The documentation for this class was generated from the following file:
Generated on Wed Feb 16 12:41:10 2005 for Crazy Eddies GUI System by  doxygen 1.3.9.1