diff options
| author | Mike Buland <mike@xagasoft.com> | 2015-04-02 15:28:31 -0600 |
|---|---|---|
| committer | Mike Buland <mike@xagasoft.com> | 2015-04-02 15:28:31 -0600 |
| commit | 518619603ab3c49b7fdfcf19c439c1a30668164f (patch) | |
| tree | dda7774f51bde150db91dac14718cc78f7571039 /src/position.h | |
| download | lost-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.h | 24 |
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 | |||
| 4 | class Position | ||
| 5 | { | ||
| 6 | public: | ||
| 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 | |||
| 19 | private: | ||
| 20 | int iDims; | ||
| 21 | int *aiValues; | ||
| 22 | }; | ||
| 23 | |||
| 24 | #endif | ||
