RRefBase Class Reference

class RRefBase

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

RRef

Public Member Functions
IMPORT_C voidFree()
Protected Member Functions
RRefBase()
RRefBase(const RRefBase &)
IMPORT_C voidCopy(const RRefBase &)
IMPORT_C voidDoAlloc(const TAny *, TInt)
IMPORT_C voidDoAllocL(const TAny *, TInt)
Private Member Functions
IMPORT_C voidoperator=(const RRefBase &)
Protected Attributes
TInt *iPtr

Constructor & Destructor Documentation

RRefBase()

RRefBase()[protected, inline]

Default constructor.

RRefBase(const RRefBase &)

RRefBase(const RRefBase &aRef)[protected, inline]

Copy constructor.

Parameters

const RRefBase & aRefA reference to the object to be copied.

Member Functions Documentation

Copy(const RRefBase &)

IMPORT_C voidCopy(const RRefBase &aRef)[protected]

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

RRef

Parameters

const RRefBase & aRefThe reference object to be copied.

DoAlloc(const TAny *, TInt)

IMPORT_C voidDoAlloc(const TAny *aPtr,
TIntaSize
)[protected]

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

Parameters

const TAny * aPtrA pointer to memory holding a copy of the object.
TInt aSizeThe size of the memory required to hold the object.

DoAllocL(const TAny *, TInt)

IMPORT_C voidDoAllocL(const TAny *aPtr,
TIntaSize
)[protected]

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

Parameters

const TAny * aPtrA pointer to memory holding a copy of the object.
TInt aSizeThe size of the memory required to hold the object.

Free()

IMPORT_C voidFree()

Frees the memory holding the contained object.

operator=(const RRefBase &)

IMPORT_C voidoperator=(const RRefBase &aRef)[private]

Parameters

const RRefBase & aRef

Member Data Documentation

TInt * iPtr

TInt *iPtr[protected]