Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: e32std.h
Link against: euser.lib

Class RRefBase

class RRefBase;

Description

Base class that provides an implementation for the templated RRef class.

Members

Defined in RRefBase:
Copy(), DoAlloc(), DoAllocL(), Free(), RRefBase(), RRefBase(), iPtr

See also:


Construction and destruction


RRefBase()

protected: inline RRefBase();

Description

Default constructor.


RRefBase()

protected: inline RRefBase(const RRefBase &aRef);

Description

Copy constructor.

Parameters

const RRefBase &aRef

A reference to the object to be copied.

[Top]


Member functions


Free()

IMPORT_C void Free();

Description

Frees the memory holding the contained object.


DoAlloc()

protected: IMPORT_C void DoAlloc(const TAny *aPtr, TInt aSize);

Description

Creates a copy of an object, which is to be contained by this reference object.

Parameters

const TAny *aPtr

A pointer to memory holding a copy of the object.

TInt aSize

The size of the memory required to hold the object.


DoAllocL()

protected: IMPORT_C void DoAllocL(const TAny *aPtr, TInt aSize);

Description

Creates a copy of an object, which is to be contained by this reference object, and leaves on error.

Parameters

const TAny *aPtr

A pointer to memory holding a copy of the object.

TInt aSize

The size of the memory required to hold the object.


Copy()

protected: IMPORT_C void Copy(const RRefBase &aRef);

Description

Provides an implementation for the RRef class copy constructor and assignment operator.

Parameters

const RRefBase &aRef

The reference object to be copied.

See also:

[Top]


Member data


iPtr

protected: TInt * iPtr;

Description