Public Member Functions | Private Attributes
Sundance::OrderedPair< A, B > Class Template Reference

List of all members.

Public Member Functions

 OrderedPair (const A &_a, const B &_b)
bool operator< (const OrderedPair< A, B > &other) const
const A & first () const
const B & second () const

Private Attributes

a_
b_

Detailed Description

template<class A, class B>
class Sundance::OrderedPair< A, B >

OrderedPair provides a means of lexigraphic comparison of a pair of objects. The pair {a1, b1} is compared to {a2, b2} by first comparing the most significant entries a1 and a2, and if they are equal, comparing the least significant entries b1 and b2.

Definition at line 59 of file SundanceOrderedTuple.hpp.


Constructor & Destructor Documentation

template<class A, class B>
Sundance::OrderedPair< A, B >::OrderedPair ( const A &  _a,
const B &  _b 
) [inline]

Definition at line 63 of file SundanceOrderedTuple.hpp.


Member Function Documentation

template<class A, class B>
const A& Sundance::OrderedPair< A, B >::first ( ) const [inline]
template<class A, class B>
bool Sundance::OrderedPair< A, B >::operator< ( const OrderedPair< A, B > &  other) const [inline]

Definition at line 67 of file SundanceOrderedTuple.hpp.

template<class A, class B>
const B& Sundance::OrderedPair< A, B >::second ( ) const [inline]

Member Data Documentation

template<class A, class B>
A Sundance::OrderedPair< A, B >::a_ [private]
template<class A, class B>
B Sundance::OrderedPair< A, B >::b_ [private]

Site Contact