SNAP Library 4.0, Developer Reference  2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TCmpKeyDatByDat< TVal1, TVal2 > Class Template Reference

#include <ds.h>

Public Member Functions

 TCmpKeyDatByDat (const bool &AscSort=true)
 
bool operator() (const TKeyDat< TVal1, TVal2 > &P1, const TKeyDat< TVal1, TVal2 > &P2) const
 

Private Attributes

bool IsAsc
 

Detailed Description

template<class TVal1, class TVal2>
class TCmpKeyDatByDat< TVal1, TVal2 >

Definition at line 410 of file ds.h.

Constructor & Destructor Documentation

template<class TVal1 , class TVal2 >
TCmpKeyDatByDat< TVal1, TVal2 >::TCmpKeyDatByDat ( const bool &  AscSort = true)
inline

Definition at line 414 of file ds.h.

414 : IsAsc(AscSort) { }
bool IsAsc
Definition: ds.h:412

Member Function Documentation

template<class TVal1 , class TVal2 >
bool TCmpKeyDatByDat< TVal1, TVal2 >::operator() ( const TKeyDat< TVal1, TVal2 > &  P1,
const TKeyDat< TVal1, TVal2 > &  P2 
) const
inline

Definition at line 415 of file ds.h.

References TKeyDat< TKey, TDat >::Dat, and TCmpKeyDatByDat< TVal1, TVal2 >::IsAsc.

415  {
416  if (IsAsc) { return P1.Dat < P2.Dat; } else { return P2.Dat < P1.Dat; }
417  }
TDat Dat
Definition: ds.h:349
bool IsAsc
Definition: ds.h:412

Member Data Documentation

template<class TVal1 , class TVal2 >
bool TCmpKeyDatByDat< TVal1, TVal2 >::IsAsc
private

Definition at line 412 of file ds.h.

Referenced by TCmpKeyDatByDat< TVal1, TVal2 >::operator()().


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