tahoma2d/toonz/sources/include/tlin/tlin_vector.h

28 lines
470 B
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef TLIN_VECTOR_H
#define TLIN_VECTOR_H
//----------------------------------------------------------------------------
/*!
The Vector class represents a vector in tlin-compatible algorithms.
*/
template <typename T>
2016-06-15 18:43:10 +12:00
class vector {
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
vector(int size);
~vector();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
vector(const vector &);
vector &operator=(const vector &);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
int size() const;
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
T &operator[](int i);
const T &operator[](int i) const;
2016-03-19 06:57:51 +13:00
};
2016-06-15 18:43:10 +12:00
#endif // TLIN_MATRIX_H