CFsObject Class Reference

class CFsObject : public CBase

Implements reference counting to track concurrent references to itself.

An object of this type arranges automatic destruction of itself when the final reference is removed.

A reference counting object is any object which has CFsObject as its base class. Constructing a CFsObject derived type or calling its Open() member function adds a reference to that object by adding one to the reference count; calling its Close() member function removes a reference by subtracting one from the reference count; when the last user of the object calls Close(), the reference count becomes zero and the object is automatically destroyed.

Inherits from

Constructor & Destructor Documentation

CFsObject()

IMPORT_CCFsObject()

~CFsObject()

IMPORT_C~CFsObject()[protected]

Member Functions Documentation

Close()

IMPORT_C voidClose()[virtual]

Container()

CFsObjectCon *Container()const [inline]

Dec()

TInt Dec()[protected, inline]

DoClose()

voidDoClose()[protected]

Inc()

TInt Inc()[protected, inline]

IsCorrectThread()

IMPORT_C TBoolIsCorrectThread()[virtual]

Name()

IMPORT_C TNameName()const

Open()

IMPORT_C TIntOpen()[virtual]

SetName(const TDesC *)

IMPORT_C TIntSetName(const TDesC *aName)

Parameters

const TDesC * aName

UniqueID()

TInt UniqueID()const [protected]

Member Data Documentation

TInt iAccessCount

TInt iAccessCount[private]

CFsObjectCon * iContainer

CFsObjectCon *iContainer[private]

HBufC * iName

HBufC *iName[private]