21 #ifndef LIBMV_IMAGE_TUPLE_H
22 #define LIBMV_IMAGE_TUPLE_H
29 template <
typename T,
int N>
59 for (
int i = 0; i <
N; i++) {
60 data_[i] =
T(values[i]);
66 for (
int i = 0; i <
N; i++) {
73 const T*
Data()
const {
return &data_[0]; }
79 for (
int i = 0; i <
N; ++i) {
80 if ((*
this)(i) != other(i)) {
bool operator==(const Tuple< T, N > &other) const
void Reset(const Tuple< D, N > &b)
const T & operator()(int i) const
bool operator!=(const Tuple< T, N > &other) const
Tuple & operator=(const Tuple< D, N > &b)
Tuple(const Tuple< D, N > &b)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)