Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:


Construction and destruction


RRefBase()

protected: inline RRefBase();

Description

Default constructor.


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

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

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(const RRefBase &)

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.

[Top]


Member data


iPtr

protected: TInt * iPtr;

Description