rwlogo

Rogue Wave Views
Data Access Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator
List of all members | Public Member Functions | Protected Member Functions
IliRefCounted Class Reference

Utility class. More...

#include <ilviews/dataccess/refcount.h>

Inheritance diagram for IliRefCounted:
IliDatatype IliFormatIpl IliInputMaskIpl IliSchema IliSession IliSQLCursor IliTableBuffer IliTablePropertyManager IliTransactionManager

Public Member Functions

IlInt getRefCount () const
 Returns the reference count of the object. Initially, this property is set to 0. More...
 
void lock () const
 Increments the reference count of the object.
 
void unLock () const
 Decrements the reference count of the object. More...
 

Protected Member Functions

virtual ~IliRefCounted ()
 This is the virtual destructor of the IliRefCounted class. More...
 

Detailed Description

Utility class.

Library: dataccess

This class is used as a base class for objects whose lifetime is managed by a reference count. Such objects are never explicitly deleted.

Constructor & Destructor Documentation

virtual IliRefCounted::~IliRefCounted ( )
protectedvirtual

This is the virtual destructor of the IliRefCounted class.

Note that since this destructor is protected, users of the IliRefCounted object cannot explicitly delete the object.

Member Function Documentation

IlInt IliRefCounted::getRefCount ( ) const

Returns the reference count of the object. Initially, this property is set to 0.

Returns
The count.
void IliRefCounted::unLock ( ) const

Decrements the reference count of the object.

When the reference count reaches 0, it is automatically deleted. Each call to unLock must match a preceding call to lock.


© Copyright 2015, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.