HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 167 of file UT_Interval.h.

Member Function Documentation

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

Definition at line 369 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 393 of file UT_Interval.h.

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

Definition at line 408 of file UT_Interval.h.

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

Definition at line 445 of file UT_Interval.h.

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

Definition at line 61 of file UT_Interval.h.

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

Definition at line 627 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 281 of file UT_Interval.h.

template<typename T>
SYS_HashType UT_IntervalT< T >::hash ( void  ) 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 452 of file UT_Interval.h.

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

Definition at line 273 of file UT_Interval.h.

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

Definition at line 291 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 265 of file UT_Interval.h.

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

Definition at line 308 of file UT_Interval.h.

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

Definition at line 218 of file UT_Interval.h.

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

Definition at line 251 of file UT_Interval.h.

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

Definition at line 181 of file UT_Interval.h.

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

Definition at line 190 of file UT_Interval.h.

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

Definition at line 199 of file UT_Interval.h.

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

Definition at line 209 of file UT_Interval.h.

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

Definition at line 239 of file UT_Interval.h.

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

Definition at line 259 of file UT_Interval.h.

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

Definition at line 299 of file UT_Interval.h.

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

Definition at line 459 of file UT_Interval.h.

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

Definition at line 385 of file UT_Interval.h.

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

Definition at line 318 of file UT_Interval.h.

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

Definition at line 343 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: