#include <e32cmn.h>
class TPckgBuf : public TAlignedBuf8< sizeof(T)> |
Public Member Functions | |
---|---|
TPckgBuf() | |
TPckgBuf(const T &) | |
T & | operator()() |
const T & | operator()() |
TPckgBuf & | operator=(const TPckgBuf< T > &) |
T & | operator=(const T &) |
Inherited Attributes | |
---|---|
TAlignedBuf8< sizeof(T)>::@3 | |
TAlignedBuf8< sizeof(T)>::iBuf | |
TAlignedBuf8< sizeof(T)>::only_here_to_force_8byte_alignment | |
TDes8::__DECLARE_TEST | |
TDes8::iMaxLength |
Packages an object into a modifiable buffer descriptor.
The template parameter defines the type of object to be packaged.
The package provides a type safe way of transferring an object or data structure which is contained within a modifiable buffer descriptor. Typically, a package is used for passing data via inter thread communication.
The contained object is accessible through the package.
TPckgBuf | ( | ) | [inline] |
Constructs a packaged modifiable buffer descriptor for an object whose type is defined by the template parameter.
The length of the packaged descriptor is set to the length of the templated class but no data is assigned into the descriptor.
TPckgBuf | ( | const T & | aRef | ) | [inline] |
Constructs a packaged modifiable buffer descriptor for an object whose type is defined by the template parameter and copies the supplied object into the descriptor.
The length of the packaged descriptor is set to the length of the templated class.
Parameter | Description |
---|---|
aRef | The source object to be copied into the packaged modifiable buffer descriptor. |
T & | operator() | ( | ) | [inline] |
Gets a reference to the object contained by this packaged modifiable buffer descriptor.
Returns: The packaged object.
const T & | operator() | ( | ) | const [inline] |
Gets a const reference to the object contained by this packaged modifiable buffer descriptor.
Returns: The (const) packaged object.
Copies data from the specified packaged modifiable buffer descriptor into this packaged modifiable buffer descriptor, replacing any existing data.
Parameter | Description |
---|---|
aRef | The source packaged modifiable buffer descriptor. |
Returns: A reference to this packaged modifiable descriptor.