HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SdfMapEditProxy< T, _ValuePolicy > Class Template Reference

#include <mapEditProxy.h>

+ Inheritance diagram for SdfMapEditProxy< T, _ValuePolicy >:

Public Types

typedef T Type
 
typedef _ValuePolicy ValuePolicy
 
typedef SdfMapEditProxy< Type,
ValuePolicy
This
 
typedef Type::key_type key_type
 
typedef Type::mapped_type mapped_type
 
typedef Type::value_type value_type
 
typedef _ValueProxy reference
 
typedef const value_typeconst_reference
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef _Iterator< This
*, inner_iterator, _PairProxy > 
iterator
 
typedef _Iterator< const This
*, const_inner_iterator, const
value_type & > 
const_iterator
 
typedef
hboost::reverse_iterator
< iterator
reverse_iterator
 
typedef
hboost::reverse_iterator
< const_iterator
const_reverse_iterator
 

Public Member Functions

 SdfMapEditProxy (const SdfSpecHandle &owner, const TfToken &field)
 
 SdfMapEditProxy ()
 
Thisoperator= (const This &other)
 
template<class U , class UVP >
Thisoperator= (const SdfMapEditProxy< U, UVP > &other)
 
Thisoperator= (const Type &data)
 
 operator Type () const
 Returns a copy of the value. More...
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
size_type size () const
 
size_type max_size () const
 
bool empty () const
 
std::pair< iterator, bool > insert (const value_type &value)
 
iterator insert (iterator pos, const value_type &value)
 
template<class InputIterator >
void insert (InputIterator first, InputIterator last)
 
void erase (iterator pos)
 
size_type erase (const key_type &key)
 
void erase (iterator first, iterator last)
 
void clear ()
 
iterator find (const key_type &key)
 
const_iterator find (const key_type &key) const
 
size_type count (const key_type &key) const
 
iterator lower_bound (const key_type &key)
 
const_iterator lower_bound (const key_type &key) const
 
iterator upper_bound (const key_type &key)
 
const_iterator upper_bound (const key_type &key) const
 
std::pair< iterator, iteratorequal_range (const key_type &key)
 
std::pair< const_iterator,
const_iterator
equal_range (const key_type &key) const
 
reference operator[] (const key_type &key)
 
bool operator== (const Type &other) const
 
bool operator< (const Type &other) const
 
bool operator> (const Type &other) const
 
template<class U , class UVP >
bool operator== (const SdfMapEditProxy< U, UVP > &other) const
 
template<class U , class UVP >
bool operator!= (const SdfMapEditProxy< U, UVP > &other) const
 
template<class U , class UVP >
bool operator< (const SdfMapEditProxy< U, UVP > &other) const
 
template<class U , class UVP >
bool operator<= (const SdfMapEditProxy< U, UVP > &other) const
 
template<class U , class UVP >
bool operator> (const SdfMapEditProxy< U, UVP > &other) const
 
template<class U , class UVP >
bool operator>= (const SdfMapEditProxy< U, UVP > &other) const
 
bool IsExpired () const
 
 operator bool () const
 

Friends

template<class ProxyT >
class SdfPyWrapMapEditProxy
 

Detailed Description

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
class SdfMapEditProxy< T, _ValuePolicy >

A proxy for editing map-like values.

A SdfMapEditProxy provides an interface for editing fields containing map-like values. The proxy allows consumers to interact with these values like a typical std::map while taking into account additional editing and validation policies.

The _ValuePolicy is used to canonicalize keys and values before storage or comparison.

See Also
SdfIdentityMapEditProxyValuePolicy

Definition at line 120 of file mapEditProxy.h.

Member Typedef Documentation

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
typedef _Iterator<const This*, const_inner_iterator, const value_type&> SdfMapEditProxy< T, _ValuePolicy >::const_iterator

Definition at line 307 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
typedef const value_type& SdfMapEditProxy< T, _ValuePolicy >::const_reference

Definition at line 302 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
typedef hboost::reverse_iterator<const_iterator> SdfMapEditProxy< T, _ValuePolicy >::const_reverse_iterator

Definition at line 309 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
typedef ptrdiff_t SdfMapEditProxy< T, _ValuePolicy >::difference_type

