24 #ifndef OPENSUBDIV3_VTR_ARRAY_INTERFACE_H 25 #define OPENSUBDIV3_VTR_ARRAY_INTERFACE_H 27 #include "../version.h" 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);
91 for (size_type i=0; i<
size(); ++i) {
104 template <
typename TYPE>
145 using namespace OPENSUBDIV_VERSION;
TYPE const * const_iterator
const_reference operator[](int index) const
value_type const * _begin
const_iterator end() const
Array(value_type *ptr, size_type sizeArg)
reference operator[](int index)
size_type FindIndex(value_type value) const
TYPE const & const_reference
const_iterator begin() const
ConstArray(value_type const *ptr, size_type sizeArg)
const_reference operator[](int index) const
TYPE const & const_reference
size_type FindIndexIn4Tuple(value_type value) const