Public Member Functions | Protected Attributes

DataStructures::MLKeyRef< templateType > Class Template Reference

#include <DS_Multilist.h>

List of all members.

Public Member Functions

 MLKeyRef (const templateType &input)
const templateType & Get (void) const
bool operator< (const templateType &right)
bool operator> (const templateType &right)
bool operator== (const templateType &right)

Protected Attributes

const templateType & val

Detailed Description

template<class templateType>
class DataStructures::MLKeyRef< templateType >

The following is invalid. bool operator<( const MyClass *myClass, const int &inputKey ) {return myClass->value < inputKey;} At least one type has to be a reference to a class MLKeyRef is a helper class to turn a native type into a class, so you can compare that native type against a pointer to a different class Used for he Multilist, when _DataType != _KeyType

Definition at line 61 of file DS_Multilist.h.


Constructor & Destructor Documentation

template<class templateType>
DataStructures::MLKeyRef< templateType >::MLKeyRef ( const templateType &  input  )  [inline]

Definition at line 64 of file DS_Multilist.h.


Member Function Documentation

template<class templateType>
const templateType& DataStructures::MLKeyRef< templateType >::Get ( void   )  const [inline]

Definition at line 65 of file DS_Multilist.h.

Here is the caller graph for this function:

template<class templateType>
bool DataStructures::MLKeyRef< templateType >::operator< ( const templateType &  right  )  [inline]

Definition at line 66 of file DS_Multilist.h.

template<class templateType>
bool DataStructures::MLKeyRef< templateType >::operator== ( const templateType &  right  )  [inline]

Definition at line 68 of file DS_Multilist.h.

template<class templateType>
bool DataStructures::MLKeyRef< templateType >::operator> ( const templateType &  right  )  [inline]

Definition at line 67 of file DS_Multilist.h.


Member Data Documentation

template<class templateType>
const templateType& DataStructures::MLKeyRef< templateType >::val [protected]

Definition at line 70 of file DS_Multilist.h.


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