|
||
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 class.
RRef
-
Contains, or packages, a copy of an instance of another class.
Defined in RRef
:
Alloc(const T &)
Creates a copy of the specified object, which is to be contained by this referen...Alloc(const T &,TInt)
Creates a copy of the specified object, which is to be contained by this referen...AllocL(const T &)
Creates a copy of the specified object, which is to be contained by this referen...AllocL(const T &,TInt)
Creates a copy of the specified object, which is to be contained by this referen...RRef()
Default constructor. RRef(const RRef< T > &)
Copy constructor.operator T *()
Gets a pointer to the contained object.operator->()
Gets a pointer to the contained object.operator=(const RRef< T > &)
Assignment operator.Inherited from RRefBase
:
Copy(const RRefBase &)
Provides an implementation for the RRef class copy constructor and assignment op...DoAlloc(const TAny *,TInt)
Creates a copy of an object, which is to be contained by this reference object.DoAllocL(const TAny *,TInt)
Creates a copy of an object, which is to be contained by this reference object, ...Free()
Frees the memory holding the contained object. RRefBase(const RRefBase &)
Copy constructor.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.
|