summaryrefslogtreecommitdiff
path: root/src/position.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/position.h')
-rw-r--r--src/position.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/position.h b/src/position.h
new file mode 100644
index 0000000..0f044c6
--- /dev/null
+++ b/src/position.h
@@ -0,0 +1,24 @@
1#ifndef POSITION_H
2#define POSITION_H
3
4class Position
5{
6public:
7 Position();
8 Position( int iDims );
9 Position( int iDims, int iX, ...);
10 Position( const Position &rhs );
11 virtual ~Position();
12
13 int operator[]( int iIdx ) const;
14 int &operator[]( int iIdx );
15 Position &operator=( const Position &rhs );
16
17 int getDims() const;
18
19private:
20 int iDims;
21 int *aiValues;
22};
23
24#endif