This implementation of Comparator is designed to allows objects in a Collection to be sorted or tested for equality based on the value of the value of the actual pointer to the array being contained in this ArrayPointer. More...
#include <src/main/decaf/lang/ArrayPointer.h>

Public Member Functions | |
| virtual | ~ArrayPointerComparator () |
| virtual bool | operator() (const ArrayPointer< T > &left, const ArrayPointer< T > &right) const |
| virtual int | compare (const ArrayPointer< T > &left, const ArrayPointer< T > &right) const |
This implementation of Comparator is designed to allows objects in a Collection to be sorted or tested for equality based on the value of the value of the actual pointer to the array being contained in this ArrayPointer.
This allows for a basic ordering to be acheived in Decaf containers.
Custom implementations are possible where an array of some type has a logical natural ordering such as array of integers where the sum of all ints in the array is used.
| virtual decaf::lang::ArrayPointerComparator< T >::~ArrayPointerComparator | ( | ) | [inline, virtual] |
| virtual int decaf::lang::ArrayPointerComparator< T >::compare | ( | const ArrayPointer< T > & | left, | |
| const ArrayPointer< T > & | right | |||
| ) | const [inline, virtual] |
References decaf::lang::ArrayPointer< T >::get().
| virtual bool decaf::lang::ArrayPointerComparator< T >::operator() | ( | const ArrayPointer< T > & | left, | |
| const ArrayPointer< T > & | right | |||
| ) | const [inline, virtual] |
References decaf::lang::ArrayPointer< T >::get().
1.6.1