Extents< T > Class Template Reference

Maintain a min and max value, and update them when supplied a new data point. More...

#include <Extents.h>

Collaboration diagram for Extents< T >:
Collaboration graph

Public Member Functions

 Extents ()
 
 Extents (T min, T max)
 
bool operator== (const Extents &r)
 
bool operator!= (const Extents &r)
 
bool isSet () const
 
void set (T min, T max)
 
void reset ()
 
bool sample (T f)
 
template<typename Alloc >
bool sample (const std::vector< T, Alloc > &ff)
 
bool sample (const Extents &r)
 
getMin () const
 
getMax () const
 

Private Attributes

m_min
 
m_max
 

Detailed Description

template<typename T>
class Extents< T >

Maintain a min and max value, and update them when supplied a new data point.

Definition at line 25 of file Extents.h.

Constructor & Destructor Documentation

template<typename T>
Extents< T >::Extents ( )
inline

Definition at line 28 of file Extents.h.

template<typename T>
Extents< T >::Extents ( min,
max 
)
inline

Definition at line 29 of file Extents.h.

Member Function Documentation

template<typename T>
bool Extents< T >::operator== ( const Extents< T > &  r)
inline

Definition at line 31 of file Extents.h.

template<typename T>
bool Extents< T >::operator!= ( const Extents< T > &  r)
inline

Definition at line 34 of file Extents.h.

template<typename T>
bool Extents< T >::isSet ( ) const
inline
template<typename T>
void Extents< T >::set ( min,
max 
)
inline

Definition at line 41 of file Extents.h.

template<typename T>
void Extents< T >::reset ( )
inline

Definition at line 46 of file Extents.h.

Referenced by DeferredNotifier::makeDeferredNotifications().

template<typename T>
bool Extents< T >::sample ( f)
inline

Definition at line 51 of file Extents.h.

Referenced by Extents< sv_frame_t >::sample(), and DeferredNotifier::update().

template<typename T>
template<typename Alloc >
bool Extents< T >::sample ( const std::vector< T, Alloc > &  ff)
inline

Definition at line 63 of file Extents.h.

template<typename T>
bool Extents< T >::sample ( const Extents< T > &  r)
inline

Definition at line 72 of file Extents.h.

template<typename T>
T Extents< T >::getMin ( ) const
inline

Definition at line 85 of file Extents.h.

Referenced by DeferredNotifier::makeDeferredNotifications().

template<typename T>
T Extents< T >::getMax ( ) const
inline

Definition at line 86 of file Extents.h.

Referenced by DeferredNotifier::makeDeferredNotifications().

Member Data Documentation


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