24 #ifndef PXR_USD_SDF_CHILDREN_UTILS_H
25 #define PXR_USD_SDF_CHILDREN_UTILS_H
42 template<
class ChildPolicy>
48 typedef typename ChildPolicy::KeyType
KeyType;
58 const SdfLayerHandle &
layer,
107 const SdfLayerHandle &
layer,
109 const std::vector<typename ChildPolicy::ValueType> &
values);
114 const SdfLayerHandle &
layer,
122 const SdfLayerHandle &
layer,
124 const typename ChildPolicy::KeyType& key);
135 const SdfLayerHandle &
layer,
138 const typename ChildPolicy::FieldType& newName,
144 const SdfLayerHandle &
layer,
146 const typename ChildPolicy::KeyType& key)
156 const SdfLayerHandle &
layer,
159 const typename ChildPolicy::FieldType& newName,
167 const SdfLayerHandle &
layer,
169 const typename ChildPolicy::FieldType& key,
177 #endif // PXR_USD_SDF_CHILDREN_UTILS_H
static SDF_API bool MoveChildForBatchNamespaceEdit(const SdfLayerHandle &layer, const SdfPath &path, const typename ChildPolicy::ValueType &value, const typename ChildPolicy::FieldType &newName, int index)
GLsizei const GLchar *const * string
GLsizei const GLchar *const * path
static SDF_API bool Rename(const SdfSpec &spec, const FieldType &newName)
Y * get_pointer(TfWeakPtrFacade< X, Y > const &p)
static SDF_API bool CanRemoveChildForBatchNamespaceEdit(const SdfLayerHandle &layer, const SdfPath &path, const typename ChildPolicy::FieldType &key, std::string *whyNot)
GLenum GLuint GLint GLint layer
ChildPolicy::KeyType KeyType
static bool CreateSpec(const SdfLayerHandle &layer, const SdfPath &childPath, SdfSpecType specType, bool inert=true)
static SDF_API bool CanMoveChildForBatchNamespaceEdit(const SdfLayerHandle &layer, const SdfPath &path, const typename ChildPolicy::ValueType &value, const typename ChildPolicy::FieldType &newName, int index, std::string *whyNot)
static SDF_API bool RemoveChildForBatchNamespaceEdit(const SdfLayerHandle &layer, const SdfPath &path, const typename ChildPolicy::KeyType &key)
Remove the child identified by key.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
GLenum GLsizei GLsizei GLint * values
#define PXR_NAMESPACE_CLOSE_SCOPE
static SDF_API bool InsertChild(const SdfLayerHandle &layer, const SdfPath &path, const typename ChildPolicy::ValueType &value, int index)
Insert value as a child of path at the specified index.
static SdfAllowed CanRename(const SdfSpec &spec, const FieldType &newName)
Return whether spec can be renamed to newName.
static SDF_API bool RemoveChild(const SdfLayerHandle &layer, const SdfPath &path, const typename ChildPolicy::KeyType &key)
Remove the child identified by key.
static SDF_API bool IsValidName(const FieldType &newName)
Return whether newName is a valid name for a child.
static SDF_API bool SetChildren(const SdfLayerHandle &layer, const SdfPath &path, const std::vector< typename ChildPolicy::ValueType > &values)
ChildPolicy::FieldType FieldType