1 #ifndef SimTK_SimTKCOMMON_COMMON_H_
2 #define SimTK_SimTKCOMMON_COMMON_H_
104 #ifndef SimTK_DEFAULT_PRECISION
105 # define SimTK_DEFAULT_PRECISION 2
108 #if (SimTK_DEFAULT_PRECISION == 1)
111 #elif (SimTK_DEFAULT_PRECISION == 2)
114 #elif (SimTK_DEFAULT_PRECISION == 4)
118 #error ILLEGAL VALUE FOR DEFAULT PRECISION
122 #if defined(__cplusplus)
124 #define SimTK_DEBUG(s) std::printf("DBG: " s)
125 #define SimTK_DEBUG1(s,a1) std::printf("DBG: " s,a1)
126 #define SimTK_DEBUG2(s,a1,a2) std::printf("DBG: " s,a1,a2)
127 #define SimTK_DEBUG3(s,a1,a2,a3) std::printf("DBG: " s,a1,a2,a3)
128 #define SimTK_DEBUG4(s,a1,a2,a3,a4) std::printf("DBG: " s,a1,a2,a3,a4)
131 #define SimTK_DEBUG(s) printf("DBG: " s)
132 #define SimTK_DEBUG1(s,a1) printf("DBG: " s,a1)
133 #define SimTK_DEBUG2(s,a1,a2) printf("DBG: " s,a1,a2)
134 #define SimTK_DEBUG3(s,a1,a2,a3) printf("DBG: " s,a1,a2,a3)
135 #define SimTK_DEBUG4(s,a1,a2,a3,a4) printf("DBG: " s,a1,a2,a3,a4)
138 #define SimTK_DEBUG(s)
139 #define SimTK_DEBUG1(s,a1)
140 #define SimTK_DEBUG2(s,a1,a2)
141 #define SimTK_DEBUG3(s,a1,a2,a3)
142 #define SimTK_DEBUG4(s,a1,a2,a3,a4)
167 #pragma warning(disable:4231)
168 #pragma warning(disable:4251)
169 #pragma warning(disable:4275)
170 #pragma warning(disable:4345)
172 #if defined(SimTK_SimTKCOMMON_BUILDING_SHARED_LIBRARY)
173 #define SimTK_SimTKCOMMON_EXPORT __declspec(dllexport)
176 #pragma warning(disable:4661)
178 #elif defined(SimTK_SimTKCOMMON_BUILDING_STATIC_LIBRARY) || defined(SimTK_USE_STATIC_LIBRARIES)
179 #define SimTK_SimTKCOMMON_EXPORT
181 #define SimTK_SimTKCOMMON_EXPORT __declspec(dllimport)
202 #define SimTK_SimTKCOMMON_EXPORT // Linux, Mac
208 #if defined(__cplusplus)
220 #if defined(__cplusplus)
228 #if defined(__cplusplus)
243 #if _MSC_VER>=1700 || (defined(__GNUG__) && __cplusplus>=201103L)
245 #define OVERRIDE_11 override
246 #define FINAL_11 final
248 #define OVERRIDE_11 override
249 #define FINAL_11 sealed
264 #define SimTK_FORCE_INLINE __forceinline
266 #define SimTK_FORCE_INLINE __attribute__((always_inline))
273 #if defined(_MSC_VER) && (_MSC_VER <= 1700) // VC++ 12 (2013, _MSC_VER=1800) added these
275 inline bool isfinite(
float f) {
return _finite(f) != 0;}
276 inline bool isfinite(
double d) {
return _finite(d) != 0;}
277 inline bool isfinite(
long double l) {
return _finite(l) != 0;}
278 inline bool isnan(
float f) {
return _isnan(f) != 0;}
279 inline bool isnan(
double d) {
return _isnan(d) != 0;}
280 inline bool isnan(
long double l) {
return _isnan(l) != 0;}
281 inline bool isinf(
float f) {
return std::abs(f)==std::numeric_limits<float>::infinity();}
282 inline bool isinf(
double d) {
return std::abs(d)==std::numeric_limits<double>::infinity();}
283 inline bool isinf(
long double l) {
return std::abs(l)==std::numeric_limits<double>::infinity();}
284 inline bool signbit(
float f) {
return (*reinterpret_cast<unsigned*>(&f) & 0x80000000U) != 0;}
285 inline bool signbit(
double d) {
return (*reinterpret_cast<unsigned long long*>(&d)
286 & 0x8000000000000000ULL) != 0;}
287 inline bool signbit(
long double l) {
return (*reinterpret_cast<unsigned long long*>(&l)
288 & 0x8000000000000000ULL) != 0;}
305 inline bool canStoreInInt(
unsigned int u) {
return (
unsigned int)(int(u)) == u;}
307 inline bool canStoreInInt(
unsigned long u) {
return (
unsigned long)(int(u)) == u;}
309 inline bool canStoreInInt(
unsigned long long u) {
return (
unsigned long long)(int(u)) == u;}
332 inline bool isSizeInRange(
signed char sz,
signed char mx){
return 0<=sz&&sz<=mx;}
336 inline bool isSizeInRange(
long long sz,
long long mx){
return 0<=sz&&sz<=mx;}
337 inline bool isSizeInRange(
unsigned char sz,
unsigned char mx){
return sz<=mx;}
338 inline bool isSizeInRange(
unsigned short sz,
unsigned short mx){
return sz<=mx;}
340 inline bool isSizeInRange(
unsigned long sz,
unsigned long mx){
return sz<=mx;}
341 inline bool isSizeInRange(
unsigned long long sz,
unsigned long long mx){
return sz<=mx;}
360 inline bool isIndexInRange(
unsigned long long ix,
unsigned long long sz){
return ix<sz;}
419 #define SimTK_DEFINE_UNIQUE_INDEX_TYPE(NAME) \
420 SimTK_DEFINE_AND_EXPORT_UNIQUE_LOCAL_INDEX_TYPE(,,,NAME) \
421 static const NAME Invalid ## NAME;
425 #define SimTK_DEFINE_AND_EXPORT_UNIQUE_INDEX_TYPE(EXPORT,NAME) \
426 SimTK_DEFINE_AND_EXPORT_UNIQUE_LOCAL_INDEX_TYPE(EXPORT,,,NAME) \
427 static const NAME Invalid ## NAME;
430 #define SimTK_DEFINE_UNIQUE_LOCAL_INDEX_TYPE(PARENT,NAME) \
431 SimTK_DEFINE_AND_EXPORT_UNIQUE_LOCAL_INDEX_TYPE(,PARENT,::,NAME)
435 #define SimTK_DEFINE_AND_EXPORT_UNIQUE_LOCAL_INDEX_TYPE(EXPORT,PARENT,SEP,NAME) \
436 class EXPORT NAME { \
439 NAME() : ix(SimTK::InvalidIndex) { } \
440 explicit NAME(int i) : ix(i) {assert(i>=0 || i==SimTK::InvalidIndex);} \
441 explicit NAME(long l): ix((int)l) {assert(SimTK::canStoreInNonnegativeInt(l));} \
442 explicit NAME(unsigned int u) : ix((int)u) {assert(SimTK::canStoreInInt(u));} \
443 explicit NAME(unsigned long ul) : ix((int)ul) {assert(SimTK::canStoreInInt(ul));} \
444 operator int() const {return ix;} \
445 bool isValid() const {return ix>=0;} \
446 bool isValidExtended() const {return ix>=-1;} \
447 void invalidate(){ix=SimTK::InvalidIndex;} \
449 bool operator==(int i) const {assert(isValidExtended() && isValidExtended(i)); return ix==i;} \
450 bool operator==(short s) const{assert(isValidExtended() && isValidExtended(s)); return ix==(int)s;} \
451 bool operator==(long l) const {assert(isValidExtended() && isValidExtended(l)); return ix==(int)l;} \
452 bool operator==(unsigned int u) const {assert(isValidExtended() && isValid(u)); return ix==(int)u;} \
453 bool operator==(unsigned short us)const {assert(isValidExtended() && isValid(us)); return ix==(int)us;} \
454 bool operator==(unsigned long ul) const {assert(isValidExtended() && isValid(ul)); return ix==(int)ul;} \
455 bool operator!=(int i) const {return !operator==(i);} \
456 bool operator!=(short s) const {return !operator==(s);} \
457 bool operator!=(long l) const {return !operator==(l);} \
458 bool operator!=(unsigned int u) const {return !operator==(u);} \
459 bool operator!=(unsigned long ul) const {return !operator==(ul);} \
461 bool operator< (int i) const {assert(isValidExtended() && isValidExtended(i)); return ix<i;} \
462 bool operator< (short s) const{assert(isValidExtended() && isValidExtended(s)); return ix<(int)s;} \
463 bool operator< (long l) const {assert(isValidExtended() && isValidExtended(l)); return ix<(int)l;} \
464 bool operator< (unsigned int u) const {assert(isValidExtended() && isValid(u)); return ix<(int)u;} \
465 bool operator< (unsigned short us)const {assert(isValidExtended() && isValid(us)); return ix<(int)us;} \
466 bool operator< (unsigned long ul) const {assert(isValidExtended() && isValid(ul)); return ix<(int)ul;} \
467 bool operator>=(int i) const {return !operator<(i);} \
468 bool operator>=(short s) const {return !operator<(s);} \
469 bool operator>=(long l) const {return !operator<(l);} \
470 bool operator>=(unsigned int u) const {return !operator<(u);} \
471 bool operator>=(unsigned short us)const {return !operator<(us);} \
472 bool operator>=(unsigned long ul) const {return !operator<(ul);} \
474 bool operator> (int i) const {assert(isValidExtended() && isValidExtended(i)); return ix>i;} \
475 bool operator> (short s) const{assert(isValidExtended() && isValidExtended(s)); return ix>(int)s;} \
476 bool operator> (long l) const {assert(isValidExtended() && isValidExtended(l)); return ix>(int)l;} \
477 bool operator> (unsigned int u) const {assert(isValidExtended() && isValid(u)); return ix>(int)u;} \
478 bool operator> (unsigned short us)const {assert(isValidExtended() && isValid(us)); return ix>(int)us;} \
479 bool operator> (unsigned long ul) const {assert(isValidExtended() && isValid(ul)); return ix>(int)ul;} \
480 bool operator<=(int i) const {return !operator>(i);} \
481 bool operator<=(short s) const {return !operator>(s);} \
482 bool operator<=(long l) const {return !operator>(l);} \
483 bool operator<=(unsigned int u) const {return !operator>(u);} \
484 bool operator<=(unsigned short us)const {return !operator>(us);} \
485 bool operator<=(unsigned long ul) const {return !operator>(ul);} \
487 const NAME& operator++() {assert(isValid()); ++ix; return *this;} \
488 NAME operator++(int) {assert(isValid()); ++ix; return NAME(ix-1);} \
489 const NAME& operator--() {assert(isValid()); --ix; return *this;} \
490 NAME operator--(int) {assert(isValid()); --ix; return NAME(ix+1);} \
491 NAME next() const {assert(isValid()); return NAME(ix+1);} \
492 NAME prev() const {assert(isValid()); return NAME(ix-1);} \
494 NAME& operator+=(int i) {assert(isValid() && isValidExtended(ix+i)); ix+=i; return *this;} \
495 NAME& operator-=(int i) {assert(isValid() && isValidExtended(ix-i)); ix-=i; return *this;} \
496 NAME& operator+=(short s){assert(isValid() && SimTK::canStoreInInt(s) && isValidExtended(ix+(int)s)); ix+=(int)s; return *this;} \
497 NAME& operator-=(short s){assert(isValid() && SimTK::canStoreInInt(s) && isValidExtended(ix-(int)s)); ix-=(int)s; return *this;} \
498 NAME& operator+=(long l) {assert(isValid() && SimTK::canStoreInInt(l) && isValidExtended(ix+(int)l)); ix+=(int)l; return *this;} \
499 NAME& operator-=(long l) {assert(isValid() && SimTK::canStoreInInt(l) && isValidExtended(ix-(int)l)); ix-=(int)l; return *this;} \
500 NAME& operator+=(unsigned int u) {assert(isValid()&& SimTK::canStoreInInt(u) && isValid(ix+(int)u)); ix+=(int)u; return *this;} \
501 NAME& operator-=(unsigned int u) {assert(isValid()&& SimTK::canStoreInInt(u) && isValidExtended(ix-(int)u)); ix-=(int)u; return *this;} \
502 NAME& operator+=(unsigned short us){assert(isValid()&& SimTK::canStoreInInt(us) && isValid(ix+(int)us)); ix+=(int)us; return *this;} \
503 NAME& operator-=(unsigned short us){assert(isValid()&& SimTK::canStoreInInt(us) && isValidExtended(ix-(int)us)); ix-=(int)us; return *this;} \
504 NAME& operator+=(unsigned long ul) {assert(isValid()&& SimTK::canStoreInInt(ul) && isValid(ix+(int)ul)); ix+=(int)ul; return *this;} \
505 NAME& operator-=(unsigned long ul) {assert(isValid()&& SimTK::canStoreInInt(ul) && isValidExtended(ix-(int)ul)); ix-=(int)ul; return *this;} \
507 static const NAME& Invalid() {static const NAME invalid; return invalid;} \
508 static bool isValid(int i) {return i>=0;} \
509 static bool isValid(short s){return s>=0;} \
510 static bool isValid(long l) {return SimTK::canStoreInNonnegativeInt(l);} \
511 static bool isValid(unsigned int u) {return SimTK::canStoreInInt(u);} \
512 static bool isValid(unsigned short) {return true;} \
513 static bool isValid(unsigned long ul) {return SimTK::canStoreInInt(ul);} \
514 static bool isValidExtended(int i) {return i>=-1;} \
515 static bool isValidExtended(short s){return s>=-1;} \
516 static bool isValidExtended(long l) {return SimTK::canStoreInInt(l) && l>=-1;} \
518 typedef int size_type; \
519 typedef int difference_type; \
520 static size_type max_size() {return std::numeric_limits<int>::max();} \
530 #define SimTK_DYNAMIC_CAST_DEBUG dynamic_cast // safe but slow
532 #define SimTK_DYNAMIC_CAST_DEBUG static_cast // unsafe but fast
538 #define SimTK_DOWNCAST(Derived,Parent) \
539 static bool isA(const Parent& p) \
540 { return dynamic_cast<const Derived*>(&p) != 0; } \
541 static const Derived& downcast(const Parent& p) \
542 { return SimTK_DYNAMIC_CAST_DEBUG<const Derived&>(p); } \
543 static Derived& updDowncast(Parent& p) \
544 { return SimTK_DYNAMIC_CAST_DEBUG<Derived&>(p); } \
545 static Derived& downcast(Parent& p) \
546 { return SimTK_DYNAMIC_CAST_DEBUG<Derived&>(p); }
550 #define SimTK_DOWNCAST2(Derived,Helper,Parent) \
551 static bool isA(const Parent& p) \
552 { return Helper::isA(p); } \
553 static const Derived& downcast(const Parent& p) \
554 { return static_cast<const Derived&>(Helper::downcast(p)); } \
555 static Derived& updDowncast(Parent& p) \
556 { return static_cast<Derived&>(Helper::downcast(p)); } \
557 static Derived& downcast(Parent& p) \
558 { return static_cast<Derived&>(Helper::downcast(p)); }
564 #define SimTK_PIMPL_DOWNCAST(Derived, Parent) \
565 static bool isInstanceOf(const Parent&); \
566 static const Derived& downcast(const Parent&); \
567 static Derived& updDowncast(Parent&)
573 namespace Exception { }
589 template <
int M,
class ELT=Real,
int STRIDE=1>
class Vec;
590 template <
int N,
class ELT=Real,
int STRIDE=1>
class Row;
591 template <
int M,
int N,
class ELT=Real,
int CS=M,
int RS=1>
class Mat;
592 template <
int M,
class ELT=Real,
int RS=1>
class SymMat;
599 assert(l>=0 && ofs>=0);
657 #define SimTK_SPECIALIZE_INTEGRAL_TYPE(T) \
658 template<> struct IsIntegralType<T> \
659 {typedef TrueType Result; static const bool result = true;}
688 #define SimTK_SPECIALIZE_FLOATING_TYPE(T) \
689 template<> struct IsFloatingType<T> \
690 {typedef TrueType Result; static const bool result = true;}
749 static const char*
name() {
return typeid(T).
name();}
764 #define SimTK_NICETYPENAME_LITERAL(T) \
766 template <> struct NiceTypeName< T > { \
767 static std::string namestr() { return #T; } \
768 static const char* name() { return #T; } \
This is an operator for exclusive or-ing compile-time truth types.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:640
#define SimTK_SimTKCOMMON_EXPORT
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:202
OrOpType< typename IsIntegralType< T >::Result, typename IsFloatingType< T >::Result > Result
This typedef is TrueType if the template type T is one of the integral; or floating point types...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:714
TrueType Result
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:630
This is a special type used for causing invocation of a particular constructor or method overload tha...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:612
bool canStoreInNonnegativeInt(bool)
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:313
This is the top-level SimTK namespace into which all SimTK names are placed to avoid collision with o...
Definition: Assembler.h:37
bool canStoreInInt(bool)
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:298
std::complex< Real > Complex
This is the default complex type for SimTK, with precision for the real and imaginary parts set to th...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:580
Segment()
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:597
static std::string namestr()
The default implementation of namestr() attempts to return a nicely demangled type name on all platfo...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:753
static const int InvalidIndex
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:383
double SimTK_Real
This type is for use in C; in C++ use SimTK::Real instead.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:113
This is a small, fixed-size symmetric or Hermitian matrix designed for no-overhead inline computation...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:592
SimTK_Real Real
This is the default compiled-in floating point type for SimTK, either float or double.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:577
FalseType Result
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:627
TrueType Result
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:706
Compile-time type test: is this the void type?.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:697
TrueType Result
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:636
This is a compile-time equivalent of "false", used in compile-time condition checking in templatized ...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:620
Is64BitHelper< Is64BitPlatform >::Result Is64BitPlatformType
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:734
FalseType Result
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:634
bool isIndexInRange(char ix, char sz)
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:350
Segment(int l, int ofs=0)
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:598
static const char * name()
The default implementation of name() here returns the raw result from typeid(T).name() which will be ...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:749
FalseType Result
This typedef is TrueType if the template type T is "void"; otherwise it is FalseType.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:700
TrueType Result
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:637
This is an operator for or-ing compile-time truth types.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:633
std::string demangle(const char *name)
Attempt to demangle a type name as returned by typeid.name(), with the result hopefully suitable for ...
static const bool result
This compile-time constant bool is true if the template type T is "void" otherwise it is false...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:703
FalseType Result
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:644
TrueType Result
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:642
Compile-time test: is this one of the built-in "arithmetic" types, meaning an integral or floating ty...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:710
static const bool result
This compile-time constant bool is true if the template type T is a floating point type otherwise it ...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:684
void SimTK_about_SimTKcommon(const char *key, int maxlen, char *value)
Obtain "about" information for the currently-loaded SimTKcommon library.
void SimTK_version_SimTKcommon(int *major, int *minor, int *build)
Obtain version information for the currently-loaded SimTKcommon library.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:723
This is a compile-time equivalent of "true", used in compile-time condition checking in templatized i...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:623
SimTK_SPECIALIZE_INTEGRAL_TYPE(bool)
This is a special type used for forcing invocation of a particularly dangerous constructor or method ...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:616
Compile-time type test: is this one of the built-in integral types?.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:647
std::complex< double > dComplex
An abbreviation for std::complex for consistency with others.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:584
FalseType Result
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:727
FalseType Result
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:641
This is a fixed-length row vector designed for no-overhead inline computation.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:590
Compile-time type test: is this one of the built-in floating point types?.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:678
FalseType Result
This typedef is TrueType if the template type T is an integral type; otherwise it is FalseType...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:650
FalseType Result
This typedef is TrueType if the template type T is a floating point type; otherwise it is FalseType...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:681
RowVectorBase< typename CNT< ELEM >::TAbs > abs(const RowVectorBase< ELEM > &v)
Definition: VectorMath.h:120
FalseType Result
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:628
static const bool result
This compile-time constant bool is true if the template type T is one of the integral or floating poi...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:717
This class represents a small matrix whose size is known at compile time, containing elements of any ...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:591
std::complex< float > fComplex
An abbreviation for std::complex for consistency with others.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:582
TrueType Result
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:643
In case you don't like the name you get from typeid(), you can specialize this class to provide a nic...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:745
This is a fixed-length column vector designed for no-overhead inline computation. ...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:589
A convenient struct for anything requiring an offset and length to specify a segment of some larger s...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:596
static const bool Is64BitPlatform
Compile-time test: this typedef will be TrueType if this is a 64-bit platform, meaning that the size ...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:733
int length
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:602
SimTK_SPECIALIZE_FLOATING_TYPE(float)
This is an operator for and-ing compile-time truth types.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:626
int offset
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:603
#define SimTK_NICETYPENAME_LITERAL(T)
This specializes the name of a type to be exactly the text you use to specify it, rather than whateve...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:764
TrueType Result
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:725
bool isSizeInRange(char sz, char mx)
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:331
static const bool result
This compile-time constant bool is true if the template type T is an integral type otherwise it is fa...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:653
bool isNonnegative(bool)
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:366
TrueType Result
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:635
FalseType Result
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:629