Matrix3DStack.h 368 B

1234567891011121314151617181920212223
  1. #ifndef MATRIX3DSTACK_H
  2. #define MATRIX3DSTACK_H
  3. #include "Matrix3D.h"
  4. class Matrix3DStack
  5. {
  6. public:
  7. Matrix3DStack();
  8. Matrix3DStack(const Matrix3DStack& orig);
  9. virtual ~Matrix3DStack();
  10. void pop();
  11. void push();
  12. Matrix3D& get();
  13. private:
  14. static const int STACK_SIZE = 10;
  15. Matrix3D stack[STACK_SIZE];
  16. int index = 0;
  17. };
  18. #endif