ddc
Public Member Functions | Private Attributes | List of all members
LessIndexString2< IndexType, VectorType > Class Template Reference

#include <DDCLessOperators.h>

Inheritance diagram for LessIndexString2< IndexType, VectorType >:
Inheritance graph
[legend]
Collaboration diagram for LessIndexString2< IndexType, VectorType >:
Collaboration graph
[legend]

Public Member Functions

 LessIndexString2 (const VectorType *pBuffer1, const VectorType *pBuffer2=0)
 
bool operator() (const IndexType &W1, const IndexType &W2) const
 operator less for strings More...
 
bool Greater (const IndexType &W1, const IndexType &W2) const
 operator greater for strings More...
 

Private Attributes

const VectorType * m_pBuffer1
 
const VectorType * m_pBuffer2
 

Detailed Description

template<class IndexType, typename VectorType = vector<char>>
class LessIndexString2< IndexType, VectorType >

LessIndexString2 is a template operator "less" for an index set(the second version) This less operator provides quite "normal" less and greater operators for stings. The only difference is that the compared items are obtained not by a pointer, but by an offset to LessIndexString2::m_pBuffer1 and LessIndexString2::m_pBuffer2 accordingly.

Constructor & Destructor Documentation

◆ LessIndexString2()

template<class IndexType, typename VectorType = vector<char>>
LessIndexString2< IndexType, VectorType >::LessIndexString2 ( const VectorType *  pBuffer1,
const VectorType *  pBuffer2 = 0 
)
inline

Member Function Documentation

◆ operator()()

template<class IndexType, typename VectorType = vector<char>>
bool LessIndexString2< IndexType, VectorType >::operator() ( const IndexType &  W1,
const IndexType &  W2 
) const
inline

operator less for strings

◆ Greater()

template<class IndexType, typename VectorType = vector<char>>
bool LessIndexString2< IndexType, VectorType >::Greater ( const IndexType &  W1,
const IndexType &  W2 
) const
inline

operator greater for strings

Member Data Documentation

◆ m_pBuffer1

template<class IndexType, typename VectorType = vector<char>>
const VectorType* LessIndexString2< IndexType, VectorType >::m_pBuffer1
private

◆ m_pBuffer2

template<class IndexType, typename VectorType = vector<char>>
const VectorType* LessIndexString2< IndexType, VectorType >::m_pBuffer2
private

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