COLLADA 1.4 DOM: daeSmartRef< T > Class Template Reference

COLLADA

daeSmartRef< T > Class Template Reference

#include <daeSmartRef.h>

List of all members.


Detailed Description

template<class T>
class daeSmartRef< T >

The daeSmartRef template class automates reference counting for objects derived from daeElement.


Public Member Functions

 daeSmartRef ()
 Constructor.
 ~daeSmartRef ()
 Destructor.
template<class U>
 daeSmartRef (const daeElementWrapper< U > &)
 Constructor that will convert from one template to the other.
template<class U>
 daeSmartRef (const daeSmartRef< U > &smartRef)
 Copy Constructor that will convert from one template to the other.
T * cast () const
 Function that returns a pointer to object being reference counted.
 daeSmartRef (const daeSmartRef< T > &smartRef)
 Copy Constructor.
 daeSmartRef (T *ptr)
 Constructor.
template<class U>
const daeSmartRef< T > & operator= (const daeElementWrapper< U > &)
 Overloaded assignment operator which will convert between template types.
template<class U>
const daeSmartRef< T > & operator= (const daeSmartRef< U > &smartRef)
 Overloaded assignment operator which will convert between template types.
const daeSmartRef< T > & operator= (const daeSmartRef< T > &other)
 Overloaded assignment operator.
const daeSmartRef< T > & operator= (T *ptr)
 Overloaded assignment operator.
T * operator-> () const
 Overloaded member selection operator.
 operator T * () const
 Overloaded cast operator.

Static Public Member Functions

template<class U>
static T * staticCast (const daeSmartRef< U > &smartRef)
 Static cast function.

Constructor & Destructor Documentation

template<class T>
template<class U>
daeSmartRef< T >::daeSmartRef const daeElementWrapper< U > &   )  [inline]
 

Constructor that will convert from one template to the other.

unimplemented.

Parameters:
 

template<class T>
template<class U>
daeSmartRef< T >::daeSmartRef const daeSmartRef< U > &  smartRef  )  [inline]
 

Copy Constructor that will convert from one template to the other.

Parameters:
smartRef a daeSmartRef to the object to copy from.

template<class T>
daeSmartRef< T >::daeSmartRef const daeSmartRef< T > &  smartRef  )  [inline]
 

Copy Constructor.

Parameters:
smartRef a daeSmartRef of the same template type to copy from

template<class T>
daeSmartRef< T >::daeSmartRef T *  ptr  )  [inline]
 

Constructor.

Parameters:
ptr a pointer to an object of the same template type.


Member Function Documentation

template<class T>
T* daeSmartRef< T >::cast  )  const [inline]
 

Function that returns a pointer to object being reference counted.

Returns:
the object being reference counted.

template<class T>
daeSmartRef< T >::operator T *  )  const [inline]
 

Overloaded cast operator.

Returns:
a pointer of the template class to the object.

template<class T>
T* daeSmartRef< T >::operator->  )  const [inline]
 

Overloaded member selection operator.

Returns:
a pointer of the template class to the object.

template<class T>
const daeSmartRef<T>& daeSmartRef< T >::operator= T *  ptr  )  [inline]
 

Overloaded assignment operator.

Parameters:
ptr a pointer to the object to copy from. Must be of the same template type.
Returns:
Returns a reference to this object.

template<class T>
const daeSmartRef<T>& daeSmartRef< T >::operator= const daeSmartRef< T > &  other  )  [inline]
 

Overloaded assignment operator.

Parameters:
other a daeSmartRef to the object to copy from. Must be of the same template type.
Returns:
Returns a reference to this object.

template<class T>
template<class U>
const daeSmartRef<T>& daeSmartRef< T >::operator= const daeSmartRef< U > &  smartRef  )  [inline]
 

Overloaded assignment operator which will convert between template types.

Parameters:
smartRef a daeSmartRef to the object to copy from.
Returns:
Returns a reference to this object.

template<class T>
template<class U>
const daeSmartRef<T>& daeSmartRef< T >::operator= const daeElementWrapper< U > &   )  [inline]
 

Overloaded assignment operator which will convert between template types.

Returns:
Returns a reference to this object.
Note:
Unimplemented

template<class T>
template<class U>
static T* daeSmartRef< T >::staticCast const daeSmartRef< U > &  smartRef  )  [inline, static]
 

Static cast function.

Parameters:
smartRef a smartRef to cast from
Returns:
a pointer to an object of this template class


The documentation for this class was generated from the following file:
  • C:/SVN_wf/COLLADA_DOM/include/dae/daeSmartRef.h

©2005 Sony Computer Entertainment Inc.. All Rights Reserved.
Generated on Fri Feb 10 16:47:04 2006 for COLLADA 1.4 DOM by doxygen 1.4.3