Location:
e32std.h
class RRef : public RRefBase;
Contains, or packages, a copy of an instance of another class.
The template parameter defines the type of the contained object.
The contained object is held in allocated memory, and can be accessed through the member selection and dereference operators.
RRefBase
- Base class that provides an implementation for the templated
RRef
- Contains, or packages, a copy of an instance of another class
Defined in RRef
:
Alloc()
, Alloc()
, AllocL()
, AllocL()
, RRef()
, RRef()
, operator T *()
, operator->()
, operator=()
Inherited from RRefBase
:
Copy()
,
DoAlloc()
,
DoAllocL()
,
Free()
,
iPtr
inline RRef(const RRef< T > &anObject);
Copy constructor.
The constructor frees any existing contained object, and takes ownership of the object owned by anObject.
|
inline void operator=(const RRef< T > &anObject);
Assignment operator.
The constructor frees any existing contained object, and takes ownership of the object owned by anObject.
|
inline T *operator->();
Gets a pointer to the contained object.
|
inline operator T *();
Gets a pointer to the contained object.
|
inline void Alloc(const T &anObject);
Creates a copy of the specified object, which is to be contained by this reference object.
The amount of memory set aside to contain the object is defined by the size of the object
|
inline void Alloc(const T &anObject, TInt aSize);
Creates a copy of the specified object, which is to be contained by this reference object.
The amount of memory set aside to contain the object is defined by aSize.
|
inline void AllocL(const T &anObject);
Creates a copy of the specified object, which is to be contained by this reference object, and leaves on failure.
The amount of memory set aside to contain the object is defined by the size of the object
|
inline void AllocL(const T &anObject, TInt aSize);
Creates a copy of the specified object, which is to be contained by this reference object, and leaves on failure.
The amount of memory set aside to contain the object is defined by aSize.
|