Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
Loading...
Searching...
No Matches
TIdentityRelation< T > Class Template Reference

A templated class which packages a function that determines whether two objects of a given class type match. More...

#include <e32cmn.h>

Public Member Functions

 TIdentityRelation ()
 Constructs the object to use the equality operator (==) defined for class T to determine whether two class T type objects match.
 
 TIdentityRelation (TBool(*anIdentity)(const T &, const T &))
 Constructs the object taking the specified function as an argument.
 
 operator TGeneralIdentityRelation () const
 Operator that gets the function that determines whether two objects of a given class type match.
 

Detailed Description

template<class T>
class TIdentityRelation< T >

A templated class which packages a function that determines whether two objects of a given class type match.

During linear search operations the search term is always passed as the first argument and the second argument is an element of the array being searched.

A TIdentityRelation<T> object is constructed and passed as a parameter to member functions of the array classes RArray<T> and RPointerArray<T>.

See also
RArray
RPointerArray
API status
Published to all clients. Released API.

Definition at line 5427 of file e32cmn.h.

Constructor & Destructor Documentation

◆ TIdentityRelation() [1/2]

template<class T >
TIdentityRelation< T >::TIdentityRelation ( )
inline

Constructs the object to use the equality operator (==) defined for class T to determine whether two class T type objects match.

(generated from Symbian Developer Library)

◆ TIdentityRelation() [2/2]

template<class T >
TIdentityRelation< T >::TIdentityRelation ( TBool(*)(const T &, const T &)  anIdentity)
inline

Constructs the object taking the specified function as an argument.

The specified function should implement an algorithm for determining whether two class T type objects match. It should return:

  1. true, if the two objects match.
  2. false, if the two objects do not match.
Parameters
anIdentityA pointer to a function that takes constant references to two class T objects and returns a TInt value.

(generated from Symbian Developer Library)

Member Function Documentation

◆ operator TGeneralIdentityRelation()

template<class T >
TIdentityRelation< T >::operator TGeneralIdentityRelation ( ) const
inline

Operator that gets the function that determines whether two objects of a given class type match.

(generated from Symbian Developer Library)


The documentation for this class was generated from the following files: