HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_IntervalT< T > Class Template Reference

#include <UT_Interval.h>

+ Inheritance diagram for UT_IntervalT< T >:

Public Types

typedef T value_type
 
typedef UT_IntervalT< Tthis_type
 

Public Member Functions

 UT_IntervalT (T a=0)
 
 UT_IntervalT (T a, T b, bool order=false)
 
UT_IntervalToperator+= (const UT_IntervalT &rhs)
 
UT_IntervalToperator-= (const UT_IntervalT &rhs)
 
UT_IntervalToperator*= (const UT_IntervalT &rhs)
 
UT_IntervalToperator/= (const UT_IntervalT &rhs)
 
UT_IntervalToperator|= (const UT_IntervalT &rhs)
 
UT_IntervalToperator&= (const UT_IntervalT &rhs)
 
UT_IntervalToperator+= (T rhs)
 
UT_IntervalToperator-= (T rhs)
 
UT_IntervalToperator*= (T rhs)
 
bool operator== (const UT_IntervalT &rhs) const
 
bool operator!= (const UT_IntervalT &rhs) const
 
void assign (T Min, T Max, bool order_them=false)
 
void extendToContain (T a)
 
void minWith (const UT_IntervalT &rhs)
 
void maxWith (const UT_IntervalT &rhs)
 
void order ()
 
T closest (T val) const
 
T closest (T val, T wrap) const
 
T avg () const
 
T delta () const
 
void square ()
 
UT_IntervalT sqr () const
 
UT_IntervalT abs () const
 
UT_IntervalT pow (T arg) const
 
int contains (T arg) const
 
int isValid (T tol=0.f) const
 
void display () const
 
int equalZero (T tol=0.00001f) const
 
int isEqual (const UT_IntervalT &v, T tol=0.00001f) const
 
void clampZero (T tol=0.00001f)
 
void negate ()
 
void invert (UT_IntervalT &v) const
 
void invert ()
 

Public Attributes

T min
 
T max
 
SYS_HashType hash () const
 
std::size_t hash_value (const this_type &t)
 

Detailed Description

template<typename T>
class UT_IntervalT< T >

Definition at line 22 of file UT_Interval.h.

Member Typedef Documentation

template<typename T>
typedef UT_IntervalT<T> UT_IntervalT< T >::this_type

Definition at line 26 of file UT_Interval.h.

template<typename T>
typedef T UT_IntervalT< T >::value_type

Definition at line 25 of file UT_Interval.h.

Constructor & Destructor Documentation

template<typename T>
UT_IntervalT< T >::UT_IntervalT ( T  a = 0)
explicit

Definition at line 160 of file UT_Interval.h.

template<typename T>
UT_IntervalT< T >::UT_IntervalT ( T  a,
T  b,
bool  order = false 
)

Definition at line 162 of file UT_Interval.h.

Member Function Documentation

template<typename T >
UT_IntervalT< T > UT_IntervalT< T >::abs ( ) const

Definition at line 364 of file UT_Interval.h.

template<typename T>
void UT_IntervalT< T >::assign ( T  Min,
T  Max,
bool  order_them = false 
)
inline

Definition at line 43 of file UT_Interval.h.

template<typename T>
T UT_IntervalT< T >::avg ( ) const
inline

Definition at line 60 of file UT_Interval.h.

template<typename T>
void UT_IntervalT< T >::clampZero ( T  tol = 0.00001f)
inline

Definition at line 83 of file UT_Interval.h.

template<typename T>
T UT_IntervalT< T >::closest ( T  val) const

Definition at line 388 of file UT_Interval.h.

template<typename T>
T UT_IntervalT< T >::closest ( T  val,
T  wrap 
) const

Definition at line 403 of file UT_Interval.h.

template<typename T>
int UT_IntervalT< T >::contains ( T  arg) const

Definition at line 440 of file UT_Interval.h.

template<typename T>
T UT_IntervalT< T >::delta ( void  ) const
inline

Definition at line 61 of file UT_Interval.h.

template<typename T >
void UT_IntervalT< T >::display ( ) const

Definition at line 622 of file UT_Interval.h.

template<typename T>
int UT_IntervalT< T >::equalZero ( T  tol = 0.00001f) const
inline

Definition at line 72 of file UT_Interval.h.

template<typename T>
void UT_IntervalT< T >::extendToContain ( T  a)

Definition at line 276 of file UT_Interval.h.

template<typename T>
SYS_HashType UT_IntervalT< T >::hash ( ) const
inline

Compute a hash

Definition at line 120 of file UT_Interval.h.

template<typename T>
void UT_IntervalT< T >::invert ( UT_IntervalT< T > &  v) const
inline

Definition at line 95 of file UT_Interval.h.

template<typename T>
void UT_IntervalT< T >::invert ( )
inline

Definition at line 108 of file UT_Interval.h.

template<typename T>
int UT_IntervalT< T >::isEqual ( const UT_IntervalT< T > &  v,
T  tol = 0.00001f 
) const
inline

Definition at line 77 of file UT_Interval.h.

template<typename T>
int UT_IntervalT< T >::isValid ( T  tol = 0.f) const

Definition at line 447 of file UT_Interval.h.

template<typename T >
void UT_IntervalT< T >::maxWith ( const UT_IntervalT< T > &  rhs)

Definition at line 268 of file UT_Interval.h.

template<typename T >
void UT_IntervalT< T >::minWith ( const UT_IntervalT< T > &  rhs)

Definition at line 286 of file UT_Interval.h.

template<typename T>
void UT_IntervalT< T >::negate ( )
inline

Definition at line 89 of file UT_Interval.h.

template<typename T >
bool UT_IntervalT< T >::operator!= ( const UT_IntervalT< T > &  rhs) const

Definition at line 260 of file UT_Interval.h.

template<typename T >
UT_IntervalT< T > & UT_IntervalT< T >::operator&= ( const UT_IntervalT< T > &  rhs)

Definition at line 303 of file UT_Interval.h.

template<typename T >
UT_IntervalT< T > & UT_IntervalT< T >::operator*= ( const UT_IntervalT< T > &  rhs)

Definition at line 213 of file UT_Interval.h.

template<typename T>
UT_IntervalT< T > & UT_IntervalT< T >::operator*= ( T  rhs)

Definition at line 246 of file UT_Interval.h.

template<typename T >
UT_IntervalT< T > & UT_IntervalT< T >::operator+= ( const UT_IntervalT< T > &  rhs)

Definition at line 176 of file UT_Interval.h.

template<typename T>
UT_IntervalT< T > & UT_IntervalT< T >::operator+= ( T  rhs)

Definition at line 185 of file UT_Interval.h.

template<typename T >
UT_IntervalT< T > & UT_IntervalT< T >::operator-= ( const UT_IntervalT< T > &  rhs)

Definition at line 194 of file UT_Interval.h.

template<typename T>
UT_IntervalT< T > & UT_IntervalT< T >::operator-= ( T  rhs)

Definition at line 204 of file UT_Interval.h.

template<typename T >
UT_IntervalT< T > & UT_IntervalT< T >::operator/= ( const UT_IntervalT< T > &  rhs)

Definition at line 234 of file UT_Interval.h.

template<typename T >
bool UT_IntervalT< T >::operator== ( const UT_IntervalT< T > &  rhs) const

Definition at line 254 of file UT_Interval.h.

template<typename T >
UT_IntervalT< T > & UT_IntervalT< T >::operator|= ( const UT_IntervalT< T > &  rhs)

Definition at line 294 of file UT_Interval.h.

template<typename T >
void UT_IntervalT< T >::order ( )

Definition at line 454 of file UT_Interval.h.

template<typename T>
UT_IntervalT< T > UT_IntervalT< T >::pow ( T  arg) const

Definition at line 380 of file UT_Interval.h.

template<typename T >
UT_IntervalT< T > UT_IntervalT< T >::sqr ( ) const

Definition at line 313 of file UT_Interval.h.

template<typename T >
void UT_IntervalT< T >::square ( )

Definition at line 338 of file UT_Interval.h.

Friends And Related Function Documentation

template<typename T>
std::size_t hash_value ( const this_type t)
friend

Compute a hash

Definition at line 126 of file UT_Interval.h.

Member Data Documentation

template<typename T>
T UT_IntervalT< T >::max

Definition at line 129 of file UT_Interval.h.

template<typename T>
T UT_IntervalT< T >::min

Definition at line 129 of file UT_Interval.h.


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