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

#include <UT_VtArray.h>

Public Types

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

Public Member Functions

 GusdUT_VtArrayRO (const ArrayType &array)
 
const Toperator() (exint i) const
 
const ArrayTypeoperator* () const
 
const ArrayTypearray () const
 
const Tdata () const
 
exint size () const
 
const_iterator begin () const
 
const_iterator end () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 

Detailed Description

template<class T>
class GusdUT_VtArrayRO< T >

Read-only wrapper to assist in read operations on a VtArray.

This container is not meant to be an owner of the VtArray – only a temporary structure used when iterating over the array. Hence, it retains a reference to the array, rather than holding a shared pointer. The array must remain in memory while the container is in use.

Since this container is read-only on the referenced array, it is guaranteed that none of its method will trigger copying of that data.

Definition at line 47 of file UT_VtArray.h.

Member Typedef Documentation

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

Definition at line 51 of file UT_VtArray.h.

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

Definition at line 53 of file UT_VtArray.h.

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

Definition at line 54 of file UT_VtArray.h.

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

Definition at line 50 of file UT_VtArray.h.

Constructor & Destructor Documentation

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

Definition at line 56 of file UT_VtArray.h.

Member Function Documentation

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

Definition at line 68 of file UT_VtArray.h.

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

Definition at line 74 of file UT_VtArray.h.

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

Definition at line 70 of file UT_VtArray.h.

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

Definition at line 75 of file UT_VtArray.h.

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

Definition at line 60 of file UT_VtArray.h.

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

Definition at line 66 of file UT_VtArray.h.

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

Definition at line 76 of file UT_VtArray.h.

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

Definition at line 77 of file UT_VtArray.h.

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

Definition at line 72 of file UT_VtArray.h.


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