HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyStaticTokens.h File Reference
#include "pxr/pxr.h"
#include <locale>
#include "pxr/base/tf/staticTokens.h"
#include "pxr/base/tf/preprocessorUtilsLite.h"
#include "pxr/external/boost/python/class.hpp"
#include "pxr/external/boost/python/scope.hpp"
+ Include dependency graph for pyStaticTokens.h:

Go to the source code of this file.

Macros

#define TF_PY_WRAP_PUBLIC_TOKENS(name, key, seq)
 
#define TF_PY_WRAP_PUBLIC_TOKENS_IN_CURRENT_SCOPE(key, seq)
 
#define _TF_PY_TOKENS_WRAP_ATTR_MEMBER(r, key, name)
 
#define _TF_PY_TOKENS_WRAP_MEMBER(r, key, name)
 
#define _TF_PY_TOKENS_WRAP_ELEMENT(key, elem)   _TF_PY_TOKENS_WRAP_MEMBER(r, key, _TF_PY_TOKEN_GET_ELEM(elem))
 
#define _TF_PY_TOKENS_WRAP_ATTR_ELEMENT(key, elem)   _TF_PY_TOKENS_WRAP_ATTR_MEMBER(r, key, _TF_PY_TOKEN_GET_ELEM(elem))
 
#define _TF_PY_TOKEN_GET_ELEM(elem)
 
#define _TF_PY_TOKENS_WRAP_SEQ(key, seq)   TF_PP_SEQ_FOR_EACH(_TF_PY_TOKENS_WRAP_ELEMENT, key, seq)
 
#define _TF_PY_TOKENS_WRAP_ATTR_SEQ(key, seq)   TF_PP_SEQ_FOR_EACH(_TF_PY_TOKENS_WRAP_ATTR_ELEMENT, key, seq)
 

Macro Definition Documentation

#define _TF_PY_TOKEN_GET_ELEM (   elem)
Value:
TF_PP_TUPLE_ELEM(0, elem), elem)
#define _TF_PP_IFF(c, t, f)
#define TF_PP_IS_TUPLE(arg)
#define TF_PP_TUPLE_ELEM(index, tuple)
Expands to the 'index' element of a non-empty 'tuple'.

Definition at line 67 of file pyStaticTokens.h.

#define _TF_PY_TOKENS_WRAP_ATTR_ELEMENT (   key,
  elem 
)    _TF_PY_TOKENS_WRAP_ATTR_MEMBER(r, key, _TF_PY_TOKEN_GET_ELEM(elem))

Definition at line 64 of file pyStaticTokens.h.

#define _TF_PY_TOKENS_WRAP_ATTR_MEMBER (   r,
  key,
  name 
)
Value:
pxr_boost::python::scope().attr( \
TF_PP_STRINGIZE(name)) = key->name.GetString();
#define TF_PP_STRINGIZE(x)
Expand and convert the argument to a string, using a most minimal macro.
GLuint const GLchar * name
Definition: glcorearb.h:786

Definition at line 45 of file pyStaticTokens.h.

#define _TF_PY_TOKENS_WRAP_ATTR_SEQ (   key,
  seq 
)    TF_PP_SEQ_FOR_EACH(_TF_PY_TOKENS_WRAP_ATTR_ELEMENT, key, seq)

Definition at line 75 of file pyStaticTokens.h.

#define _TF_PY_TOKENS_WRAP_ELEMENT (   key,
  elem 
)    _TF_PY_TOKENS_WRAP_MEMBER(r, key, _TF_PY_TOKEN_GET_ELEM(elem))

Definition at line 61 of file pyStaticTokens.h.

#define _TF_PY_TOKENS_WRAP_MEMBER (   r,
  key,
  name 
)
Value:
.add_static_property(TF_PP_STRINGIZE(name), \
+[]() { return key->name.GetString(); }) \
#define TF_PP_STRINGIZE(x)
Expand and convert the argument to a string, using a most minimal macro.
GLuint const GLchar * name
Definition: glcorearb.h:786

Definition at line 56 of file pyStaticTokens.h.

#define _TF_PY_TOKENS_WRAP_SEQ (   key,
  seq 
)    TF_PP_SEQ_FOR_EACH(_TF_PY_TOKENS_WRAP_ELEMENT, key, seq)

Definition at line 72 of file pyStaticTokens.h.

#define TF_PY_WRAP_PUBLIC_TOKENS (   name,
  key,
  seq 
)

Macro to wrap static tokens defined with TF_DEFINE_PUBLIC_TOKENS to Python. It creates a class of name name in the current scope containing just the tokens in seq in the static tokens named by key.

Definition at line 30 of file pyStaticTokens.h.

#define TF_PY_WRAP_PUBLIC_TOKENS_IN_CURRENT_SCOPE (   key,
  seq 
)

Macro to wrap static tokens defined with TF_DEFINE_PUBLIC_TOKENS to Python. This wraps tokens in seq in the static tokens named by key as attributes on the current boost python scope.

Definition at line 41 of file pyStaticTokens.h.