TPckgBuf Class Reference

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.

Public Member Functions
TPckgBuf()
TPckgBuf(const T &)
T &operator()()
const T &operator()()
TPckgBuf &operator=(const TPckgBuf< T > &)
T &operator=(const T &)
Inherited Functions
TAlignedBuf8< sizeof(T)>::TAlignedBuf8()
TAlignedBuf8< sizeof(T)>::TAlignedBuf8(TInt)
TAlignedBuf8< sizeof(T)>::TAlignedBuf8(const TDesC8 &)
TAlignedBuf8< sizeof(T)>::TAlignedBuf8(const TUint8 *)
TAlignedBuf8< sizeof(T)>::operator=(const TAlignedBuf8< S > &)
TAlignedBuf8< sizeof(T)>::operator=(const TDesC8 &)
TAlignedBuf8< sizeof(T)>::operator=(const TUint8 *)
TBufBase8::TBufBase8(TInt)
TBufBase8::TBufBase8(TInt,TInt)
TBufBase8::TBufBase8(const TDesC8 &,TInt)
TBufBase8::TBufBase8(const TUint8 *,TInt)
TDes8::Append(TChar)
TDes8::Append(const TDesC16 &)
TDes8::Append(const TDesC8 &)
TDes8::Append(const TUint8 *,TInt)
TDes8::AppendFill(TChar,TInt)
TDes8::AppendFormat(TRefByValue< const TDesC8 >,...)
TDes8::AppendFormat(TRefByValue< const TDesC8 >,TDes8Overflow *,...)
TDes8::AppendFormatList(const TDesC8 &,VA_LIST,TDes8Overflow *)
TDes8::AppendJustify(const TDesC8 &,TInt,TAlign,TChar)
TDes8::AppendJustify(const TDesC8 &,TInt,TInt,TAlign,TChar)
TDes8::AppendJustify(const TUint8 *,TInt,TAlign,TChar)
TDes8::AppendJustify(const TUint8 *,TInt,TInt,TAlign,TChar)
TDes8::AppendNum(TInt64)
TDes8::AppendNum(TReal,const TRealFormat &)
TDes8::AppendNum(TUint64,TRadix)
TDes8::AppendNumFixedWidth(TUint,TRadix,TInt)
TDes8::AppendNumFixedWidthUC(TUint,TRadix,TInt)
TDes8::AppendNumUC(TUint64,TRadix)
TDes8::Capitalize()
TDes8::Collapse()
TDes8::Collate()
TDes8::Copy(const TDesC16 &)
TDes8::Copy(const TDesC8 &)
TDes8::Copy(const TUint8 *)
TDes8::Copy(const TUint8 *,TInt)
TDes8::CopyC(const TDesC8 &)
TDes8::CopyCP(const TDesC8 &)
TDes8::CopyF(const TDesC8 &)
TDes8::CopyLC(const TDesC8 &)
TDes8::CopyUC(const TDesC8 &)
TDes8::Delete(TInt,TInt)
TDes8::DoAppendNum(TUint64,TRadix,TUint,TInt)
TDes8::DoPadAppendNum(TInt,TInt,const TUint8 *)
TDes8::Expand()
TDes8::Fill(TChar)
TDes8::Fill(TChar,TInt)
TDes8::FillZ()
TDes8::FillZ(TInt)
TDes8::Fold()
TDes8::Format(TRefByValue< const TDesC8 >,...)
TDes8::FormatList(const TDesC8 &,VA_LIST)
TDes8::Insert(TInt,const TDesC8 &)
TDes8::Justify(const TDesC8 &,TInt,TAlign,TChar)
TDes8::LeftTPtr(TInt)const
TDes8::LowerCase()
TDes8::MaxLength()const
TDes8::MaxSize()const
TDes8::MidTPtr(TInt)const
TDes8::MidTPtr(TInt,TInt)const
TDes8::Num(TInt64)
TDes8::Num(TReal,const TRealFormat &)
TDes8::Num(TUint64,TRadix)
TDes8::NumFixedWidth(TUint,TRadix,TInt)
TDes8::NumFixedWidthUC(TUint,TRadix,TInt)
TDes8::NumUC(TUint64,TRadix)
TDes8::PtrZ()
TDes8::Repeat(const TDesC8 &)
TDes8::Repeat(const TUint8 *,TInt)
TDes8::Replace(TInt,TInt,const TDesC8 &)
TDes8::RightTPtr(TInt)const
TDes8::SetLength(TInt)
TDes8::SetMax()
TDes8::Swap(TDes8 &)
TDes8::TDes8()
TDes8::TDes8(TInt,TInt,TInt)
TDes8::Trim()
TDes8::TrimAll()
TDes8::TrimLeft()
TDes8::TrimRight()
TDes8::UpperCase()
TDes8::WPtr()const
TDes8::Zero()
TDes8::ZeroTerminate()
TDes8::operator+=(const TDesC8 &)
TDes8::operator=(const TDes8 &)
TDes8::operator[](TInt)
TDes8::operator[](TInt)const
TDesC8::Alloc()const
TDesC8::AllocL()const
TDesC8::AllocLC()const
TDesC8::AtC(TInt)const
TDesC8::Compare(const TDesC8 &)const
TDesC8::CompareC(const TDesC8 &)const
TDesC8::CompareF(const TDesC8 &)const
TDesC8::DoSetLength(TInt)
TDesC8::Find(const TDesC8 &)const
TDesC8::Find(const TUint8 *,TInt)const
TDesC8::FindC(const TDesC8 &)const
TDesC8::FindC(const TUint8 *,TInt)const
TDesC8::FindF(const TDesC8 &)const
TDesC8::FindF(const TUint8 *,TInt)const
TDesC8::Left(TInt)const
TDesC8::Length()const
TDesC8::Locate(TChar)const
TDesC8::LocateF(TChar)const
TDesC8::LocateReverse(TChar)const
TDesC8::LocateReverseF(TChar)const
TDesC8::Match(const TDesC8 &)const
TDesC8::MatchC(const TDesC8 &)const
TDesC8::MatchF(const TDesC8 &)const
TDesC8::Mid(TInt)const
TDesC8::Mid(TInt,TInt)const
TDesC8::Ptr()const
TDesC8::Right(TInt)const
TDesC8::Size()const
TDesC8::TDesC8()
TDesC8::TDesC8(TInt,TInt)
TDesC8::Type()const
TDesC8::operator!=(const TDesC8 &)const
TDesC8::operator<(const TDesC8 &)const
TDesC8::operator<=(const TDesC8 &)const
TDesC8::operator==(const TDesC8 &)const
TDesC8::operator>(const TDesC8 &)const
TDesC8::operator>=(const TDesC8 &)const
Inherited Attributes
TAlignedBuf8< sizeof(T)>::@6
TAlignedBuf8< sizeof(T)>::iBuf
TAlignedBuf8< sizeof(T)>::only_here_to_force_8byte_alignment
TDes8::__DECLARE_TEST
TDes8::iMaxLength

Constructor & Destructor Documentation

TPckgBuf()

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 &)

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.

Parameters

const T & aRefThe source object to be copied into the packaged modifiable buffer descriptor.

Member Functions Documentation

operator()()

T &operator()()[inline]

Gets a reference to the object contained by this packaged modifiable buffer descriptor.

The packaged object.

operator()()

const T &operator()()const [inline]

Gets a const reference to the object contained by this packaged modifiable buffer descriptor.

The (const) packaged object.

operator=(const TPckgBuf< T > &)

TPckgBuf &operator=(const TPckgBuf< T > &aRef)[inline]

Copies data from the specified packaged modifiable buffer descriptor into this packaged modifiable buffer descriptor, replacing any existing data.

A reference to this packaged modifiable descriptor.

Parameters

const TPckgBuf< T > & aRefThe source packaged modifiable buffer descriptor.

operator=(const T &)

T &operator=(const T &aRef)[inline]

Copies data from the specified object into this packaged modifiable buffer descriptor, replacing any existing data.

A reference to the copy of the source object in the packaged modifiable buffer descriptor.

Parameters

const T & aRefThe source object.