Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Public Attributes | Private Member Functions
Arc::CountedPointer< T >::Base< P > Class Template Reference
Inheritance diagram for Arc::CountedPointer< T >::Base< P >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Base (P *p)
 ~Base (void)
Base< P > * add (void)
bool rem (void)

Public Attributes

int cnt
P * ptr

Private Member Functions

 Base (Base< P > &)

Detailed Description

template<typename T>
template<typename P>
class Arc::CountedPointer< T >::Base< P >

Definition at line 88 of file Utils.h.


Constructor & Destructor Documentation

template<typename T>
template<typename P>
Arc::CountedPointer< T >::Base< P >::Base ( Base< P > &  ) [inline, private]

Definition at line 90 of file Utils.h.

{}
template<typename T>
template<typename P>
Arc::CountedPointer< T >::Base< P >::Base ( P *  p) [inline]

Definition at line 94 of file Utils.h.

        : cnt(0),
          ptr(p) {
        add();
      }
template<typename T>
template<typename P>
Arc::CountedPointer< T >::Base< P >::~Base ( void  ) [inline]

Definition at line 99 of file Utils.h.

                  {
        if (ptr)
          delete ptr;
      }

Member Function Documentation

template<typename T>
template<typename P>
Base<P>* Arc::CountedPointer< T >::Base< P >::add ( void  ) [inline]

Definition at line 103 of file Utils.h.

                         {
        ++cnt;
        return this;
      }

Here is the caller graph for this function:

template<typename T>
template<typename P>
bool Arc::CountedPointer< T >::Base< P >::rem ( void  ) [inline]

Definition at line 107 of file Utils.h.

                     {
        if (--cnt == 0) {
          delete this;
          return true;
        }
        return false;
      }

Member Data Documentation

template<typename T>
template<typename P>
int Arc::CountedPointer< T >::Base< P >::cnt

Definition at line 92 of file Utils.h.

template<typename T>
template<typename P>
P* Arc::CountedPointer< T >::Base< P >::ptr

Definition at line 93 of file Utils.h.


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