|
| GA_ATIBlobArray (const GA_AttributeType &type, const GA_IndexMap &index_map, GA_AttributeScope scope, const UT_StringHolder &name, int tuple_size) |
|
| ~GA_ATIBlobArray () override |
|
int64 | getMemoryUsage (bool inclusive) const override |
| Report approximate memory usage. More...
|
|
void | countMemory (UT_MemoryCounter &counter, bool inclusive) const override |
|
void | reconstructElementBlock (GA_Offset offset, GA_Offset nelements) override |
|
exint | findMaximumArrayLength () const |
|
int | getTupleSize () const |
| Get the tuple size. More...
|
|
bool | setTupleSize (int size) |
|
int | entries () const |
| Return the entries in the blob container. More...
|
|
GA_BlobIndex | getMaximumIndex () const |
|
int | capacity () const |
| Return the capacity of the blob container. More...
|
|
void | getBlobIndex (UT_Array< GA_BlobIndex > &indices, GA_Offset offset) const |
| Look up a blob handle by offset. More...
|
|
bool | setBlobIndex (const UT_Array< GA_BlobIndex > &indices, GA_Offset offset) |
| Store a new blob_index at the given offset. More...
|
|
void | getBlob (UT_Array< GA_BlobRef > &blobs, GA_Offset offset) const |
| Get the blob associated with a given offset into the array. More...
|
|
bool | setBlob (const UT_Array< GA_BlobRef > &blobs, GA_Offset offset) |
| Store a new blob at the given offset. More...
|
|
bool | replaceBlob (GA_BlobIndex handle, const GA_BlobRef &blob) |
| Replace a blob in the blob container with a new blob value. More...
|
|
GA_BlobRef | lookupBlob (GA_BlobIndex handle) const |
| Look up a blob given its handle. More...
|
|
GA_BlobRef | getOrderedBlob (exint idx) const |
| Lookup a blob given an ordered index. More...
|
|
void | compactStorage () override |
|
fpreal | getStorageOccupancy () |
| Get a measure of the vacancy entropy of the storage container. This. More...
|
|
WriteConcurrence | getSupportedWriteConcurrence () const override |
|
const GA_AIFBlobArray * | getAIFBlobArray () const override |
| Return the attribute's blob array interface or NULL. More...
|
|
const GA_AIFMerge * | getAIFMerge () const override |
| Return the attribute's merge interface or NULL. More...
|
|
const GA_AIFCompare * | getAIFCompare () const override |
| Return the attribute's comparison interface or NULL. More...
|
|
const GA_AIFCopyData * | getAIFCopyData () const override |
| Return the attribute's copy interface or NULL. More...
|
|
const GA_AIFInterp * | getAIFInterp () const override |
| Return the attribute's interpolation interface or NULL. More...
|
|
bool | jsonSave (UT_JSONWriter &w, const GA_SaveMap &s, const char *blobtoken="data") const |
|
bool | jsonLoad (UT_JSONParser &p, const GA_BlobDataLoader &blobloader, const GA_LoadMap &load, const char *blobtoken="data") |
|
int | extractBlobs (UT_Array< GA_BlobRef > &blobs, UT_IntArray &handles) const |
|
bool | setArraySize (GA_Offset new_size) override |
| Grow or shrink the array size. More...
|
|
virtual exint | arraySize (GA_Offset item) const |
| Return the array size for a given offset. More...
|
|
void | tryCompressAllPages (GA_Offset start_offset=GA_Offset(0), GA_Offset end_offset=GA_INVALID_OFFSET) override |
| Try to compress data pages. More...
|
|
void | hardenAllPages (GA_Offset start_offset=GA_Offset(0), GA_Offset end_offset=GA_INVALID_OFFSET) override |
| Harden data pages. More...
|
|
bool | matchesStorage (const GA_Attribute *that) const override |
|
void | replace (const GA_Attribute &src) override |
|
|
void | defragment (const GA_Defragment &defrag) override |
|
| GA_Attribute (const GA_AttributeType &type, const GA_IndexMap &index_map, GA_AttributeScope scope, const UT_StringHolder &name) |
|
virtual | ~GA_Attribute () |
|
const GA_AttributeType & | getType () const |
|
const GA_IndexMap & | getIndexMap () const |
|
const GA_Detail & | getDetail () const |
|
GA_Detail & | getDetail () |
|
GA_AttributeOwner | getOwner () const |
|
GA_AttributeScope | getScope () const |
|
bool | isGroup () const |
|
SYS_FORCE_INLINE GA_TypeInfo | getTypeInfo () const |
|
SYS_FORCE_INLINE void | setTypeInfo (GA_TypeInfo type) |
|
bool | shouldInterpretAsTexCoord (bool allow_float2=false) const |
|
GA_StorageClass | getStorageClass () const |
| Returns the approximate type of the attribute. More...
|
|
int | getTupleSize () const |
| Size of the AIFTuple, if it exists. If it doesn't, 1. More...
|
|
const UT_StringHolder & | getName () const |
|
const UT_StringHolder & | getFullName () const |
|
SYS_FORCE_INLINE GA_DataId | getDataId () const |
|
SYS_FORCE_INLINE void | assignNewDataId () |
|
SYS_FORCE_INLINE void | bumpDataId () |
|
SYS_FORCE_INLINE void | clearDataId () |
|
SYS_FORCE_INLINE void | cloneDataId (const GA_Attribute &src, bool allow_clear=false) |
|
SYS_FORCE_INLINE void | cloneOrBumpDataId (const GA_Attribute &src, bool allow_clear=false) |
| NOTE: Just call cloneDataId(src). More...
|
|
virtual const GA_AIFDelta * | getAIFDelta () const |
| Return the attribute's delta interface or NULL. More...
|
|
virtual const GA_AIFTuple * | getAIFTuple () const |
| Return the attribute's tuple interface or NULL. More...
|
|
virtual const GA_AIFMath * | getAIFMath () const |
| Return the attribute's math interface or NULL. More...
|
|
virtual const GA_AIFBlob * | getAIFBlob () const |
| Return the attribute's blob interface or NULL. More...
|
|
virtual const GA_AIFStringTuple * | getAIFStringTuple () const |
| Return the attribute's string tuple interface or NULL. More...
|
|
virtual const
GA_AIFSharedStringTuple * | getAIFSharedStringTuple () const |
| Return the attribute's shared string tuple interface or NULL. More...
|
|
virtual const
GA_AIFSharedStringArray * | getAIFSharedStringArray () const |
| Return the attribute's shared string array interface or NULL. More...
|
|
virtual const
GA_AIFSharedDictTuple * | getAIFSharedDictTuple () const |
| Return the attribute's shared options tuple interface or NULL. More...
|
|
virtual const
GA_AIFSharedDictArray * | getAIFSharedDictArray () const |
| Return the attribute's shared options tuple interface or NULL. More...
|
|
virtual const GA_AIFIndexPair * | getAIFIndexPair () const |
| Return the attribute's index pair interface or NULL. More...
|
|
virtual const GA_AIFBlindData * | getAIFBlindData () const |
| Return the attribute's blind data interface or NULL. More...
|
|
virtual const GA_AIFEdit * | getAIFEdit () const |
| Return the attribute's edit interface or NULL. More...
|
|
virtual const GA_AIFNumericArray * | getAIFNumericArray () const |
| Return the attribute's arraydata interface or NULL. More...
|
|
virtual const GA_AIFStat * | getAIFStat () const |
|
template<typename T > |
const T * | getAIF () const |
| Generic method for getting an AIF by type. More...
|
|
const GA_AttributeOptions & | getOptions () const |
|
GA_AttributeOptions & | getOptions () |
|
void | setNonTransforming (bool val) |
|
bool | needsTransform (bool include_P=true) const |
|
bool | isDetached () const |
|
void | mergeOptions (const GA_AttributeOptions &src) |
| Merge the options passed in with the options in the attribute. More...
|
|
bool | importOption (const char *name, int &v) const |
|
bool | importOption (const char *name, bool &v) const |
|
bool | importOption (const char *name, fpreal32 &v) const |
|
bool | importOption (const char *name, fpreal64 &v) const |
|
bool | importOption (const char *name, UT_String &v) const |
|
void | setTailInitialization (bool onoff) |
|
bool | isTailInitialization () const |
| Check whether the attribute is set to tail initialization. More...
|
|
void | reconstructElement (GA_Offset offset) |
|
virtual void | batchDeletion () |
|
GA_Attribute * | clone (const GA_IndexMap &index_map, const UT_StringHolder &name, bool clone_options) const |
|
bool | jsonSaveDefinition (UT_JSONWriter &w) const |
| Save the GA_Attribute-Definition section. More...
|
|
virtual const GA_AIFJSON * | getAIFJSON () const |
| Return the AIF to handle saving/loading of the private data section. More...
|
|
virtual int | getSaveVersion () const |
|
virtual bool | debugValidateArrayCapacity (GA_Offset sz) const |
| Debug validation of allocated array size. More...
|
|
virtual void | copyNonStorageMetadata (const GA_Attribute *that) |
|
GA_AttributeProxyHandle | getProxy () |
|
GA_ConstAttributeProxyHandle | getProxy () const |
|
void | setExportName (const char *external_name) |
|
bool | hasExportName () const |
|
std::string | getExportName () const |
|
GA_CEAttribute * | getCEAttribute (GA_StorageClass storage, int &tuplesize, bool isarray, bool read, bool write) |
|
GA_CEAttribute * | getCEAttribute (GA_StorageClass storage, GA_Precision precision, int &tuplesize, bool isarray, bool read, bool write) |
|
void | setCEAttribute (GA_CEAttribute *ceattrib, bool leaveOnGPU=false) |
|
void | flushCEWriteCaches (bool clearwriteback=true) |
|
bool | hasPendingCEWriteBack () const |
|
void | flushCECaches () |
| Remove all CE Caches, copying back any marked as written to. More...
|
|
void | stealCEAttribute (const GA_Attribute &src) |
|
bool | isActivelyStreamed () const |
|
void | setActivelyStreamed (bool isstreaming) |
|
bool | existedPriorToStream () const |
|
void | setExistedPriorToStream (bool preexisted) |
|
virtual bool | copy (GA_Offset desti, GA_Offset srci) |
|
virtual bool | copy (GA_Offset desti, const GA_Attribute &src, GA_Offset srci) |
|
virtual bool | copy (const GA_Range &destrange, const GA_Range &srcrange) |
|
virtual bool | copy (const GA_Range &destrange, const GA_Attribute &src, const GA_Range &srcrange) |
|
virtual bool | fill (const GA_Range &destrange, GA_Offset srci) |
|
virtual bool | fill (const GA_Range &destrange, const GA_Attribute &src, GA_Offset srci) |
|
bool | hasFlag (AttribFlag flag) const |
|
void | setFlag (AttribFlag flag, bool onoff) |
|
A simple ATI to store aribtrary "blobs" of data in an attribute.
The blob attribute type stores arbitrary blobs (GA_Blob) of data for each element in the attribute array. The blobs are stored as reference counted shared objects, meaning the blobs may be shared between multiple elements of the array. Each blob is referenced by a unique integer handle.
It's also possible to get a list of all the blobs stored by the attribute
By default, the array is filled with NULL pointers.
This class is very simple and only provides a minimal interface. Blob attributes are not saved/loaded, and there is minimal access to the blobs.
Users may sub-class from this ATI to create more complicated classes which provide alternate interfaces.
This attribute looks for options (GA_Attribute::getOptions())
- bool blob:stringset (default: true)
This option is queried when merging detail attributes. When true, the unique blobs from both details will be merged into the resulting detail. When false, the resulting detail will only have the blobs from the first detail in the merge.
Definition at line 75 of file GA_ATIBlobArray.h.