|
||
class CCoeStatic : public CBase;
Base class for creating singleton objects that will be stored by CCoeEnv
.
Each object must have a unique TUid
.
Symbian OS does not provide writeable global static data. Singleton objects provide its equivalent in thread local storage, which is supported.
This behaviour is useful for objects in which only one copy is ever needed in the thread or application, e.g. in alert windows.
CBase
-
Base class for all classes to be instantiated on the heap.
CCoeStatic
- Base class for creating singleton objects that will be stored by CCoeEnv.
Defined in CCoeStatic
:
CCoeStatic()
CCoeStatic(TUid,TInt,TScope)
Constructor specifying a unique UID and the destruction priority and scope of th...CCoeStatic(TUid,TScope)
Constructor specifying a unique UID and the scope of the object.CCoeStatic_Reserved1()
CCoeStatic_Reserved2()
EApp
Access from an appUi in that thread. EDefaultDestructionPriority
EThread
Access from the entire thread. TScope
Scope of access to the singleton object. anonymous
The default destruction priority if none is specified in the constructor ~CCoeStatic()
Destructor. Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...protected: IMPORT_C CCoeStatic(TUid aUid, TScope=EThread);
Constructor specifying a unique UID and the scope of the object.
|
protected: IMPORT_C CCoeStatic(TUid aUid, TInt aDestructionPriority, TScope aScope=EThread);
Constructor specifying a unique UID and the destruction priority and scope of the object.
|
TScope
Scope of access to the singleton object.
|
n/a
The default destruction priority if none is specified in the constructor
|