# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLMISC::CRefCount Class Reference

To use CSmartPtr or CRefPtr, derive from this class. More...

#include <smart_ptr.h>

Inheritance diagram for NLMISC::CRefCount

Inheritance graph
[legend]
Collaboration diagram for NLMISC::CRefCount:

Collaboration graph
[legend]
List of all members.

Public Methods

 ~CRefCount ()
 Destructor which release pinfo if necessary. More...

 CRefCount ()
 Default constructor init crefs to 0. More...

CRefCount& operator= (const CRefCount &)
 operator= must NOT copy crefs/pinfo!! More...

 CRefCount (const CRefCount &)
 copy cons must NOT copy crefs/pinfo!! More...


Public Attributes

sint crefs
CPtrInfopinfo

Static Public Attributes

CPtrInfo NullPtrInfo

Friends

struct CPtrInfo

Detailed Description

To use CSmartPtr or CRefPtr, derive from this class.

Your class doens't have to be virtual, or doesn't have to provide a virtual dtor.

Author(s):
Lionel Berenguier , Nevrax France
Date:
2000

Definition at line 46 of file smart_ptr.h.


Constructor & Destructor Documentation

NLMISC::CRefCount::~CRefCount ( ) [inline]
 

Destructor which release pinfo if necessary.

Definition at line 46 of file smart_ptr_inline.h.

NLMISC::CRefCount::CRefCount ( ) [inline]
 

Default constructor init crefs to 0.

Definition at line 77 of file smart_ptr.h.

NLMISC::CRefCount::CRefCount ( const CRefCount & ) [inline]
 

copy cons must NOT copy crefs/pinfo!!

Definition at line 81 of file smart_ptr.h.


Member Function Documentation

CRefCount & NLMISC::CRefCount::operator= ( const CRefCount & ) [inline]
 

operator= must NOT copy crefs/pinfo!!

Definition at line 79 of file smart_ptr.h.


Friends And Related Function Documentation

struct CPtrInfo [friend]
 

Definition at line 65 of file smart_ptr.h.


Member Data Documentation

CPtrInfo NLMISC::CRefCount::NullPtrInfo [static]
 

Definition at line 64 of file smart_ptr.h.

sint NLMISC::CRefCount::crefs [mutable]
 

Definition at line 71 of file smart_ptr.h.

CPtrInfo * NLMISC::CRefCount::pinfo [mutable]
 

Definition at line 72 of file smart_ptr.h.


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