Location:
e32cmn.h
class TPckgBuf : public TAlignedBuf8< sizeof(T)>;
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.
TAlignedBuf8< sizeof(T)>
- No description.
TPckgBuf
- Packages an object into a modifiable buffer descriptor
Defined in TPckgBuf
:
TPckgBuf()
, TPckgBuf()
, operator()()
, operator()()
, operator=()
, operator=()
inline TPckgBuf();
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.
inline TPckgBuf(const T &aRef);
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.
|
inline TPckgBuf &operator=(const TPckgBuf< T > &aRef);
Copies data from the specified packaged modifiable buffer descriptor into this packaged modifiable buffer descriptor, replacing any existing data.
|
|
inline T &operator=(const T &aRef);
Copies data from the specified object into this packaged modifiable buffer descriptor, replacing any existing data.
|
|
inline T &operator()();
Gets a reference to the object contained by this packaged modifiable buffer descriptor.
|
inline const T &operator()() const;
Gets a const reference to the object contained by this packaged modifiable buffer descriptor.
|