From 518619603ab3c49b7fdfcf19c439c1a30668164f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 2 Apr 2015 15:28:31 -0600 Subject: Everything works, it could use more stuff. --- src/position.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/position.h (limited to 'src/position.h') 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 @@ +#ifndef POSITION_H +#define POSITION_H + +class Position +{ +public: + Position(); + Position( int iDims ); + Position( int iDims, int iX, ...); + Position( const Position &rhs ); + virtual ~Position(); + + int operator[]( int iIdx ) const; + int &operator[]( int iIdx ); + Position &operator=( const Position &rhs ); + + int getDims() const; + +private: + int iDims; + int *aiValues; +}; + +#endif -- cgit v1.2.3