decaf::lang::ArrayPointerComparator< T > Class Template Reference

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>

Inheritance diagram for decaf::lang::ArrayPointerComparator< T >:
Inheritance graph
[legend]

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

Detailed Description

template<typename T>
class decaf::lang::ArrayPointerComparator< T >

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.


Constructor & Destructor Documentation

template<typename T >
virtual decaf::lang::ArrayPointerComparator< T >::~ArrayPointerComparator (  )  [inline, virtual]

Member Function Documentation

template<typename T >
virtual int decaf::lang::ArrayPointerComparator< T >::compare ( const ArrayPointer< T > &  left,
const ArrayPointer< T > &  right 
) const [inline, virtual]
template<typename T >
virtual bool decaf::lang::ArrayPointerComparator< T >::operator() ( const ArrayPointer< T > &  left,
const ArrayPointer< T > &  right 
) const [inline, virtual]

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

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1