class CorRef : public CorBase

A simple reference counting class

Inheritance:


Public Methods

CorDebug ()
CorRef ( const CorRef& aRef )
CorRef ()
void decrease ()
int getExecutionLevel ()
void increase ()
unsigned int operator* ()
unsigned int operator++ ()
unsigned int operator-- ()
CorRef& operator= ( const CorRef& aRef )
CorBool operator== ( unsigned int anInt )
CorBool overAndOut ()
static int setExecutionLevel ()
~CorDebug ()
virtual ~CorRef ()

Public


Purpose
Increase the reference count

Purpose
Decrease the reference count

Purpose
The d'tor

$Id: CorRef

Purpose
The default c'tor

Purpose
The d'tor

Purpose
The default c'tor

Purpose
Query whether there are no more references left

Purpose
Decrease the reference count

Purpose
Return the reference count

Purpose
Increase the reference count

Protected Methods

CorDebug ( const CorDebug& aRef )
CorDebug& operator= ( const CorDebug& aRef )

Documentation

A simple reference counting class
CorDebug()

Purpose
The default c'tor.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

~CorDebug()

Purpose
The d'tor.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

int getExecutionLevel()

static int setExecutionLevel()

CorDebug( const CorDebug& aRef )

CorDebug& operator=( const CorDebug& aRef )

$Id: CorRef.h,v 1.3 1997/04/11 13:32:01 mwiedmer Exp $

SYNOPSIS

    #include <CorRef.h>
  
    CorRef myObject;
  

DESCRIPTION
This class helps with reference counts.

CAUTIONS
There can be only 2^sizeof(int) references to an object.

EXAMPLES
<optional>

SEE ALSO
<optional>
CorBase

CorRef()

Purpose
The default c'tor.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

CorRef( const CorRef& aRef )

CorRef& operator=( const CorRef& aRef )

virtual ~CorRef()

Purpose
The d'tor.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

void increase()

Purpose
Increase the reference count.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

CorBool overAndOut()

Purpose
Query whether there are no more references left.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Returns
This function returns corTRUE if there are no more references counted.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

void decrease()

Purpose
Decrease the reference count.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

unsigned int operator*()

Purpose
Return the reference count.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Returns
This function returns the current reference count.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

unsigned int operator++()

Purpose
Increase the reference count.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Returns
This function returns the current reference count.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

unsigned int operator--()

Purpose
Decrease the reference count.

Preconditions

  • Itemize this section if necessary. Remove itemization otherwise.

Returns
This function returns the current reference count.

Exceptions

  • Itemize this section if necessary. Remove itemization otherwise.

CorBool operator==( unsigned int anInt )


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de