24 #ifndef PXR_USD_SDF_CHILDREN_H
25 #define PXR_USD_SDF_CHILDREN_H
49 template<
class ChildPolicy>
54 typedef typename ChildPolicy::KeyType
KeyType;
108 void _UpdateChildNames()
const;
111 SdfLayerHandle _layer;
116 mutable std::vector<FieldType> _childNames;
117 mutable bool _childNamesValid;
122 #endif // PXR_USD_SDF_CHILDREN_H
PXR_NAMESPACE_OPEN_SCOPE SDF_DECLARE_HANDLES(SdfLayer)
SDF_API bool IsEqualTo(const This &other) const
Return true if this object and other are equivalent.
ChildPolicy::KeyPolicy KeyPolicy
SDF_API size_t GetSize() const
Return the number of children that this object contains.
GLsizei const GLchar *const * string
SDF_API KeyType FindKey(const ValueType &value) const
GLenum GLuint GLint GLint layer
SDF_API bool Copy(const std::vector< ValueType > &values, const std::string &type)
Replace this object's children with the ones in values.
ChildPolicy::FieldType FieldType
SDF_API ValueType GetChild(size_t index) const
Return the child at the specified index.
SDF_API bool Insert(const ValueType &value, size_t index, const std::string &type)
Insert a new child at the specified index.
ChildPolicy::ValueType ValueType
SDF_API bool Erase(const KeyType &key, const std::string &type)
Erase the child with the specified key.
Sdf_Children< ChildPolicy > This
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
GLenum GLsizei GLsizei GLint * values
#define PXR_NAMESPACE_CLOSE_SCOPE
SDF_API bool IsValid() const
Return whether this object is valid.
ChildPolicy::KeyType KeyType
SDF_API size_t Find(const KeyType &key) const
Find the index of the specified key, or return the size if it's not found.