Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: e32std.h
Link against: euser.lib

Class TPckgC

TPckgC<class T>

Support

Supported from 5.0

Description

Packages a non-modifiable pointer descriptor which represents an object of specific type. The template parameter defines the type of object.

The object represented by the packaged pointer descriptor is accessible through the package but cannot be changed.

Derivation

TDesC8Abstract base class for 8 bit non-modifiable descriptors
TPckgCPackages a non-modifiable pointer descriptor which represents an object of specific type
TPtrC88 bit non-modifiable pointer descriptor

Defined in TPckgC:
TPckgC(), 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>=(), operator[]()

Inherited from TPtrC8:
Set()


Construction


TPckgC()

TPckgC(const T& aRef);

Description

Constructs a packaged non-modifiable pointer descriptor to represent the specified object whose type is defined by the template parameter.

Parameters

const T& aRef

The object to be represented by this packaged non-modifiable pointer descriptor.

[Top]


Access the packaged object


operator()

const T& operator()() const;

Description

Returns a reference to the object represented by this packaged non-modifiable pointer descriptor.

Return value

const T&

The packaged object