|
| | PDG_AttributeArray () |
| |
| | PDG_AttributeArray (const ArrayType &data) |
| |
| | ~PDG_AttributeArray () override |
| |
| bool | hasData () const |
| |
| int | size () const |
| |
| bool | valid (int component) const |
| |
| bool | value (DataType &data, int component) const |
| |
| const DataType & | value (int component) const |
| |
| DataType & | value (int component) |
| |
| void | setValue (const ArrayType &data) |
| |
| void | setValue (const ArrayType &&data) |
| |
| void | setValue (const DataType &value, int component) |
| |
| void | setValues (const ArrayType &data) |
| |
| const DataType & | appendValue (const DataType &value) |
| |
| const ArrayType & | values () const |
| |
| ArrayType & | values () |
| |
| void | clear () |
| |
| void | truncate (int length) |
| |
| bool | concat (const Self *other) |
| |
| bool | adjustSize (int offset) |
| |
| bool | setSize (int size) |
| |
| bool | hash (SYS_HashType &hash_value, exint index, UT_WorkBuffer &errors) const override |
| | Return a hash value derived from the attribute data. More...
|
| |
| void | swap (Self *other) |
| |
| void | copy (const Self *other, PDG_AttributeCopyOp copy_op) |
| |
| void | copy (const ArrayType &data, PDG_AttributeCopyOp copy_op) |
| |
| bool | compare (const PDG_AttributeData *other) const override |
| | Compares this data object with another data object. More...
|
| |
| PDG_AttributeMergeError | merge (PDG_AttributeMergeOp merge_op, int stride) override |
| | Applies a merge op to the data in this attribute. More...
|
| |
| bool | slice (ArrayType &result, exint start, UT_Optional< exint > end_opt=UT_Optional< exint >(), UT_Optional< exint > step_opt=UT_Optional< exint >()) const |
| |
| | PDG_AttributeData () |
| |
| virtual | ~PDG_AttributeData () |
| |
| virtual int64 | getMemoryUsage (bool inclusive) const =0 |
| | Returns the memory usage of the attribute and its data. More...
|
| |
| virtual PDG_AttributeData * | clone () const =0 |
| | Deep copies this attribute. More...
|
| |
| virtual bool | saveData (UT_JSONWriter &) const =0 |
| | Serializes the data to a JSON writer. More...
|
| |
| virtual void | saveData (const UT_StringHolder &, UT_OptionsHolder &) const =0 |
| | Serializes the data to a UT options. More...
|
| |
| virtual bool | loadData (const UT_JSONValue &)=0 |
| | Loads data from a JSON value. More...
|
| |
| virtual bool | loadData (const UT_StringHolder &, const UT_OptionsHolder &)=0 |
| | Loads data from a dict. More...
|
| |
|
| static PDG_AttributeData * | fromType (PDG_AttributeType type) |
| |
| static PDG_EventType | eventType (PDG_AttributeType type) |
| | Static utility for returnign an event from type from an attribute type. More...
|
| |
| static PDG_AttributeType | typeFromString (const UT_StringHolder &type_name) |
| | Returns an attribute type enum from the specified string name. More...
|
| |
| static PDG_AttributeIntrinsic | intrinsicFromName (const UT_StringRef &name) |
| | Returns an intrinsic type from an attribue name. More...
|
| |
| static UT_StringHolder | nameFromIntrinsic (PDG_AttributeIntrinsic attrib_type, const UT_StringHolder &name) |
| | Returns an attribute name from a intrinsic type a name string. More...
|
| |
| static bool | validName (const UT_StringHolder &str, bool allow_internal=false) |
| |
| static bool | makeValidName (UT_StringHolder &name, const UT_StringHolder &str, bool allow_internal=false) |
| |
| static UT_StringHolder | typeName (PDG_AttributeType type) |
| | Returns the string name for the specififed attribute type. More...
|
| |
| static UT_StringHolder | mergeName (PDG_AttributeMergeOp merge) |
| | Returns the string name for the specified merge op. More...
|
| |
| static bool | isArrayType (PDG_AttributeType type) |
| | Returns true if the specified type is an array type. More...
|
| |
| static PDG_AttributeType | compatibleType (PDG_AttributeType left, PDG_AttributeType right) |
| |
| static PDG_AttributeMergeError | merge (UT_StringArray &data, PDG_AttributeMergeOp merge_op, int stride) |
| | Merge op utility for string array data. More...
|
| |
| static PDG_AttributeMergeError | merge (PDG_File::Array &data, PDG_AttributeMergeOp merge_op, int stride) |
| | Merge op utility for file array data. More...
|
| |
| static PDG_AttributeMergeError | merge (UT_ValArray< fpreal > &data, PDG_AttributeMergeOp merge_op, int stride) |
| | Merge op utility for float array data. More...
|
| |
| static PDG_AttributeMergeError | merge (UT_ValArray< exint > &data, PDG_AttributeMergeOp merge_op, int stride) |
| | Merge op utility for int array data. More...
|
| |
| static PDG_AttributeMergeError | merge (UT_Array< UT_OptionsHolder > &data, PDG_AttributeMergeOp merge_op, int stride) |
| | Merge op utility for dict array data. More...
|
| |
template<PDG_AttributeType AttribType, typename DataType, typename ArrayType = UT_ValArray<DataType>>
class PDG_AttributeArray< AttribType, DataType, ArrayType >
Base template for array attribute types
Definition at line 27 of file PDG_AttributeArray.h.