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.
Public Member Functions | |
---|---|
CFsObject() | |
IMPORT_C void | Close() |
CFsObjectCon * | Container() |
IMPORT_C TBool | IsCorrectThread() |
IMPORT_C TName | Name() |
IMPORT_C TInt | Open() |
IMPORT_C TInt | SetName(const TDesC *) |
Protected Member Functions | |
---|---|
~CFsObject() | |
TInt | Dec() |
void | DoClose() |
TInt | Inc() |
TInt | UniqueID() |
Private Attributes | |
---|---|
TInt | iAccessCount |
CFsObjectCon * | iContainer |
HBufC * | iName |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.