24 #ifndef PXR_BASE_TF_TF_H 25 #define PXR_BASE_TF_TF_H 30 #if defined(__cplusplus) || defined(doxygen) 34 #include "pxr/base/arch/buildMode.h" 41 PXR_NAMESPACE_OPEN_SCOPE
48 # define TF_MAX_ARITY 7 49 #endif // TF_MAX_ARITY 55 #define TF_BAD_SIZE_T SIZE_MAX 62 return (v < 0 ? -v : v);
72 inline T
TfMin(
const T& v1,
const T& v2) {
73 return (v1 < v2 ? v1 : v2);
78 inline T
TfMax(
const T& v1,
const T& v2) {
79 return (v1 > v2 ? v1 : v2);
117 void operator() (T* t)
const {
121 template <
class T1,
class T2>
122 void operator() (std::pair<T1, T2*> p)
const {
161 #define TF_DEV_BUILD ARCH_DEV_BUILD 163 PXR_NAMESPACE_CLOSE_SCOPE
165 #endif // defined(__cplusplus) 185 #define TF_UNUSED(x) (void) x Function object for deleting any pointer.
Architecture-specific math function calls.
int TfAbs(int v)
Returns the absolute value of the given int value.
T TfMin(const T &v1, const T &v2)
Returns the smaller of the two given values.
T TfMax(const T &v1, const T &v2)
Returns the larger of the two given values.