HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ValArray.h File Reference
#include "UT_API.h"
#include "UT_Array.h"
#include "UT_Assert.h"
#include "UT_Compare.h"
#include "UT_Swap.h"
#include "UT_VectorTypes.h"
#include <SYS/SYS_Compiler.h>
#include <SYS/SYS_Deprecated.h>
#include <SYS/SYS_Types.h>
#include <SYS/SYS_TypeTraits.h>
#include <initializer_list>
#include <stdio.h>
#include <string.h>
+ Include dependency graph for UT_ValArray.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UT_ValArray< T >
 
struct  UT::DefaultClearer< T >
 
struct  UT::DefaultClearer< UT_ValArray< T > >
 

Namespaces

 UT
 

Macros

#define UT_DECL_ARITHMETIC_SPECIALIZATION(T)
 

Typedefs

typedef UT_ValArray< const char * > UT_StringList
 

Functions

UT_API void UTsetCompareFloatsTolerance (float tol)
 
UT_API float UTgetCompareFloatsTolerance ()
 
UT_API int UTcompareFloats (const float *a, const float *b)
 
UT_API int UTcompareInts (const int *a, const int *b)
 
UT_API int UTcomparePointers (void *const *a, void *const *b)
 
 UT_SWAPPER_TEMPLATE (UT_ValArray)
 

Macro Definition Documentation

#define UT_DECL_ARITHMETIC_SPECIALIZATION (   T)
Value:
template <> UT_API T UT_ValArray<T>::sum() const; \
template <> UT_API void UT_ValArray<T>::display() const; \
#define UT_API
Definition: UT_API.h:14
T sum() const
Functions which are only specialized for int{32,64}, fpreal{32,64}.
Definition: UT_ValArray.h:342
void display() const
Prints the constents of the array.
Definition: UT_ValArray.h:348

Definition at line 382 of file UT_ValArray.h.

Typedef Documentation

typedef UT_ValArray<const char *> UT_StringList

Definition at line 410 of file UT_ValArray.h.

Function Documentation

UT_SWAPPER_TEMPLATE ( UT_ValArray  )

I don't know why this is needed, given that there's one for UT_Array, but UTswap called on two UT_ValArray's was using the default "copy to temp" function.

UT_API int UTcompareFloats ( const float a,
const float b 
)
UT_API int UTcompareInts ( const int a,
const int b 
)
UT_API int UTcomparePointers ( void *const a,
void *const b 
)
UT_API float UTgetCompareFloatsTolerance ( )
UT_API void UTsetCompareFloatsTolerance ( float  tol)