casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Member Functions | Private Attributes | Friends
casa::memory::cptr< T > Class Template Reference

#include <ptr.h>

List of all members.

Classes

struct  kernel

Public Member Functions

 cptr ()
 cptr (T *p)
 cptr (const cptr< T > &other)
 cptr (cptr< T > *other)
T * operator-> ()
T & operator* ()
const T * operator-> () const
const T & operator* () const
bool isNull () const
const cptr< T > & operator= (const cptr< T > &other)
const cptr< T > & operator= (T *&optr)
std::string state () const
void clear ()
unsigned int count () const

Private Attributes

kernel ptr

Friends

template<class X >
bool operator== (const cptr< X > &, X *)
template<class X >
bool operator== (X *, const cptr< X > &)

Detailed Description

template<class T>
class casa::memory::cptr< T >

Definition at line 37 of file ptr.h.


Constructor & Destructor Documentation

template<class T>
casa::memory::cptr< T >::cptr ( ) [inline]

Definition at line 39 of file ptr.h.

template<class T>
casa::memory::cptr< T >::cptr ( T *  p) [inline]

Definition at line 40 of file ptr.h.

template<class T>
casa::memory::cptr< T >::cptr ( const cptr< T > &  other) [inline]

Definition at line 41 of file ptr.h.

template<class T>
casa::memory::cptr< T >::cptr ( cptr< T > *  other) [inline]

Definition at line 42 of file ptr.h.


Member Function Documentation

template<class T>
void casa::memory::cptr< T >::clear ( ) [inline]

Definition at line 57 of file ptr.h.

template<class T>
unsigned int casa::memory::cptr< T >::count ( ) const [inline]

Definition at line 58 of file ptr.h.

template<class T>
bool casa::memory::cptr< T >::isNull ( ) const [inline]

Definition at line 49 of file ptr.h.

template<class T>
T& casa::memory::cptr< T >::operator* ( ) [inline]

Definition at line 44 of file ptr.h.

template<class T>
const T& casa::memory::cptr< T >::operator* ( ) const [inline]

Definition at line 47 of file ptr.h.

template<class T>
T* casa::memory::cptr< T >::operator-> ( ) [inline]

Definition at line 43 of file ptr.h.

template<class T>
const T* casa::memory::cptr< T >::operator-> ( ) const [inline]

Definition at line 46 of file ptr.h.

template<class T>
const cptr<T>& casa::memory::cptr< T >::operator= ( const cptr< T > &  other) [inline]

Definition at line 50 of file ptr.h.

template<class T>
const cptr<T>& casa::memory::cptr< T >::operator= ( T *&  optr) [inline]

Definition at line 51 of file ptr.h.

template<class T>
std::string casa::memory::cptr< T >::state ( ) const [inline]

Definition at line 52 of file ptr.h.

Referenced by casa::functor::f::state().


Friends And Related Function Documentation

template<class T>
template<class X >
bool operator== ( const cptr< X > &  ,
X *   
) [friend]
template<class T>
template<class X >
bool operator== ( X *  ,
const cptr< X > &   
) [friend]

Member Data Documentation

template<class T>
kernel casa::memory::cptr< T >::ptr [private]

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