Quick Links:

bal | bbl | bdl | bsl

Public Types | Public Member Functions

bslstl::SetComparator< KEY, COMPARATOR > Class Template Reference

#include <bslstl_setcomparator.h>

List of all members.

Public Types

typedef TreeNode< KEY > NodeType

Public Member Functions

 SetComparator ()
 SetComparator (const COMPARATOR &keyComparator)
template<class LOOKUP_KEY >
bool operator() (const LOOKUP_KEY &lhs, const bslalg::RbTreeNode &rhs)
template<class LOOKUP_KEY >
bool operator() (const bslalg::RbTreeNode &lhs, const LOOKUP_KEY &rhs)
void swap (SetComparator &other)
template<class LOOKUP_KEY >
bool operator() (const LOOKUP_KEY &lhs, const bslalg::RbTreeNode &rhs) const
template<class LOOKUP_KEY >
bool operator() (const bslalg::RbTreeNode &lhs, const LOOKUP_KEY &rhs) const
COMPARATOR & keyComparator ()
const COMPARATOR & keyComparator () const

template<class KEY, class COMPARATOR>
class bslstl::SetComparator< KEY, COMPARATOR >


Member Typedef Documentation

template<class KEY , class COMPARATOR >
typedef TreeNode<KEY> bslstl::SetComparator< KEY, COMPARATOR >::NodeType

Constructor & Destructor Documentation

template<class KEY , class COMPARATOR >
bslstl::SetComparator< KEY, COMPARATOR >::SetComparator (  ) 

Create a SetComparator object that will use a default constructed COMPARATOR.

template<class KEY , class COMPARATOR >
bslstl::SetComparator< KEY, COMPARATOR >::SetComparator ( const COMPARATOR &  keyComparator  )  [explicit]

Create a SetComparator object holding a copy of the specified keyComparator.


Member Function Documentation

template<class KEY , class COMPARATOR >
template<class LOOKUP_KEY >
bool bslstl::SetComparator< KEY, COMPARATOR >::operator() ( const LOOKUP_KEY &  lhs,
const bslalg::RbTreeNode rhs 
)

Return true if the specified lhs is less than (ordered before, according to the comparator held by this object) value() of the specified rhs after being cast to NodeType, and false otherwise. The behavior is undefined unless rhs can be safely cast to NodeType.

template<class KEY , class COMPARATOR >
template<class LOOKUP_KEY >
bool bslstl::SetComparator< KEY, COMPARATOR >::operator() ( const bslalg::RbTreeNode lhs,
const LOOKUP_KEY &  rhs 
)

Return true if value() of the specified lhs after being cast to NodeType is less than (ordered before, according to the comparator held by this object) the specified rhs, and false otherwise. The behavior is undefined unless rhs can be safely cast to NodeType.

template<class KEY , class COMPARATOR >
void bslstl::SetComparator< KEY, COMPARATOR >::swap ( SetComparator< KEY, COMPARATOR > &  other  ) 

Efficiently exchange the value of this object with the value of the specified other object. This method provides the no-throw exception-safety guarantee.

template<class KEY , class COMPARATOR >
template<class LOOKUP_KEY >
bool bslstl::SetComparator< KEY, COMPARATOR >::operator() ( const LOOKUP_KEY &  lhs,
const bslalg::RbTreeNode rhs 
) const

Return true if the specified lhs is less than (ordered before, according to the comparator held by this object) value() of the specified rhs after being cast to NodeType, and false otherwise. The behavior is undefined unless rhs can be safely cast to NodeType.

template<class KEY , class COMPARATOR >
template<class LOOKUP_KEY >
bool bslstl::SetComparator< KEY, COMPARATOR >::operator() ( const bslalg::RbTreeNode lhs,
const LOOKUP_KEY &  rhs 
) const

Return true if value() of the specified lhs after being cast to NodeType is less than (ordered before, according to the comparator held by this object) the specified rhs, and false otherwise. The behavior is undefined unless rhs can be safely cast to NodeType.

template<class KEY , class COMPARATOR >
COMPARATOR& bslstl::SetComparator< KEY, COMPARATOR >::keyComparator (  ) 

Return a reference providing modifiable access to the function pointer or functor to which this comparator delegates comparison operations.

template<class KEY , class COMPARATOR >
const COMPARATOR& bslstl::SetComparator< KEY, COMPARATOR >::keyComparator (  )  const

Return a reference providing non-modifiable access to the function pointer or functor to which this comparator delegates comparison operations.


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