rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Data Access Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IliRefCounted Class Reference

Utility class. More...

#include <ilviews/dataccess/refcount.h>

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

List of all members.

Public Member Functions

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

Protected Member Functions

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

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 (  )  [protected, virtual]

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.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends

© Copyright 2012, 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.