Public Member Functions | Protected Member Functions | Protected Attributes

SShellPtr< T > Struct Template Reference

wrapper template class for pointers to shell objects managed by IMalloc More...

#include <shellclasses.h>

Collaboration diagram for SShellPtr< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ~SShellPtr ()
T * operator-> ()
T const * operator-> () const
 operator T const * () const
const T & operator* () const
T & operator* ()

Protected Member Functions

 SShellPtr ()
 SShellPtr (T *p)
void Free ()

Protected Attributes

T * _p
ShellMalloc _malloc

Detailed Description

template<typename T>
struct SShellPtr< T >

wrapper template class for pointers to shell objects managed by IMalloc

Definition at line 271 of file shellclasses.h.


Constructor & Destructor Documentation

template<typename T>
SShellPtr< T >::~SShellPtr (  ) [inline]

Definition at line 273 of file shellclasses.h.

    {
        _malloc->Free(_p);
    }
template<typename T>
SShellPtr< T >::SShellPtr (  ) [inline, protected]

Definition at line 304 of file shellclasses.h.

     :  _p(0)
    {
    }
template<typename T>
SShellPtr< T >::SShellPtr ( T *  p ) [inline, protected]

Definition at line 309 of file shellclasses.h.

     :  _p(p)
    {
    }

Member Function Documentation

template<typename T>
void SShellPtr< T >::Free (  ) [inline, protected]

Definition at line 314 of file shellclasses.h.

    {
        _malloc->Free(_p);
        _p = NULL;
    }
template<typename T>
SShellPtr< T >::operator T const * (  ) const [inline]

Definition at line 288 of file shellclasses.h.

References SShellPtr< T >::_p.

    {
        return _p;
    }
template<typename T>
T& SShellPtr< T >::operator* (  ) [inline]

Definition at line 298 of file shellclasses.h.

    {
        return *_p;
    }
template<typename T>
const T& SShellPtr< T >::operator* (  ) const [inline]

Definition at line 293 of file shellclasses.h.

    {
        return *_p;
    }
template<typename T>
T* SShellPtr< T >::operator-> (  ) [inline]

Definition at line 278 of file shellclasses.h.

    {
        return _p;
    }
template<typename T>
T const* SShellPtr< T >::operator-> (  ) const [inline]

Definition at line 283 of file shellclasses.h.

    {
        return _p;
    }

Member Data Documentation

template<typename T>
ShellMalloc SShellPtr< T >::_malloc [mutable, protected]
template<typename T>
T* SShellPtr< T >::_p [protected]

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

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage