CoinUtils 2.11.4
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CoinExternalVectorFirstLess_2< S, T, V > Class Template Reference

Function operator. More...

#include <CoinSort.hpp>

+ Collaboration diagram for CoinExternalVectorFirstLess_2< S, T, V >:

Public Member Functions

bool operator() (const CoinPair< S, T > &t1, const CoinPair< S, T > &t2) const
 
 CoinExternalVectorFirstLess_2 (const V *v)
 

Private Member Functions

 CoinExternalVectorFirstLess_2 ()
 

Private Attributes

const V * vec_
 

Detailed Description

template<class S, class T, class V>
class CoinExternalVectorFirstLess_2< S, T, V >

Function operator.

Compare based on the entries of an external vector, i.e., returns true if vec[t1.first < vec[t2.first] (i.e., increasing wrt. vec). Note that to use this comparison operator .first must be a data type automatically convertible to int.

Definition at line 111 of file CoinSort.hpp.

Constructor & Destructor Documentation

◆ CoinExternalVectorFirstLess_2() [1/2]

template<class S , class T , class V >
CoinExternalVectorFirstLess_2< S, T, V >::CoinExternalVectorFirstLess_2 ( )
private

◆ CoinExternalVectorFirstLess_2() [2/2]

template<class S , class T , class V >
CoinExternalVectorFirstLess_2< S, T, V >::CoinExternalVectorFirstLess_2 ( const V *  v)
inline

Definition at line 124 of file CoinSort.hpp.

Member Function Documentation

◆ operator()()

template<class S , class T , class V >
bool CoinExternalVectorFirstLess_2< S, T, V >::operator() ( const CoinPair< S, T > &  t1,
const CoinPair< S, T > &  t2 
) const
inline

Definition at line 119 of file CoinSort.hpp.

Member Data Documentation

◆ vec_

template<class S , class T , class V >
const V* CoinExternalVectorFirstLess_2< S, T, V >::vec_
private

Definition at line 116 of file CoinSort.hpp.


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