FreePOOMA  2.4.1
Public Member Functions | Protected Attributes
Shared< T > Class Template Reference

Simple template class encapsulating a single data item and inheriting from RefCounted. More...

#include <RefCounted.h>

Inheritance diagram for Shared< T >:
Inheritance graph
[legend]
Collaboration diagram for Shared< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Shared (const T &d)
 Shared (const Shared< T > &model)
Shared< T > & operator= (const Shared< T > &model)
Shared< T > & operator= (const T &d)
T & data ()
const T & data () const
bool operator== (const Shared< T > &rhs) const
bool operator!= (const Shared< T > &rhs) const

Protected Attributes

data_m

Detailed Description

template<class T>
class Shared< T >

Simple template class encapsulating a single data item and inheriting from RefCounted.


Constructor & Destructor Documentation

template<class T>
Shared< T >::Shared ( const T &  d) [inline]
template<class T>
Shared< T >::Shared ( const Shared< T > &  model) [inline]

Member Function Documentation

template<class T>
Shared<T>& Shared< T >::operator= ( const Shared< T > &  model) [inline]

References Shared< T >::data_m.

template<class T>
Shared<T>& Shared< T >::operator= ( const T &  d) [inline]

References Shared< T >::data_m.

template<class T>
T& Shared< T >::data ( ) [inline]

References Shared< T >::data_m.

template<class T>
const T& Shared< T >::data ( ) const [inline]

References Shared< T >::data_m.

template<class T>
bool Shared< T >::operator== ( const Shared< T > &  rhs) const [inline]

References Shared< T >::data_m.

template<class T>
bool Shared< T >::operator!= ( const Shared< T > &  rhs) const [inline]

References Shared< T >::data_m.


Member Data Documentation

template<class T>
T Shared< T >::data_m [protected]

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