Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: msvfind.h
Link against: msgs.lib

Class CMsvFindResultSelection

CMsvFindResultSelection

Description

Collection of results from a text search operation. The collection is organized as an array.

Derivation

CArrayFixA thin templated base class for arrays of fixed length objects
CArrayFixBaseBase class for arrays of fixed length objects
CArrayFixFlatArray of fixed length objects contained within a flat dynamic buffer
CBaseBase class for all classes to be instantiated on the heap
CMsvFindResultSelectionCollection of results from a text search operation

Defined in CMsvFindResultSelection:
CMsvFindResultSelection(), CopyL(), CopyLC(), Find()

Inherited from CArrayFix:
AppendL(), AppendL()Append, Array(), At(), Back(), End(), ExpandL(), ExtendL(), FindIsq(), InsertIsqAllowDuplicatesL(), InsertIsqL(), InsertL(), ResizeL(), operator[]

Inherited from CArrayFixBase:
Compress(), Count(), Delete(), Length(), Reset(), Sort()

Inherited from CArrayFixFlat:
SetReserveL()

Inherited from CBase:
operator new()


Construction


CMsvFindResultSelection()

CMsvFindResultSelection()

Description

Constructs an empty results collection.

[Top]


Copy the results


CopyL()

CMsvFindResultSelection* CopyL() const;

Description

Creates a copy of the results of the text search operation.

The function leaves if memory cannot be allocated for the new object.

Return value

CMsvFindOperation*

Pointer to the new copy of the results of the text search operation.


CopyLC()

CMsvFindResultSelection* CopyLC() const;

Description

Creates a copy of the results of the text search operation and puts a pointer to the new object onto the cleanup stack.

The function leaves if memory cannot be allocated for the new object.

Return value

CMsvFindOperation*

Pointer to the new copy of the results of the text search operation.

[Top]


Find an entry


Find()

TInt Find(TMsvId aId) const;

Description

Returns the index of the entry corresponding to the specified entry Id.

Parameters

TMsvId aId

The entry Id.

Return value

TInt

The index of the entry within the search results which has the specified entry Id. KErrNotFound, if there is no matching entry.