7 #ifndef PXR_USD_SDF_MAP_EDITOR_H
8 #define PXR_USD_SDF_MAP_EDITOR_H
26 template <
class MapType>
41 virtual SdfSpecHandle
GetOwner() const = 0;
47 virtual const MapType*
GetData() const = 0;
58 virtual
void Copy(const MapType& other) = 0;
74 std::unique_ptr<Sdf_MapEditor<
T> >
79 #endif // PXR_USD_SDF_MAP_EDITOR_H
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
MapType::mapped_type mapped_type
GLsizei const GLfloat * value
virtual SdfSpecHandle GetOwner() const =0
Returns owner of the map being edited.
virtual bool IsExpired() const =0
Returns true if the map being edited is expired, false otherwise.
virtual SdfAllowed IsValidValue(const mapped_type &value) const =0
virtual std::pair< iterator, bool > Insert(const value_type &value)=0
virtual std::string GetLocation() const =0
MapType::iterator iterator
virtual void Copy(const MapType &other)=0
virtual void Set(const key_type &key, const mapped_type &other)=0
virtual const MapType * GetData() const =0
Returns const pointer to map being edited.
virtual SdfAllowed IsValidKey(const key_type &key) const =0
virtual bool Erase(const key_type &key)=0
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
virtual ~Sdf_MapEditor() noexcept
std::unique_ptr< Sdf_MapEditor< T > > Sdf_CreateMapEditor(const SdfSpecHandle &owner, const TfToken &field)
MapType::value_type value_type
MapType::key_type key_type