SourceForge.net Logo
Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

VEkRefCount Class Template Reference

Equivalent to EkRefCount; however, the destructor throws an error if the ref count != 0. More...

#include <EkRefCount.h>

Collaboration diagram for VEkRefCount:

[legend]
List of all members.

Public Methods

 VEkRefCount (void)
 Constructor simply sets useCount to zero. More...

virtual ~VEkRefCount (void)
 Destructor. This throws an error if mUseCount != 0. See also, EkRefCount. More...

 VEkRefCount (const VEkRefCount &obj)
 Copy constructor, does not copy useCount. More...

virtual VEkRefCount & operator= (const VEkRefCount &obj)
 Assignment operator, does not copy useCount. More...

virtual void addRef (void)
 Increment useCount by one. More...

virtual bool deleteRef (void)
 Decrements useCount by one, returns true if useCount==0 after decrement. More...

long useCount () const
 Returns the useCount. More...


Detailed Description

template<class mutex_type>
class VEkRefCount< mutex_type >

Equivalent to EkRefCount; however, the destructor throws an error if the ref count != 0.


Constructor & Destructor Documentation

template<class mutex_type>
VEkRefCount< mutex_type >::VEkRefCount void    [inline]
 

Constructor simply sets useCount to zero.

template<class mutex_type>
VEkRefCount< mutex_type >::~VEkRefCount void    [virtual]
 

Destructor. This throws an error if mUseCount != 0. See also, EkRefCount.

template<class mutex_type>
VEkRefCount< mutex_type >::VEkRefCount const VEkRefCount< mutex_type > &    obj [inline]
 

Copy constructor, does not copy useCount.


Member Function Documentation

template<class mutex_type>
void VEkRefCount< mutex_type >::addRef void    [inline, virtual]
 

Increment useCount by one.

template<class mutex_type>
bool VEkRefCount< mutex_type >::deleteRef void    [inline, virtual]
 

Decrements useCount by one, returns true if useCount==0 after decrement.

template<class mutex_type>
VEkRefCount< mutex_type > & VEkRefCount< mutex_type >::operator= const VEkRefCount< mutex_type > &    obj [inline, virtual]
 

Assignment operator, does not copy useCount.

template<class mutex_type>
long VEkRefCount< mutex_type >::useCount   const [inline]
 

Returns the useCount.


The documentation for this class was generated from the following file:
Last Updated: March 12, 2003 (rlr)
Copyright © 2003 Eastman Kodak Company All Rights Reserved.