Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Protected Attributes
DataStructures::MLKeyRef< templateType > Class Template Reference

#include <DS_Multilist.h>

List of all members.

Public Member Functions

const templateType & Get (void) const
 MLKeyRef (const templateType &input)
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.

: val(input) {}

Member Function Documentation

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

Definition at line 65 of file DS_Multilist.h.

References DataStructures::MLKeyRef< templateType >::val.

{return val;}
template<class templateType>
bool DataStructures::MLKeyRef< templateType >::operator< ( const templateType &  right) [inline]

Definition at line 66 of file DS_Multilist.h.

References DataStructures::MLKeyRef< templateType >::val.

{return val < right;}
template<class templateType>
bool DataStructures::MLKeyRef< templateType >::operator== ( const templateType &  right) [inline]

Definition at line 68 of file DS_Multilist.h.

References DataStructures::MLKeyRef< templateType >::val.

{return val == right;}
template<class templateType>
bool DataStructures::MLKeyRef< templateType >::operator> ( const templateType &  right) [inline]

Definition at line 67 of file DS_Multilist.h.

References DataStructures::MLKeyRef< templateType >::val.

{return val > right;}

Member Data Documentation

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

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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net