|
| PDG_Graph (PDG_GraphContext *context) |
|
| ~PDG_Graph () override |
|
int64 | getMemoryUsage (bool inclusive) const |
|
void | memoryInfo (PDG_MemoryInfo &memory_info, bool inclusive) const |
|
UT_StringHolder | attribOwnerName () const override |
| Returns a descriptive name of the attribute owner. More...
|
|
bool | isAttribFlagValid (PDG_AttributeFlag flag) const override |
| Checks if the specified flag is valid for this owner. More...
|
|
bool | areAttribFlagsValid (uint16 flags) const override |
| Checks if the specified bit vector flags is valid for this owner. More...
|
|
void | description (UT_WorkBuffer &buffer) const |
| Returns a human-readable description of the nodes in the graph. More...
|
|
void | serialize (UT_WorkBuffer &buffer) const |
|
PDG_Node * | createNode (PDG_NodeCallbackType *type_object, const UT_StringHolder &node_name, const PDGT_ValueArgs &args, UT_WorkBuffer &errors, int id=-1) |
|
void | insertNode (PDG_NodePtr &node) |
| Adds an existing node to the graph. More...
|
|
bool | renameNode (const UT_StringHolder &old_name, const UT_StringHolder &new_name) |
|
bool | renameNodeById (int node_id, const UT_StringHolder &new_name) |
|
PDG_NodePtr | removeNode (const UT_StringHolder &node_name) |
| Remove node/nodes from the graph. More...
|
|
PDG_NodePtr | removeNodeById (int node_id) |
|
void | removeAllNodes () |
|
PDG_Node * | node (const UT_StringHolder &name) const |
| Accessors for nodes in the graph. More...
|
|
PDG_Node * | nodeById (int id) const |
|
int | nodeCount () const |
|
const PDG_NodePtrMap & | nodes () const |
|
UT_StringHolder | uniqueNodeName (const UT_StringHolder &name) |
|
PDG_Port * | nodePort (const UT_StringHolder &node_name, const UT_StringHolder &port_name) const |
| Looks up a port using the node.port_name syntax. More...
|
|
PDG_Port * | nodePort (const UT_StringHolder &full_name) const |
|
PDG_DependencyPtr | dependencyForKey (const UT_StringHolder &key) const |
| Adds/ removes or queries external dependencies. More...
|
|
PDG_DependencyPtr | addDependency (const UT_StringHolder &type, const UT_StringHolder &key, const PDGT_ValueArgs &args, UT_WorkBuffer &errors) |
|
void | addDependency (PDG_DependencyPtr dependency) |
|
void | removeDependency (PDG_DependencyPtr dependency) |
|
PDG_GraphContext * | context () const |
| Returns the graph contex that owns this graph. More...
|
|
void | addWorkItem (PDG_WorkItem *work_item) |
| Adds a work item to the work item id -> pointer map. More...
|
|
void | removeWorkItem (PDG_WorkItem *work_item) |
| Removes a work item from the graph. More...
|
|
PDG_WorkItem * | workItemById (PDG_WorkItemID id) const |
| Returns a work item for a given id. More...
|
|
void | workItemsById (PDG_WorkItemArray &work_items, const UT_ValArray< PDG_WorkItemID > &ids, bool allow_null) const |
| Returns a list of work items for a given list of ids. More...
|
|
PDG_WorkItem * | workItemByName (const UT_StringHolder &name) const |
| Returns a work item for a given name. More...
|
|
PDG_WorkItemID | workItemIdFromName (const UT_StringHolder &name) const |
|
IdMap | workItemIdMap () const |
| Returns the map of work item ids -> work item. More...
|
|
void | dependencyGraph (PDG_WorkItemMap &dependencies, PDG_WorkItemMap &dependents, PDG_WorkItemArray &ready, bool expand, PDG_Scheduler *filter) const |
| Returns a map of item->dependencies, item->dependents and ready items. More...
|
|
void | dependencyGraph (PDG_WorkItemMap &graph, bool inverse, bool expand, PDG_Scheduler *filter) const |
|
PDG_WorkItemDirty | dirtyAll (bool remove_outputs, bool apply_dirty) |
|
PDG_WorkItemDirty | dirtyWorkItem (PDG_WorkItemID id, bool should_delete, bool remove_outputs, bool apply_dirty) |
|
PDG_WorkItemDirty | dirtyWorkItem (PDG_WorkItem *work_item, bool should_delete, bool remove_outputs, bool apply_dirty) |
|
PDG_WorkItemDirty | dirtyWorkItems (const PDG_WorkItemArray &work_items, PDG_Node *source_node, bool should_delete, bool remove_outputs, bool apply_dirty, bool emit_events) |
|
PDG_AttributeCast | numericData (fpreal ¶m, const PDG_AttributeEvaluator &evaluator) const |
| Does a numeric data lookup, for use with the @ operator. More...
|
|
PDG_AttributeCast | stringData (UT_WorkBuffer &buffer, const PDG_AttributeEvaluator &evaluator, const PDG_EvaluationContext *local_context) const |
| Does a string data lookup, for use with the @ operator. More...
|
|
void | bindGlobalAttribute (const UT_StringHolder &attrib_name, PDG_WorkItem *work_item) |
| Binds a global attribute to a specific work item. More...
|
|
PDG_WorkItem * | boundAttributeWorkItem (const UT_StringHolder &attrib_name) const |
| Returns the work iterm that an attribute is bound to. More...
|
|
int | uniqueCacheId () |
| Returns a new unique cache id. More...
|
|
int | uniqueNodeId () |
| Returns a new unique node id. More...
|
|
void | bumpCacheId () |
| Increments the graph's cache id. More...
|
|
UT_RWLock & | serialCookLock () |
|
template<typename Func > |
void | safeNodeAccess (int id, const Func &f) const |
| Runs a functor on the specified node with the node lock held. More...
|
|
template<typename Func > |
void | safeNodeMapAccess (const Func &f) const |
| Runs a functor on the node map with the node lock held. More...
|
|
template<typename Func > |
void | safeWorkItemAccess (PDG_WorkItemID id, const Func &f) const |
|
| PDG_AttributeOwner (bool has_runtime) |
|
virtual | ~PDG_AttributeOwner () |
|
PDG_AttributeMap & | attributes () |
|
const PDG_AttributeMap & | attributes () const |
|
bool | attribSaveJSON (std::ostream &os, bool binary) const |
|
bool | attribSaveJSON (const UT_StringHolder &file_path) const |
|
bool | attribLoadJSON (UT_IStream &istream, PDG_AttributeCollision strategy) |
|
bool | attribLoadJSON (const UT_StringHolder &file_path, PDG_AttributeCollision strategy) |
|
bool | hasAttributes () const |
|
virtual UT_RWLock * | attribGlobalLock () const |
|
virtual bool | attribCanWrite (const PDG_EvaluationContext *context) const |
|
virtual void | attribUnlock () const |
|
virtual void | attribModify (PDG_AttributeType attrib_type, const UT_StringHolder &attrib_name) const |
|
virtual void | attribWarn (const UT_StringHolder &msg) const |
|
Definition at line 35 of file PDG_Graph.h.