RRefBase Class Reference

class RRefBase

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

RRef

Public Member Functions
IMPORT_C void Free ()
Protected Member Functions
RRefBase ()
RRefBase (const RRefBase &)
IMPORT_C void Copy (const RRefBase &)
IMPORT_C void DoAlloc (const TAny *, TInt )
IMPORT_C void DoAllocL (const TAny *, TInt )
Private Member Functions
IMPORT_C void operator= (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 & aRef A reference to the object to be copied.

Member Functions Documentation

Copy(const RRefBase &)

IMPORT_C void Copy ( const RRefBase & aRef ) [protected]

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

RRef

Parameters

const RRefBase & aRef The reference object to be copied.

DoAlloc(const TAny *, TInt)

IMPORT_C void DoAlloc ( const TAny * aPtr,
TInt aSize
) [protected]

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(const TAny *, TInt)

IMPORT_C void DoAllocL ( const TAny * aPtr,
TInt aSize
) [protected]

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.

Free()

IMPORT_C void Free ( )

Frees the memory holding the contained object.

operator=(const RRefBase &)

IMPORT_C void operator= ( const RRefBase & aRef ) [private]

Parameters

const RRefBase & aRef

Member Data Documentation

TInt * iPtr

TInt * iPtr [protected]