MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::MinMaxArg< T, I > Struct Template Reference

#include <MRMinMaxArg.h>

Public Member Functions

auto minPair () const
 
auto maxPair () const
 
void include (const std::pair< T, I > &p)
 changes min(Arg) and max(Arg) if necessary to include given point
 
void include (T v, I arg)
 changes min(Arg) and max(Arg) if necessary to include given point
 
void include (const MinMaxArg &s)
 changes min(Arg) and max(Arg) if necessary to include given segment
 

Public Attributes

min = std::numeric_limits<T>::max()
 
max = std::numeric_limits<T>::lowest()
 
I minArg
 
I maxArg
 

Detailed Description

template<typename T, typename I>
struct MR::MinMaxArg< T, I >

minimum and maximum of some vector with values of type T, and the indices of where minimum and maximum are reached of type I

Member Function Documentation

◆ include() [1/3]

template<typename T , typename I >
void MR::MinMaxArg< T, I >::include ( const MinMaxArg< T, I > & s)
inline

changes min(Arg) and max(Arg) if necessary to include given segment

◆ include() [2/3]

template<typename T , typename I >
void MR::MinMaxArg< T, I >::include ( const std::pair< T, I > & p)
inline

changes min(Arg) and max(Arg) if necessary to include given point

◆ include() [3/3]

template<typename T , typename I >
void MR::MinMaxArg< T, I >::include ( T v,
I arg )
inline

changes min(Arg) and max(Arg) if necessary to include given point

◆ maxPair()

template<typename T , typename I >
auto MR::MinMaxArg< T, I >::maxPair ( ) const
inline

◆ minPair()

template<typename T , typename I >
auto MR::MinMaxArg< T, I >::minPair ( ) const
inline

Member Data Documentation

◆ max

template<typename T , typename I >
T MR::MinMaxArg< T, I >::max = std::numeric_limits<T>::lowest()

◆ maxArg

template<typename T , typename I >
I MR::MinMaxArg< T, I >::maxArg

◆ min

template<typename T , typename I >
T MR::MinMaxArg< T, I >::min = std::numeric_limits<T>::max()

◆ minArg

template<typename T , typename I >
I MR::MinMaxArg< T, I >::minArg

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