24 #ifndef OPENSUBDIV3_VTR_ARRAY_INTERFACE_H
25 #define OPENSUBDIV3_VTR_ARRAY_INTERFACE_H
27 #include "../version.h"
31 namespace OpenSubdiv {
32 namespace OPENSUBDIV_VERSION {
52 template <
typename TYPE>
82 if (value ==
_begin[0])
return 0;
83 if (value ==
_begin[1])
return 1;
84 if (value ==
_begin[2])
return 2;
85 if (value ==
_begin[3])
return 3;
86 assert(
"FindIndexIn4Tuple() did not find expected value!" == 0);
104 template <
typename TYPE>
145 using namespace OPENSUBDIV_VERSION;
size_type FindIndexIn4Tuple(value_type value) const
const_iterator end() const
TYPE const & const_reference
size_type FindIndex(value_type value) const
value_type const * _begin
Array(value_type *ptr, size_type sizeArg)
const_iterator begin() const
ConstArray(value_type const *ptr, size_type sizeArg)
reference operator[](int index)
TYPE const * const_iterator
const_reference operator[](int index) const
TYPE const & const_reference
const_reference operator[](int index) const