se_core::Component::ComponentPtr< T, type > Class Template Reference

Convenience pointer template with built in component conversion. More...

#include <Component.hpp>

List of all members.

Public Types

enum  { TYPE = type }

Public Member Functions

 ComponentPtr (T *c)
 ComponentPtr (T &c)
 ComponentPtr (Component &c)
 ComponentPtr (Component *c)
 ComponentPtr (Composite *c)
 ComponentPtr (Composite &c)
 ComponentPtr (const Component &c)
 ComponentPtr (const Composite &c)
 ComponentPtr (const Component *c)
 ComponentPtr (const Composite *c)
T * operator-> ()
T & operator * ()
const T * operator-> () const
const T & operator * () const
ComponentPtr & operator= (T &c)
ComponentPtr & operator= (T *c)
ComponentPtr & operator= (Component *c)
ComponentPtr & operator= (Component &c)
ComponentPtr & operator= (Composite *c)
ComponentPtr & operator= (Composite &c)
 operator T * ()
 operator const T * () const
bool isNull () const
bool operator== (const T *c) const


Detailed Description

template<class T, int type>
class se_core::Component::ComponentPtr< T, type >

Convenience pointer template with built in component conversion.

Include the following in a the public part of the class declaration of XxxComponent to get a convenient ComponentPtr method that automatically converts between owner compoisite and sibling components and XxxComponent. typedef se_core::Component::ComponentPtr<XxxComponent, se_core::sct_XXX> Ptr;

Definition at line 132 of file Component.hpp.


Member Enumeration Documentation

template<class T, int type>
anonymous enum
 

Enumeration values:
TYPE 

Definition at line 134 of file Component.hpp.


Constructor & Destructor Documentation

template<class T, int type>
se_core::Component::ComponentPtr< T, type >::ComponentPtr (  T *  c  )  [inline]
 

Definition at line 136 of file Component.hpp.

template<class T, int type>
se_core::Component::ComponentPtr< T, type >::ComponentPtr (  T &  c  )  [inline]
 

Definition at line 139 of file Component.hpp.

template<class T, int type>
se_core::Component::ComponentPtr< T, type >::ComponentPtr (  Component &  c  )  [inline]
 

Definition at line 142 of file Component.hpp.

References se_core::Component::component().

template<class T, int type>
se_core::Component::ComponentPtr< T, type >::ComponentPtr (  Component *  c  )  [inline]
 

Definition at line 145 of file Component.hpp.

References se_core::Component::component().

template<class T, int type>
se_core::Component::ComponentPtr< T, type >::ComponentPtr (  Composite *  c  )  [inline]
 

Definition at line 151 of file Component.hpp.

References se_core::Composite::component().

template<class T, int type>
se_core::Component::ComponentPtr< T, type >::ComponentPtr (  Composite &  c  )  [inline]
 

Definition at line 157 of file Component.hpp.

References se_core::Composite::component().

template<class T, int type>
se_core::Component::ComponentPtr< T, type >::ComponentPtr (  const Component &  c  )  [inline]
 

Definition at line 161 of file Component.hpp.

References se_core::Composite::component(), and se_core::Component::owner().

template<class T, int type>
se_core::Component::ComponentPtr< T, type >::ComponentPtr (  const Composite &  c  )  [inline]
 

Definition at line 164 of file Component.hpp.

References se_core::Composite::component().

template<class T, int type>
se_core::Component::ComponentPtr< T, type >::ComponentPtr (  const Component *  c  )  [inline]
 

Definition at line 167 of file Component.hpp.

References se_core::Composite::component(), and se_core::Component::owner().

template<class T, int type>
se_core::Component::ComponentPtr< T, type >::ComponentPtr (  const Composite *  c  )  [inline]
 

Definition at line 173 of file Component.hpp.

References se_core::Composite::component().


Member Function Documentation

template<class T, int type>
bool se_core::Component::ComponentPtr< T, type >::isNull (   )  const [inline]
 

Definition at line 244 of file Component.hpp.

template<class T, int type>
const T& se_core::Component::ComponentPtr< T, type >::operator * (   )  const [inline]
 

Definition at line 195 of file Component.hpp.

References Assert.

template<class T, int type>
T& se_core::Component::ComponentPtr< T, type >::operator * (   )  [inline]
 

Definition at line 185 of file Component.hpp.

References Assert.

template<class T, int type>
se_core::Component::ComponentPtr< T, type >::operator const T * (   )  const [inline]
 

Definition at line 240 of file Component.hpp.

template<class T, int type>
se_core::Component::ComponentPtr< T, type >::operator T * (   )  [inline]
 

Definition at line 236 of file Component.hpp.

template<class T, int type>
const T* se_core::Component::ComponentPtr< T, type >::operator-> (   )  const [inline]
 

Definition at line 190 of file Component.hpp.

References Assert.

template<class T, int type>
T* se_core::Component::ComponentPtr< T, type >::operator-> (   )  [inline]
 

Definition at line 180 of file Component.hpp.

References Assert.

template<class T, int type>
ComponentPtr& se_core::Component::ComponentPtr< T, type >::operator= (  Composite &  c  )  [inline]
 

Definition at line 231 of file Component.hpp.

References se_core::Composite::component().

template<class T, int type>
ComponentPtr& se_core::Component::ComponentPtr< T, type >::operator= (  Composite *  c  )  [inline]
 

Definition at line 223 of file Component.hpp.

References se_core::Composite::component().

template<class T, int type>
ComponentPtr& se_core::Component::ComponentPtr< T, type >::operator= (  Component &  c  )  [inline]
 

Definition at line 218 of file Component.hpp.

References se_core::Composite::component(), and se_core::Component::owner().

template<class T, int type>
ComponentPtr& se_core::Component::ComponentPtr< T, type >::operator= (  Component *  c  )  [inline]
 

Definition at line 210 of file Component.hpp.

References se_core::Composite::component(), and se_core::Component::owner().

template<class T, int type>
ComponentPtr& se_core::Component::ComponentPtr< T, type >::operator= (  T *  c  )  [inline]
 

Definition at line 205 of file Component.hpp.

template<class T, int type>
ComponentPtr& se_core::Component::ComponentPtr< T, type >::operator= (  T &  c  )  [inline]
 

Definition at line 200 of file Component.hpp.

template<class T, int type>
bool se_core::Component::ComponentPtr< T, type >::operator== (  const T *  c  )  const [inline]
 

Definition at line 248 of file Component.hpp.


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

Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:22 2007 by Doxygen version 1.3.9.1.

SourceForge.net Logo