HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FBX_SceneProxySupport.h File Reference
#include <SYS/SYS_Compiler.h>
#include <SYS/SYS_Hash.h>
#include <SYS/SYS_TypeDecorate.h>
+ Include dependency graph for FBX_SceneProxySupport.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FBX_SCENEPROXY_DECLARE_ID(TYPE)
 

Macro Definition Documentation

#define FBX_SCENEPROXY_DECLARE_ID (   TYPE)
Value:
class TYPE \
{ \
public: \
TYPE() : myPtr(nullptr) { } \
SYS_SAFE_BOOL operator bool() const { return myPtr!=nullptr; } \
bool operator==(const TYPE& x) const { return myPtr == x.myPtr; } \
bool operator!=(const TYPE& x) const { return !(*this == x); } \
size_t hash() const { return SYShash(myPtr); } \
protected: \
TYPE(void *p) : myPtr(p) { } \
private: \
void* myPtr; \
friend class FBX_SceneProxy; \
friend struct FBX_Detail; \
friend struct UT::DefaultClearer<TYPE>; \
}; \
inline size_t hash_value(TYPE id) { return id.hash(); } \
namespace UT { \
template <typename T> struct DefaultClearer; \
template <> \
struct DefaultClearer<TYPE> \
{ \
using VoidP = void*; \
static void clear(TYPE& v) { v.myPtr = VoidP(-1LL); } \
static bool isClear(const TYPE& v) { return v.myPtr==VoidP(-1LL); } \
static void clearConstruct(TYPE* p) { clear(*p); } \
static const bool clearNeedsDestruction = false; \
}; \
} \
void
Definition: png.h:1083
const GLdouble * v
Definition: glcorearb.h:837
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
#define SYS_SAFE_BOOL
Definition: SYS_Compiler.h:55
#define SYS_DECLARE_IS_POD(T)
Declare a type as POD.
GLint GLenum GLint x
Definition: glcorearb.h:409
bool operator!=(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:165
size_t hash_value(const CH_ChannelRef &ref)

Definition at line 19 of file FBX_SceneProxySupport.h.