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"
41PXR_NAMESPACE_OPEN_SCOPE
48# define TF_MAX_ARITY 7
55#define TF_BAD_SIZE_T SIZE_MAX
62 return (v < 0 ? -v : v);
72inline T
TfMin(
const T& v1,
const T& v2) {
73 return (v1 < v2 ? v1 : v2);
78inline 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
163PXR_NAMESPACE_CLOSE_SCOPE
185#define TF_UNUSED(x) (void) x
Architecture-specific math function calls.
Assorted mathematical utility functions.
T TfMax(const T &v1, const T &v2)
Returns the larger of the two given values.
T TfMin(const T &v1, const T &v2)
Returns the smaller of the two given values.
int TfAbs(int v)
Returns the absolute value of the given int value.
Function object for deleting any pointer.