Changeset View
Changeset View
Standalone View
Standalone View
intern/libmv/libmv/image/tuple.h
| Show All 19 Lines | |||||
| #ifndef LIBMV_IMAGE_TUPLE_H | #ifndef LIBMV_IMAGE_TUPLE_H | ||||
| #define LIBMV_IMAGE_TUPLE_H | #define LIBMV_IMAGE_TUPLE_H | ||||
| #include <algorithm> | #include <algorithm> | ||||
| namespace libmv { | namespace libmv { | ||||
| // A vector of elements with fixed lenght and deep copy semantics. | // A vector of elements with fixed length and deep copy semantics. | ||||
| template <typename T, int N> | template <typename T, int N> | ||||
| class Tuple { | class Tuple { | ||||
| public: | public: | ||||
| enum { SIZE = N }; | enum { SIZE = N }; | ||||
| Tuple() {} | Tuple() {} | ||||
| Tuple(T initial_value) { Reset(initial_value); } | Tuple(T initial_value) { Reset(initial_value); } | ||||
| template <typename D> | template <typename D> | ||||
| ▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines | |||||