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

#include <UT_VtArray.h>

Public Types

typedef T ValueType
 
typedef VtArray< TArrayType
 
typedef ArrayType::iterator iterator
 
typedef ArrayType::reverse_iterator reverse_iterator
 
typedef ArrayType::const_iterator const_iterator
 
typedef
ArrayType::const_reverse_iterator 
const_reverse_iterator
 

Public Member Functions

 GusdUT_VtArrayRW (const ArrayType &array)
 
const Toperator() (exint i) const
 
Toperator() (exint i)
 
const Tdata () const
 
Tdata ()
 
exint size () const
 
void resize (exint size)
 
void reserve (exint size)
 
void swap (ArrayType &array)
 
void update ()
 
const_iterator begin () const
 
const_iterator end () const
 
iterator begin ()
 
iterator end ()
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const ArrayTypeoperator* () const
 
ArrayTypeoperator* ()
 
const ArrayTypearray () const
 
ArrayTypearray ()
 

Detailed Description

template<class T>
class GusdUT_VtArrayRW< T >

Read-write wrapper on a VtArray.

As with GusdUT_VtArrayRW, this does not own the VtArray, but rather is a general tool for editing one, and so retains a reference to the underyling array. The array must remain in memory while the container is in use.

Definition at line 93 of file UT_VtArray.h.

Member Typedef Documentation

template<class T >
typedef VtArray<T> GusdUT_VtArrayRW< T >::ArrayType

Definition at line 97 of file UT_VtArray.h.

template<class T >
typedef ArrayType::const_iterator GusdUT_VtArrayRW< T >::const_iterator

Definition at line 101 of file UT_VtArray.h.

template<class T >
typedef ArrayType::const_reverse_iterator GusdUT_VtArrayRW< T >::const_reverse_iterator

Definition at line 102 of file UT_VtArray.h.

template<class T >
typedef ArrayType::iterator GusdUT_VtArrayRW< T >::iterator

Definition at line 99 of file UT_VtArray.h.

template<class T >
typedef ArrayType::reverse_iterator GusdUT_VtArrayRW< T >::reverse_iterator

Definition at line 100 of file UT_VtArray.h.

template<class T >
typedef T GusdUT_VtArrayRW< T >::ValueType

Definition at line 96 of file UT_VtArray.h.

Constructor & Destructor Documentation

template<class T >
GusdUT_VtArrayRW< T >::GusdUT_VtArrayRW ( const ArrayType array)
inline

Definition at line 104 of file UT_VtArray.h.

Member Function Documentation

template<class T >
const ArrayType& GusdUT_VtArrayRW< T >::array ( ) const
inline

Access to the underlying array.

Warning
If you modify the arrays externally, you should call update() before attempting to access the array again through this container.

Definition at line 129 of file UT_VtArray.h.

template<class T >
ArrayType& GusdUT_VtArrayRW< T >::array ( )
inline

Access to the underlying array.

Warning
If you modify the arrays externally, you should call update() before attempting to access the array again through this container.

Definition at line 130 of file UT_VtArray.h.

template<class T >
const_iterator GusdUT_VtArrayRW< T >::begin ( void  ) const
inline

Definition at line 167 of file UT_VtArray.h.

template<class T >
iterator GusdUT_VtArrayRW< T >::begin ( void  )
inline

Definition at line 169 of file UT_VtArray.h.

template<class T >
const T* GusdUT_VtArrayRW< T >::data ( ) const
inline

Definition at line 133 of file UT_VtArray.h.

template<class T >
T* GusdUT_VtArrayRW< T >::data ( )
inline

Definition at line 134 of file UT_VtArray.h.

template<class T >
const_iterator GusdUT_VtArrayRW< T >::end ( void  ) const
inline

Definition at line 168 of file UT_VtArray.h.

template<class T >
iterator GusdUT_VtArrayRW< T >::end ( void  )
inline

Definition at line 170 of file UT_VtArray.h.

template<class T >
const T& GusdUT_VtArrayRW< T >::operator() ( exint  i) const
inline

Definition at line 107 of file UT_VtArray.h.

template<class T >
T& GusdUT_VtArrayRW< T >::operator() ( exint  i)
inline

Definition at line 114 of file UT_VtArray.h.

template<class T >
const ArrayType& GusdUT_VtArrayRW< T >::operator* ( void  ) const
inline

Access to the underlying array.

Warning
If you modify the arrays externally, you should call update() before attempting to access the array again through this container.

Definition at line 126 of file UT_VtArray.h.

template<class T >
ArrayType& GusdUT_VtArrayRW< T >::operator* ( void  )
inline

Access to the underlying array.

Warning
If you modify the arrays externally, you should call update() before attempting to access the array again through this container.

Definition at line 127 of file UT_VtArray.h.

template<class T >
const_reverse_iterator GusdUT_VtArrayRW< T >::rbegin ( ) const
inline

Definition at line 172 of file UT_VtArray.h.

template<class T >
reverse_iterator GusdUT_VtArrayRW< T >::rbegin ( )
inline

Definition at line 174 of file UT_VtArray.h.

template<class T >
const_reverse_iterator GusdUT_VtArrayRW< T >::rend ( ) const
inline

Definition at line 173 of file UT_VtArray.h.

template<class T >
reverse_iterator GusdUT_VtArrayRW< T >::rend ( )
inline

Definition at line 175 of file UT_VtArray.h.

template<class T >
void GusdUT_VtArrayRW< T >::reserve ( exint  size)
inline

Definition at line 145 of file UT_VtArray.h.

template<class T >
void GusdUT_VtArrayRW< T >::resize ( exint  size)
inline

Definition at line 138 of file UT_VtArray.h.

template<class T >
exint GusdUT_VtArrayRW< T >::size ( void  ) const
inline

Definition at line 136 of file UT_VtArray.h.

template<class T >
void GusdUT_VtArrayRW< T >::swap ( ArrayType array)
inline

Definition at line 152 of file UT_VtArray.h.

template<class T >
void GusdUT_VtArrayRW< T >::update ( void  )
inline

Update the state of the array to reflect changes in the underlying array (eg., change in size).

Definition at line 160 of file UT_VtArray.h.


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