9 #ifndef __PDG_ATTRIBUTE_PY_OBJECT_H__
10 #define __PDG_ATTRIBUTE_PY_OBJECT_H__
92 return (myObject !=
nullptr);
100 inline bool valid(
int component)
const
102 return (component == 0);
131 void serializationRepr(
135 int component)
const;
void swap(UT::ArraySet< Key, MULTI, MAX_LOAD_FACTOR_256, Clearer, Hash, KeyEqual > &a, UT::ArraySet< Key, MULTI, MAX_LOAD_FACTOR_256, Clearer, Hash, KeyEqual > &b)
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
virtual bool compare(const PDG_AttributeData *) const =0
Compares this data object with another data object.
std::size_t SYS_HashType
Define the type for hash values.
Class which writes ASCII or binary JSON streams.
bool valid(int component) const
void setValue(PY_PyObject *object, int index)
virtual bool loadData(const UT_JSONValue &)=0
Loads data from a JSON value.
virtual PDG_AttributeMergeError merge(PDG_AttributeMergeOp merge_op, int stride)=0
Applies a merge op to the data in this attribute.
PDG_AttributeCast
Enumeration of attribute cast results.
GLsizei GLsizei GLchar * source
GLint GLenum GLboolean GLsizei stride
virtual bool saveData(UT_JSONWriter &) const =0
Serializes the data to a JSON writer.
PDG_AttributeType
Enumeration of possible attribute types.
PDG_AttributeMergeOp
Enumeration of different ways that attributes can be combined.
virtual bool hash(SYS_HashType &hash_value, UT_WorkBuffer &errors) const =0
Return a hash value derived from the attribute data.
virtual int64 getMemoryUsage(bool inclusive) const =0
Returns the memory usage of the attribute and its data.
Class to store JSON objects as C++ objects.
A single, opaque PyObject.
PDG_AttributeMergeError
Enumerations of errors that can occur when merging attributes.
void swap(PDG_AttributePyObject *other)
bool value(PY_PyObject *&object, int component) const
size_t hash_value(const CH_ChannelRef &ref)
virtual PDG_AttributeData * clone() const =0
Deep copies this attribute.