Definition at line 304 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
typedef _Iterator<This*, inner_iterator, _PairProxy> SdfMapEditProxy< T, _ValuePolicy >::iterator

Definition at line 305 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
typedef Type::key_type SdfMapEditProxy< T, _ValuePolicy >::key_type

Definition at line 126 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
typedef Type::mapped_type SdfMapEditProxy< T, _ValuePolicy >::mapped_type

Definition at line 127 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
typedef _ValueProxy SdfMapEditProxy< T, _ValuePolicy >::reference

Definition at line 301 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
typedef hboost::reverse_iterator<iterator> SdfMapEditProxy< T, _ValuePolicy >::reverse_iterator

Definition at line 308 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
typedef size_t SdfMapEditProxy< T, _ValuePolicy >::size_type

Definition at line 303 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
typedef SdfMapEditProxy<Type, ValuePolicy> SdfMapEditProxy< T, _ValuePolicy >::This

Definition at line 125 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
typedef T SdfMapEditProxy< T, _ValuePolicy >::Type

Definition at line 123 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
typedef Type::value_type SdfMapEditProxy< T, _ValuePolicy >::value_type

Definition at line 128 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
typedef _ValuePolicy SdfMapEditProxy< T, _ValuePolicy >::ValuePolicy

Definition at line 124 of file mapEditProxy.h.

Constructor & Destructor Documentation

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
SdfMapEditProxy< T, _ValuePolicy >::SdfMapEditProxy ( const SdfSpecHandle &  owner,
const TfToken field 
)
inlineexplicit

Definition at line 311 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
SdfMapEditProxy< T, _ValuePolicy >::SdfMapEditProxy ( )
inline

Definition at line 317 of file mapEditProxy.h.

Member Function Documentation

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
iterator SdfMapEditProxy< T, _ValuePolicy >::begin ( void  )
inline

Definition at line 351 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
const_iterator SdfMapEditProxy< T, _ValuePolicy >::begin ( void  ) const
inline

Definition at line 361 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
void SdfMapEditProxy< T, _ValuePolicy >::clear ( void  )
inline

Definition at line 464 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
size_type SdfMapEditProxy< T, _ValuePolicy >::count ( const key_type key) const
inline

Definition at line 488 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
bool SdfMapEditProxy< T, _ValuePolicy >::empty ( void  ) const
inline

Definition at line 401 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
iterator SdfMapEditProxy< T, _ValuePolicy >::end ( void  )
inline

Definition at line 356 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
const_iterator SdfMapEditProxy< T, _ValuePolicy >::end ( void  ) const
inline

Definition at line 367 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
std::pair<iterator, iterator> SdfMapEditProxy< T, _ValuePolicy >::equal_range ( const key_type key)
inline

Definition at line 537 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
std::pair<const_iterator,const_iterator> SdfMapEditProxy< T, _ValuePolicy >::equal_range ( const key_type key) const
inline

Definition at line 552 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
void SdfMapEditProxy< T, _ValuePolicy >::erase ( iterator  pos)
inline

Definition at line 432 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
size_type SdfMapEditProxy< T, _ValuePolicy >::erase ( const key_type key)
inline

Definition at line 439 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
void SdfMapEditProxy< T, _ValuePolicy >::erase ( iterator  first,
iterator  last 
)
inline

Definition at line 450 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
iterator SdfMapEditProxy< T, _ValuePolicy >::find ( const key_type key)
inline

Definition at line 469 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
const_iterator SdfMapEditProxy< T, _ValuePolicy >::find ( const key_type key) const
inline

Definition at line 478 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
std::pair<iterator, bool> SdfMapEditProxy< T, _ValuePolicy >::insert ( const value_type value)
inline

Definition at line 406 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
iterator SdfMapEditProxy< T, _ValuePolicy >::insert ( iterator  pos,
const value_type value 
)
inline

Definition at line 411 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
template<class InputIterator >
void SdfMapEditProxy< T, _ValuePolicy >::insert ( InputIterator  first,
InputIterator  last 
)
inline

Definition at line 417 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
bool SdfMapEditProxy< T, _ValuePolicy >::IsExpired ( ) const
inline

Returns true if the value is expired. Note this a default-constructed MapEditProxy is considered to be invalid but not expired.

