7#ifndef PXR_BASE_TF_TF_H
8#define PXR_BASE_TF_TF_H
13#if defined(__cplusplus) || defined(doxygen)
17#include "pxr/base/arch/buildMode.h"
24PXR_NAMESPACE_OPEN_SCOPE
31# define TF_MAX_ARITY 7
38#define TF_BAD_SIZE_T SIZE_MAX
45 return (v < 0 ? -v : v);
55inline T
TfMin(
const T& v1,
const T& v2) {
56 return (v1 < v2 ? v1 : v2);
61inline T
TfMax(
const T& v1,
const T& v2) {
62 return (v1 > v2 ? v1 : v2);
100 void operator() (T* t)
const {
104 template <
class T1,
class T2>
105 void operator() (std::pair<T1, T2*> p)
const {
144#define TF_DEV_BUILD ARCH_DEV_BUILD
146PXR_NAMESPACE_CLOSE_SCOPE
168#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.