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

Go to the source code of this file.

Classes

class  UNI_ID
 
struct  UT::DefaultClearer< T >
 
struct  UT::DefaultClearer< UNI_ID >
 

Namespaces

 UT
 

Macros

#define UNI_ID_SUBCLASS(SubClass)
 An ID for referencing the specific UNI graph elements. More...
 
#define UNI_ID_FORMATTER(UniID)
 String formatting ID for debug printouts, etc: More...
 
#define UNI_ID_CLEARER(ID)   template <> struct DefaultClearer<ID> : public DefaultClearer<UNI_ID> {}; \
 

Macro Definition Documentation

#define UNI_ID_CLEARER (   ID)    template <> struct DefaultClearer<ID> : public DefaultClearer<UNI_ID> {}; \

Definition at line 179 of file UNI_ID.h.

#define UNI_ID_FORMATTER (   UniID)
Value:
inline size_t \
UTformatBuffer(char *buffer, size_t buffer_size, const UniID &v) \
{ \
UT::Format::Writer w(buffer, buffer_size); \
UT::Format::Formatter f; \
return f.format(w, #UniID "({})", {v.exintValue()}); \
} \
inline size_t \
UTformatBuffer(char *buffer, size_t buffer_size, const UT_Array<UniID> &v) \
{ \
UT::Format::Writer w(buffer, buffer_size); \
UT::Format::Formatter f; \
size_t bytesWritten = w( \
"UT_Array<" #UniID ">([", \
sizeof("UT_Array<" #UniID ">([") - 1); \
bool first = true; \
for (auto &&item : v) \
{ \
bytesWritten += f.format( \
w, first ? "{}" : ", {}", {item.exintValue()}); \
first = false; \
} \
bytesWritten += w("])", 2); \
return bytesWritten; \
}
GLint first
Definition: glcorearb.h:405
const GLdouble * v
Definition: glcorearb.h:837
size_t UTformatBuffer(char *buffer, size_t bufsize, const ApexArray< T > &v)
Definition: APEX_COW.h:138
GLuint buffer
Definition: glcorearb.h:660
OutGridT const XformOp bool bool
GLfloat f
Definition: glcorearb.h:1926
GLubyte GLubyte GLubyte GLubyte w
Definition: glcorearb.h:857
* for(int i=0;i< n_subtasks;++i)*tasks.push(pool-> push(myfunc))
Definition: UT_RTreeImpl.h:685

String formatting ID for debug printouts, etc:

Definition at line 126 of file UNI_ID.h.

#define UNI_ID_SUBCLASS (   SubClass)
Value:
class SubClass : public UNI_ID \
{ \
public: \
constexpr explicit SubClass( NumericType id = INVALID_ID ) \
: UNI_ID( id ) {} \
constexpr explicit SubClass( const UNI_ID &id ) \
: UNI_ID( id ) {} \
}; \
\
using SubClass##List = UT_Array< SubClass >; \
\
constexpr UNI_ID(NumericType id_number=INVALID_ID)
Explicit constructor.
Definition: UNI_ID.h:33
Definition: UNI_ID.h:25

An ID for referencing the specific UNI graph elements.

Definition at line 98 of file UNI_ID.h.