11 #ifndef __GT_AttributeMap__
12 #define __GT_AttributeMap__
68 {
return !(*
this == map); }
74 int entries()
const {
return myNames.entries(); }
77 int64 getMemoryUsage(
bool inclusive)
const;
82 auto item = myNamesMap.find(
name);
83 return (item != myNamesMap.end()) ? item->second : -1;
88 {
return myNamesMap.contains(name); }
92 {
return myNames(index); }
101 { addExportName(
getName(idx), export_name); }
const_names_iterator begin() const
Access to a symbol table traverser.
GT_Owner getOriginalOwner(int idx) const
A symbol table for attribute data.
UT_ArrayStringMap< int > NamesMapType
A reference counter base class for use with UT_IntrusivePtr.
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Parent::const_iterator const_iterator
PXL_API const char * getName(const ColorSpace *space)
Return the name of the color space.
const UT_StringArray & getNames() const
Get the symbol names.
void addExportName(int idx, const UT_StringHolder &export_name)
NamesMapType::const_iterator const_names_iterator
GLuint const GLchar * name
Used to filter out entries when constructing an attribute map.
void setOriginalOwner(int i, GT_Owner o)
Set the original owner.
const UT_StringHolder & getName(int index) const
Find the name for the given index.
int entries() const
How many symbols are there.
ImageBuf OIIO_API add(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
ExportMapType::const_iterator const_export_iterator
bool hasName(const UT_StringRef &name) const
Test if a name exists.
bool operator!=(const GT_AttributeMap &map) const
UT_ArrayStringMap< UT_StringHolder > ExportMapType
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter