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;
ConstArray(value_type const *ptr, size_type size)
size_type FindIndexIn4Tuple(value_type value) const
const_iterator end() const
TYPE const & const_reference
size_type FindIndex(value_type value) const
Array(value_type *ptr, size_type size)
value_type const * _begin
const_iterator begin() const
reference operator[](int index)
TYPE const * const_iterator
const_reference operator[](int index) const
TYPE const & const_reference
const_reference operator[](int index) const