|
| | UN_NodeData (UN_CustomNodeDataPtr custom_data=UN_CustomNodeDataPtr()) |
| | Constructors and destructors. More...
|
| |
| | ~UN_NodeData ()=default |
| |
| | UN_NodeData (UN_NodeData &&) |
| |
| UN_NodeData & | operator= (UN_NodeData &&) |
| |
| void | setCapacityIfNeeded (UN_DataSize min_capacity) |
| |
| UN_NodeIDRemap | merge (const UN_NodeData &src_node_data) |
| |
| void | merge (UN_NodeID node_id, const UN_Options &node_opts) |
| |
| UN_OptionsPtr | asOptions (UN_NodeID node_id) const |
| |
| UN_NodeID | addNode () |
| |
| UN_NodeID | findOrAddRootNode () |
| | Adds a root node to the container, or returns one if it already exists. More...
|
| |
| bool | isValid (UN_NodeID node_id) const |
| |
| IDRange | idRange () const |
| |
| OrderedIDRange | orderedIDRange () const |
| |
| UN_NodeIDList | nodeIDs () const |
| |
| UN_NodeIDList | sortedNodeIDs () const |
| |
| const UT_StringHolder & | name (UN_NodeID node_id) const |
| | Returns the name that identifies the node among its siblings. More...
|
| |
| void | setTypeName (UN_NodeID node_id, const UT_StringRef &type_name) |
| | Sets the node's type that determines its functional behavour. More...
|
| |
| const UT_StringHolder & | typeName (UN_NodeID node_id) const |
| | Returns the name of node's type that determines its functional behavour. More...
|
| |
| const UT_StringHolder & | categoryName (UN_NodeID node_id) const |
| |
| const UT_StringHolder & | signatureName (UN_NodeID node_id) const |
| | Returns the node's signature. More...
|
| |
| void | setComment (UN_NodeID node_id, const UT_StringRef &comment) |
| | Sets the node's comment. More...
|
| |
| const UT_StringHolder & | comment (UN_NodeID node_id) const |
| | Returns the node's comment. More...
|
| |
| void | setPosition (UN_NodeID node_id, const UT_Vector2D &position) |
| | Sets the node's location in the graph editor. More...
|
| |
| const UT_Vector2D & | position (UN_NodeID node_id) const |
| | Returns the node's location in the graph editor. More...
|
| |
| void | setColor (UN_NodeID node_id, const UT_Color &color) |
| | Sets the node's color in the graph editor. More...
|
| |
| const UT_Color & | color (UN_NodeID node_id) const |
| | Returns the node's color in the graph editor. More...
|
| |
| template<typename OP > |
| void | updateTags (UN_NodeID node_id, const OP &op) |
| |
| void | setTags (UN_NodeID node_id, const UT_StringArray &tags) |
| | Sets new tags on a node via copy-assignment. More...
|
| |
| void | setTags (UN_NodeID node_id, UT_StringArray &&tags) |
| | Sets new tags on a node via move-assignment. More...
|
| |
| const UT_StringArray & | tags (UN_NodeID node_id) const |
| | Returns node tags. More...
|
| |
| UT_StringArray | stealTags (UN_NodeID node_id) |
| | Returns node tags moved from the data buffer entry. More...
|
| |
| template<typename OP > |
| void | updateMetadata (UN_NodeID node_id, const OP &op) |
| |
| void | updateMetadata (UN_NodeID node_id, const UT_StringHolder &key, UT_OptionEntryPtr &&value) |
| | Simpler method to update a single metadata value in-place. More...
|
| |
| void | setMetadata (UN_NodeID node_id, const UN_MetadataHolder &metadata) |
| | Sets node's new metadata via copy-assignment. More...
|
| |
| void | setMetadata (UN_NodeID node_id, UN_MetadataHolder &&metadata) |
| | Sets node's new metadata via move-assignment. More...
|
| |
| const UN_MetadataHolder & | metadata (UN_NodeID node_id) const |
| | Returns nodes's metadata. More...
|
| |
| UN_MetadataHolder | stealMetadata (UN_NodeID node_id) |
| | Returns node's metadata moved from the data buffer entry. More...
|
| |
| template<typename D > |
| UN_GenericNodeDataBufferRef | addGenericNodeDataBuffer (const UT_StringRef &name, UN_GenericBufferType type, const D &default_value) |
| |
| template<typename T > |
| void | setGenericData (UN_GenericBufferID buf_id, UN_NodeID node_id, const T &value) |
| | Sets the data value in a generic buffer for a given node. More...
|
| |
| template<typename T > |
| void | setGenericData (UN_GenericBufferID buf_id, UN_NodeID node_id, T &&value) |
| | Sets the data value in a generic buffer via move. More...
|
| |
| template<typename T > |
| const T & | genericDataRef (UN_GenericBufferID buf_id, UN_NodeID node_id) const |
| | Returns a const ref to the data value in a generic buffer. More...
|
| |
| template<typename T > |
| T | genericDataVal (UN_GenericBufferID buf_id, UN_NodeID node_id) const |
| | Returns a copy of a data value from a generic buffer. More...
|
| |
| template<typename T > |
| T | stealGenericData (UN_GenericBufferID buf_id, UN_NodeID node_id) |
| | Moves the data value out of a generic buffer. More...
|
| |
| template<typename T , typename OP > |
| void | updateGenericData (UN_GenericBufferID buf_id, UN_NodeID node_id, const OP &op) |
| | Updates the data value in a generic buffer in-place via a callable. More...
|
| |
| void | setCheckValidNodeNames (bool flag) |
| | Asserts that the node names are alphanumeric. More...
|
| |
| void | setNodeNameSafeChars (const UT_StringRef &safe_chars) |
| | A set of additional characters that are legal in node names. More...
|
| |
|
| UN_CustomNodeData * | customNodeData () |
| | Returns node's custom data container, if one was provided. More...
|
| |
| const UN_CustomNodeData * | customNodeData () const |
| | Returns node's custom data container, if one was provided. More...
|
| |
| | UN_Data (UN_CustomDataPtr custom_data=UN_CustomDataPtr()) |
| | Constructors and destructors. More...
|
| |
| | ~UN_Data ()=default |
| |
| | UN_Data (UN_Data &&) |
| | Move operators. More...
|
| |
| UN_Data & | operator= (UN_Data &&) |
| |
| IDRange | idRange () const |
| |
| OrderedIDRange | orderedIDRange () const |
| |
| UN_DataIDList | dataIDs () const |
| | Returns a list of all the valid IDs in this container. More...
|
| |
| UN_DataIDList | sortedDataIDs () const |
| | Returns a sorted list of all the valid IDs in this container. More...
|
| |
| UN_DataSize | size () const |
| | Returns the number of valid data items in the buffer. More...
|
| |
| UN_DataSize | indexSize () const |
| |
| UN_DataSize | idSize () const |
| |
| template<typename D > |
| UN_GenericBufferID | addGenericBuffer (const UT_StringRef &name, UN_GenericBufferType type, const D &default_value) |
| |
| UN_GenericBufferType | genericBufferType (UN_GenericBufferID id) const |
| | Returns the type of the generic buffer identified by the given ID. More...
|
| |
| UN_GenericBufferID | findGenericBuffer (const UT_StringRef &name) const |
| |
| const UT_StringHolder & | genericBufferName (UN_GenericBufferID id) const |
| | Returns the name of the generic buffer identified by the given ID. More...
|
| |
| UN_CustomData * | customData () |
| | Returns the custom data container, if one was provided. More...
|
| |
| const UN_CustomData * | customData () const |
| | Returns the custom data container, if one was provided. More...
|
| |
|
| | UN_NodeData (const UN_NodeData &)=default |
| |
| UN_NodeData & | operator= (const UN_NodeData &)=default |
| |
| void | clearNode (UN_NodeID node_id) |
| | Clears the data for the given node to the default state. More...
|
| |
| bool | removeNode (UN_NodeID node_id) |
| |
| void | removeAllNodes (bool reset_next_id) |
| |
| void | setName (UN_NodeID node_id, const UT_StringRef &name) |
| |
| void | setCategoryName (UN_NodeID node_id, const UT_StringRef &category_name) |
| |
| void | setSignatureName (UN_NodeID node_id, const UT_StringRef &signature_name) |
| |
| UN_NodeIndex | nodeIndex (UN_NodeID id) const |
| | Returns the node's data index into the data buffer arrays. More...
|
| |
| | UN_Data (const UN_Data &) |
| |
| UN_Data & | operator= (const UN_Data &) |
| |
| UN_DataMergeInfo | mergeData (const UN_Data &src_data, bool combine_id_zero=false) |
| |
std::pair< UN_DataID,
UN_DataIndex > | addData () |
| |
std::pair< UN_DataID,
UN_DataIndex > | findOrAddData (UN_DataID data_id) |
| |
| bool | removeData (UN_DataID data_id) |
| |
| void | removeAllData (bool reset_next_id) |
| |
| bool | isValid (UN_DataID data_id) const |
| |
| UN_DataIndex | dataIndex (UN_DataID id) const |
| |
| UN_DataSize | dataBufferSize () const |
| |
| UN_DataSize | freeDataBufferSize () const |
| |
| UN_DataSize | usedDataBufferSize () const |
| |
| template<typename V , typename B > |
| void | setData (B &buffer, UN_DataID id, const V &value) |
| | Helper method to copy-assign the value to an entry in the data buffer. More...
|
| |
| template<typename V , typename B > |
| void | setData (B &buffer, UN_DataID id, V &&value) |
| | Helper method to move-assign the value to an entry in the data buffer. More...
|
| |
| template<typename V , typename B > |
| const V & | getDataRef (const B &buffer, UN_DataID id, const V &default_value) const |
| | Helper method to return a const ref to an entry in the data buffer. More...
|
| |
| template<typename V , typename B > |
| V | getDataVal (const B &buffer, UN_DataID id, const V &default_value) const |
| |
| template<typename V , typename B > |
| V | stealData (B &buffer, UN_DataID id, const V &default_value) |
| | Helper method to return a value moved from an entry in the data buffer. More...
|
| |
| template<typename OP , typename B > |
| void | updateData (B &buffer, UN_DataID id, const OP &op) |
| |
| template<typename T > |
| void | setGenericData (UN_GenericBufferID buf_id, UN_DataID id, const T &value) |
| | Sets the data value in a generic buffer for a given data ID. More...
|
| |
| template<typename T > |
| void | setGenericData (UN_GenericBufferID buf_id, UN_DataID id, T &&value) |
| | Sets the data value in a generic buffer via move. More...
|
| |
| template<typename T > |
| const T & | genericDataRef (UN_GenericBufferID buf_id, UN_DataID id) const |
| | Returns a const ref to the data value in a generic buffer. More...
|
| |
| template<typename T > |
| T | genericDataVal (UN_GenericBufferID buf_id, UN_DataID id) const |
| |
| template<typename T > |
| T | stealGenericData (UN_GenericBufferID buf_id, UN_DataID id) |
| | Moves the data value out of a generic buffer. More...
|
| |
| template<typename T , typename OP > |
| void | updateGenericData (UN_GenericBufferID buf_id, UN_DataID id, const OP &op) |
| | Updates the data value in a generic buffer in-place via a callable. More...
|
| |
| void | addGenericData (UN_DataIndex index) |
| | Adds a data slot at the given index to all generic buffers. More...
|
| |
| void | clearGenericData (UN_DataIndex index) |
| | Clears the generic data at the given index to defaults. More...
|
| |
| void | removeAllGenericData () |
| | Removes all data from all generic buffers. More...
|
| |
| void | setGenericDataCapacityIfNeeded (UN_DataSize min_capacity) |
| | Grows all generic buffers to the given minimum capacity. More...
|
| |
| void | mergeGenericData (const UN_Data &src, const UN_DataMergeInfo &merge_info) |
| | Merges generic data from another UN_Data container. More...
|
| |
| bool | isGenericDataSizeConsistent (UN_DataSize expected_size) const |
| | Returns true if all generic buffers have the expected size. More...
|
| |
Container of data for all the nodes in the graph.
NOTE: This class is generally not trivially relocatable, because its base class (UN_Data) is not trivially relocatable (see comment there).
Definition at line 36 of file UN_NodeData.h.