OpenVDB  10.0.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Extrema< ValueT, 0 > Class Template Reference

Template specialization of Extrema on scalar value types, i.e. rank = 0. More...

#include <nanovdb/util/GridStats.h>

Inherited by Stats< ValueT, 0 >.

Public Types

using ValueType = ValueT
 

Public Member Functions

 Extrema ()
 
 Extrema (const ValueT &v)
 
 Extrema (const ValueT &a, const ValueT &b)
 
Extremaoperator= (const Extrema &)=default
 
Extremamin (const ValueT &v)
 
Extremamax (const ValueT &v)
 
Extremaadd (const ValueT &v)
 
Extremaadd (const ValueT &v, uint64_t)
 
Extremaadd (const Extrema &other)
 
const ValueT & min () const
 
const ValueT & max () const
 
 operator bool () const
 

Static Public Member Functions

static constexpr bool hasMinMax ()
 
static constexpr bool hasAverage ()
 
static constexpr bool hasStdDeviation ()
 
static constexpr size_t size ()
 

Protected Attributes

ValueT mMin
 
ValueT mMax
 

Detailed Description

template<typename ValueT>
class nanovdb::Extrema< ValueT, 0 >

Template specialization of Extrema on scalar value types, i.e. rank = 0.

Member Typedef Documentation

using ValueType = ValueT

Constructor & Destructor Documentation

Extrema ( )
inline
Extrema ( const ValueT &  v)
inline
Extrema ( const ValueT &  a,
const ValueT &  b 
)
inline

Member Function Documentation

Extrema& add ( const ValueT &  v)
inline
Extrema& add ( const ValueT &  v,
uint64_t   
)
inline
Extrema& add ( const Extrema< ValueT, 0 > &  other)
inline
static constexpr bool hasAverage ( )
inlinestatic
static constexpr bool hasMinMax ( )
inlinestatic
static constexpr bool hasStdDeviation ( )
inlinestatic
Extrema& max ( const ValueT &  v)
inline
const ValueT& max ( ) const
inline
Extrema& min ( const ValueT &  v)
inline
const ValueT& min ( ) const
inline
operator bool ( ) const
inline
Extrema& operator= ( const Extrema< ValueT, 0 > &  )
default
static constexpr size_t size ( )
inlinestatic

Member Data Documentation

ValueT mMax
protected
ValueT mMin
protected