DGtal 2.1.0
Loading...
Searching...
No Matches
PairSorted2nd< T1, T2 > Struct Template Reference

[polyhedralizer-typedefs] More...

Public Types

typedef PairSorted2nd< T1, T2 > Self
 

Public Member Functions

 PairSorted2nd (const T1 &t1, const T2 &t2)
 
bool operator< (const Self &other) const
 

Data Fields

T1 first
 
T2 second
 

Detailed Description

template<typename T1, typename T2>
struct PairSorted2nd< T1, T2 >

[polyhedralizer-typedefs]

Examples
examples/tutorial-examples/polyhedralizer.cpp, and tutorial-examples/polyhedralizer.cpp.

Definition at line 97 of file polyhedralizer.cpp.

Member Typedef Documentation

◆ Self

template<typename T1 , typename T2 >
typedef PairSorted2nd<T1,T2> PairSorted2nd< T1, T2 >::Self

Constructor & Destructor Documentation

◆ PairSorted2nd()

template<typename T1 , typename T2 >
PairSorted2nd< T1, T2 >::PairSorted2nd ( const T1 &  t1,
const T2 &  t2 
)
inline

Definition at line 100 of file polyhedralizer.cpp.

100: first( t1 ), second( t2 ) {}

Member Function Documentation

◆ operator<()

template<typename T1 , typename T2 >
bool PairSorted2nd< T1, T2 >::operator< ( const Self other) const
inline
Examples
examples/tutorial-examples/polyhedralizer.cpp, and tutorial-examples/polyhedralizer.cpp.

Definition at line 101 of file polyhedralizer.cpp.

102 {
103 return second < other.second;
104 }

References PairSorted2nd< T1, T2 >::second.

Field Documentation

◆ first

template<typename T1 , typename T2 >
T1 PairSorted2nd< T1, T2 >::first

◆ second

template<typename T1 , typename T2 >
T2 PairSorted2nd< T1, T2 >::second

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