summaryrefslogtreecommitdiff
path: root/src/position.h
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2015-04-02 15:28:31 -0600
committerMike Buland <mike@xagasoft.com>2015-04-02 15:28:31 -0600
commit518619603ab3c49b7fdfcf19c439c1a30668164f (patch)
treedda7774f51bde150db91dac14718cc78f7571039 /src/position.h
downloadlost-518619603ab3c49b7fdfcf19c439c1a30668164f.tar.gz
lost-518619603ab3c49b7fdfcf19c439c1a30668164f.tar.bz2
lost-518619603ab3c49b7fdfcf19c439c1a30668164f.tar.xz
lost-518619603ab3c49b7fdfcf19c439c1a30668164f.zip
Everything works, it could use more stuff.
Diffstat (limited to '')
-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