Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: e32std.h
Link against: euser.lib

Class TPckgBuf

TPckgBuf<class T>

Support

Supported from 5.0

Description

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.

Derivation

TBuf8This is a descriptor class which provides a buffer of fixed length for containing, accessing and manipulating TUint8 data
TBufBase8Base class used in the derivation of TBuf8
TDes8Modifiable 8-bit descriptor; abstract class
TDesC8Abstract base class for 8 bit non-modifiable descriptors
TPckgBufPackages an object into a modifiable buffer descriptor

Defined in TPckgBuf:
TPckgBuf(), operator(), operator=()

Inherited from TDes8:
Append(), AppendFill(), AppendFormat(), AppendFormatList(), AppendJustify(), AppendNum(), AppendNumFixedWidth(), AppendNumFixedWidthUC(), AppendNumUC(), Capitalize(), Collate(), Copy(), CopyC(), CopyCP(), CopyF(), CopyLC(), CopyUC(), Delete(), Fill(), FillZ(), Fold(), Format(), FormatList(), Insert(), Justify(), LowerCase(), MaxLength(), MaxSize(), Num(), NumFixedWidth(), NumFixedWidthUC(), NumUC(), PtrZ(), Repeat(), Replace(), SetLength(), SetMax(), Swap(), Trim(), TrimAll(), TrimLeft(), TrimRight(), UpperCase(), Zero(), ZeroTerminate(), operator+=(), operator=, operator[]()

Inherited from TDesC8:
Alloc(), AllocL(), AllocLC(), Compare(), CompareC(), CompareF(), Find(), FindC(), FindF(), Left(), Length(), Locate(), LocateF(), LocateReverse(), LocateReverseF(), Match(), MatchC(), MatchF(), Mid(), Ptr(), Right(), Size(), operator!=(), operator<(), operator<=(), operator==(), operator>(), operator>=()

See also:


Construction


TPckgBuf()

TPckgBuf();

Description

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

TPckgBuf(const T& aRef);

Description

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

The source object to be copied into the packaged modifiable buffer descriptor.

[Top]


Copying data


operator=()

TPckgBuf& operator=(const TPckgBuf<T>& aRef);

Description

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

Parameters

const TPckgBuf<T>& aRef

The source packaged modifiable buffer descriptor.

Return value

TPckgBuf&

A reference to this packaged modifiable descriptor.


operator=()

T& operator=(const T& aRef);

Description

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

Parameters

const T& aRef

The source object.

Return value

T&

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

[Top]


Access the packaged object


operator()

T& operator()();

Description

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

Return value

T&

The packaged object