daeSmartRef< T > Class Template Reference

#include <daeSmartRef.h>

List of all members.

Public Member Functions

T * cast () const
 daeSmartRef (T *ptr)
 daeSmartRef (const daeSmartRef< T > &smartRef)
template<class U >
 daeSmartRef (const daeSmartRef< U > &smartRef)
 daeSmartRef ()
 operator T * () const
T * operator-> () const
const daeSmartRef< T > & operator= (T *ptr)
const daeSmartRef< T > & operator= (const daeSmartRef< T > &other)
template<class U >
const daeSmartRef< T > & operator= (const daeSmartRef< U > &smartRef)
 ~daeSmartRef ()

Static Public Member Functions

template<class U >
static T * staticCast (const daeSmartRef< U > &smartRef)

Private Attributes

T * _ptr

Detailed Description

template<class T>
class daeSmartRef< T >

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

Definition at line 19 of file daeSmartRef.h.


Constructor & Destructor Documentation

template<class T>
daeSmartRef< T >::daeSmartRef (  )  [inline]

Constructor

Definition at line 25 of file daeSmartRef.h.

template<class T>
daeSmartRef< T >::~daeSmartRef (  )  [inline]

Destructor

Definition at line 30 of file daeSmartRef.h.

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.

Definition at line 39 of file daeSmartRef.h.

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

Definition at line 53 of file daeSmartRef.h.

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

Constructor

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

Definition at line 61 of file daeSmartRef.h.


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.

Definition at line 47 of file daeSmartRef.h.

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

Overloaded cast operator.

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

Definition at line 112 of file daeSmartRef.h.

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

Overloaded member selection operator.

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

Definition at line 105 of file daeSmartRef.h.

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.

Definition at line 95 of file daeSmartRef.h.

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.

Definition at line 83 of file daeSmartRef.h.

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.

Definition at line 71 of file daeSmartRef.h.

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

Definition at line 121 of file daeSmartRef.h.


Member Data Documentation

template<class T>
T* daeSmartRef< T >::_ptr [private]

Definition at line 126 of file daeSmartRef.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


colladadom
Author(s): Du Hung Hou, Khronos.org, Marcus Barnes, Greg Corson, Herbert Law, Sebastian Schwarz, Steven Thomas, John Hsu (ros package), Tim Field (ros package)
autogenerated on Fri Jan 11 09:29:15 2013