| HDK
    | 
Manager to keep track of global handle to name mappings. More...
#include <GA_IntrinsicManager.h>
| Classes | |
| class | iterator | 
| class | Registrar | 
| Public Types | |
| enum | CollapseSingletons : bool { CollapseSingletons::NO =0, CollapseSingletons::YES =1 } | 
| Static Public Member Functions | |
| static GA_GlobalIntrinsic | getGlobalHandle (const UT_StringRef &token) | 
| Get the global id associated with a given token.  More... | |
| static GA_GlobalIntrinsic | registerGlobalHandle (const UT_StringHolder &token) | 
| Register a global token (returns the existing handle if it's found)  More... | |
| static const UT_StringHolder & | getGlobalName (GA_GlobalIntrinsic handle) | 
| Find the token associated with the given global handle.  More... | |
| Friends | |
| class | GA_PrimitiveFactory | 
| class | GA_PrimitiveDefinition | 
| class | Registrar | 
Manager to keep track of global handle to name mappings.
Each GA_PrimitiveFactory maintains a list of intrinsic attributes. These attribute provide a mechanism to query information about primitives without having knowledge of the actual structure of the primitive.
There is a unique handle (or id) for each attribute name. This class maintains the mapping between name and handle.
Definition at line 39 of file GA_IntrinsicManager.h.
| 
 | strong | 
This enum is used to pass a boolean flag indicating whether tuples of 1 element (singletons) can be collapsed to scalar values in a type safe manner that avoids implicit conversions from other args in existing calls to Registrar::addAttribute().
| Enumerator | |
|---|---|
| NO | |
| YES | |
Definition at line 141 of file GA_IntrinsicManager.h.
Start traversal of intrinsic attributes names.
Definition at line 306 of file GA_IntrinsicManager.h.
| void GA_IntrinsicManager::extractNames | ( | UT_StringArray & | names | ) | const | 
Extract all attribute names.
| 
 | inline | 
Get the collapse singletons flag (passed in during registration)
Definition at line 103 of file GA_IntrinsicManager.h.
| 
 | inline | 
Get the read-only flag (passed in during registration)
Definition at line 105 of file GA_IntrinsicManager.h.
| 
 | static | 
Get the global id associated with a given token.
| 
 | inline | 
Mapping between global and local attributes
Definition at line 62 of file GA_IntrinsicManager.h.
| 
 | static | 
Find the token associated with the given global handle.
| 
 | inline | 
Return the number of local handles defined in the manager.
Definition at line 52 of file GA_IntrinsicManager.h.
| GA_LocalIntrinsic GA_IntrinsicManager::getLocalHandle | ( | const UT_StringRef & | token | ) | const | 
Mapping between global and local attributes
| GA_LocalIntrinsic GA_IntrinsicManager::getLocalHandle | ( | GA_GlobalIntrinsic | ghandle | ) | const | 
Mapping between global and local attributes
| 
 | inline | 
Look up an attribute name from the given handle.
Definition at line 71 of file GA_IntrinsicManager.h.
| 
 | inline | 
Get the attribute options (passed in during registration)
Definition at line 127 of file GA_IntrinsicManager.h.
| 
 | inline | 
Get the attribute options (passed in during registration)
Definition at line 129 of file GA_IntrinsicManager.h.
| 
 | inline | 
Get the read-only flag (passed in during registration)
Definition at line 92 of file GA_IntrinsicManager.h.
| 
 | inline | 
Get the read-only flag (passed in during registration)
Definition at line 94 of file GA_IntrinsicManager.h.
| 
 | inline | 
Get the attribute storage (passed in during registration)
Definition at line 80 of file GA_IntrinsicManager.h.
| 
 | inline | 
Get the attribute storage (passed in during registration)
Definition at line 82 of file GA_IntrinsicManager.h.
| 
 | inline | 
Get the attribute's user id (passed in during registration)
Definition at line 115 of file GA_IntrinsicManager.h.
| 
 | inline | 
Get the attribute's user id (passed in during registration)
Definition at line 117 of file GA_IntrinsicManager.h.
| 
 | static | 
Register a global token (returns the existing handle if it's found)
| 
 | friend | 
Definition at line 395 of file GA_IntrinsicManager.h.
| 
 | friend | 
Definition at line 394 of file GA_IntrinsicManager.h.
Definition at line 396 of file GA_IntrinsicManager.h.