libigl v2.5.0
Loading...
Searching...
No Matches
igl::SortableRow< T > Class Template Reference

A row of things that can be sorted against other rows. More...

#include <SortableRow.h>

Public Member Functions

 SortableRow ()
 Default constructor.
 
 SortableRow (const T &data)
 Constructor.
 
bool operator< (const SortableRow &that) const
 Less than comparison.
 
bool operator== (const SortableRow &that) const
 Equality comparison.
 
bool operator!= (const SortableRow &that) const
 Inequality comparison.
 

Public Attributes

data
 The data.
 

Detailed Description

template<typename T>
class igl::SortableRow< T >

A row of things that can be sorted against other rows.

Template Parameters
Tshould be a vector/matrix/array that implements .size(), and operator(int i)

Constructor & Destructor Documentation

◆ SortableRow() [1/2]

template<typename T >
igl::SortableRow< T >::SortableRow ( )
inline

Default constructor.

◆ SortableRow() [2/2]

template<typename T >
igl::SortableRow< T >::SortableRow ( const T &  data)
inline

Constructor.

Parameters
[in]datathe data

Member Function Documentation

◆ operator<()

template<typename T >
bool igl::SortableRow< T >::operator< ( const SortableRow< T > &  that) const
inline

Less than comparison.

Parameters
[in]thatthe other row
Returns
true if this row is less than that row

◆ operator==()

template<typename T >
bool igl::SortableRow< T >::operator== ( const SortableRow< T > &  that) const
inline

Equality comparison.

Parameters
[in]thatthe other row
Returns
true if this row is equal to that row

◆ operator!=()

template<typename T >
bool igl::SortableRow< T >::operator!= ( const SortableRow< T > &  that) const
inline

Inequality comparison.

Parameters
[in]thatthe other row
Returns
true if this row is not equal to that row

Member Data Documentation

◆ data

template<typename T >
T igl::SortableRow< T >::data

The data.


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