21#ifndef LIBMV_IMAGE_TUPLE_H
22#define LIBMV_IMAGE_TUPLE_H
29template <
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
const T & operator()(int i) const
void Reset(const Tuple< D, N > &b)
Tuple & operator=(const Tuple< D, N > &b)
bool operator!=(const Tuple< T, N > &other) const
Tuple(const Tuple< D, N > &b)