Definition at line 632 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
iterator SdfMapEditProxy< T, _ValuePolicy >::lower_bound ( const key_type key)
inline

Definition at line 497 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
const_iterator SdfMapEditProxy< T, _ValuePolicy >::lower_bound ( const key_type key) const
inline

Definition at line 507 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
size_type SdfMapEditProxy< T, _ValuePolicy >::max_size ( void  ) const
inline

Definition at line 396 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
SdfMapEditProxy< T, _ValuePolicy >::operator bool ( ) const
inlineexplicit

Explicit bool conversion operator. Returns true if the value is valid, false otherwise.

Definition at line 639 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
SdfMapEditProxy< T, _ValuePolicy >::operator Type ( ) const
inline

Returns a copy of the value.

Definition at line 346 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
template<class U , class UVP >
bool SdfMapEditProxy< T, _ValuePolicy >::operator!= ( const SdfMapEditProxy< U, UVP > &  other) const
inline

Definition at line 599 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
bool SdfMapEditProxy< T, _ValuePolicy >::operator< ( const Type other) const
inline

Definition at line 581 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
template<class U , class UVP >
bool SdfMapEditProxy< T, _ValuePolicy >::operator< ( const SdfMapEditProxy< U, UVP > &  other) const
inline

Definition at line 605 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
template<class U , class UVP >
bool SdfMapEditProxy< T, _ValuePolicy >::operator<= ( const SdfMapEditProxy< U, UVP > &  other) const
inline

Definition at line 612 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
This& SdfMapEditProxy< T, _ValuePolicy >::operator= ( const This other)
inline

Definition at line 322 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
template<class U , class UVP >
This& SdfMapEditProxy< T, _ValuePolicy >::operator= ( const SdfMapEditProxy< U, UVP > &  other)
inline

Definition at line 331 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
This& SdfMapEditProxy< T, _ValuePolicy >::operator= ( const Type data)
inline

Definition at line 339 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
bool SdfMapEditProxy< T, _ValuePolicy >::operator== ( const Type other) const
inline

Definition at line 576 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
template<class U , class UVP >
bool SdfMapEditProxy< T, _ValuePolicy >::operator== ( const SdfMapEditProxy< U, UVP > &  other) const
inline

Definition at line 592 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
bool SdfMapEditProxy< T, _ValuePolicy >::operator> ( const Type other) const
inline

Definition at line 586 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
template<class U , class UVP >
bool SdfMapEditProxy< T, _ValuePolicy >::operator> ( const SdfMapEditProxy< U, UVP > &  other) const
inline

Definition at line 619 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
template<class U , class UVP >
bool SdfMapEditProxy< T, _ValuePolicy >::operator>= ( const SdfMapEditProxy< U, UVP > &  other) const
inline

Definition at line 625 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
reference SdfMapEditProxy< T, _ValuePolicy >::operator[] ( const key_type key)
inline

Definition at line 567 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
reverse_iterator SdfMapEditProxy< T, _ValuePolicy >::rbegin ( )
inline

Definition at line 374 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
const_reverse_iterator SdfMapEditProxy< T, _ValuePolicy >::rbegin ( ) const
inline

Definition at line 382 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
reverse_iterator SdfMapEditProxy< T, _ValuePolicy >::rend ( )
inline

Definition at line 378 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
const_reverse_iterator SdfMapEditProxy< T, _ValuePolicy >::rend ( ) const
inline

Definition at line 386 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
size_type SdfMapEditProxy< T, _ValuePolicy >::size ( void  ) const
inline

Definition at line 391 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
iterator SdfMapEditProxy< T, _ValuePolicy >::upper_bound ( const key_type key)
inline

Definition at line 517 of file mapEditProxy.h.

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
const_iterator SdfMapEditProxy< T, _ValuePolicy >::upper_bound ( const key_type key) const
inline

Definition at line 527 of file mapEditProxy.h.

Friends And Related Function Documentation

template<class T, class _ValuePolicy = SdfIdentityMapEditProxyValuePolicy<T>>
template<class ProxyT >
friend class SdfPyWrapMapEditProxy
friend

Definition at line 917 of file mapEditProxy.h.


The documentation for this class was generated from the following file: