RRefBase Class Reference

#include <e32std.h>

class RRefBase
Protected Attributes
TInt *iPtr
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)

Detailed Description

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

See also: RRef

Member Attribute Documentation

iPtr

TInt *iPtr[protected]

Constructor & Destructor Documentation

RRefBase ( )

RRefBase()[protected, inline]

Default constructor.

RRefBase ( const RRefBase & )

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

Copy constructor.

Parameters
aRefA reference to the object to be copied.

Member Function Documentation

Copy ( const RRefBase & )

IMPORT_C voidCopy(const RRefBase &aRef)[protected]

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

See also: RRef

Parameters
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
aPtrA pointer to memory holding a copy of the object.
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
aPtrA pointer to memory holding a copy of the object.
aSizeThe size of the memory required to hold the object.

Free ( )

IMPORT_C voidFree()

Frees the memory holding the contained object.