C++ main module for gpm Package  1.0
MATH_Block.h
Go to the documentation of this file.
1 #ifndef MATH_Block_H
2 #define MATH_Block_H
3 
4 #include "MATH_NodeExpression.h"
5 
19  SP_OBJECT(MATH_Block);
20 
21  // ATTRIBUTES
22 
23 private:
24  char mBlockString;
25 
26 protected:
27  // METHODS
28 
29  // CONSTRUCTORS
30 
33  MATH_Block(void);
34 
35 
36 
37  // DESTRUCTORS
38 
39 
42  virtual ~MATH_Block(void);
43 
44 
45 private:
46 
47 public:
48 
49 
50 
51 
52  // SET methods
53 
56  inline void setBlockString(const char& c) {
57  mBlockString=c;
58  }
59 
60 
61  // GET methods
64  virtual const char& getBlockString() const {
65  return mBlockString;
66  }
67 
68 public:
69  // OTHERS methods
72  virtual tBoolean isCompatible(const MATH_Block& block) const=0;
73 
74 };
75 
76 #endif
virtual const char & getBlockString() const
get the block expression character
Definition: MATH_Block.h:64
This class is a node of expression tree with is a parent and a child.
Definition: MATH_NodeExpression.h:18
#define tBoolean
Definition: types.h:35
MATH_Block(void)
create
Definition: MATH_Block.cpp:3
DEFINE_SPTR(MATH_Block)
void setBlockString(const char &c)
set the end block string
Definition: MATH_Block.h:56
virtual tBoolean isCompatible(const MATH_Block &block) const =0
return true if the two blocks are compatible
virtual ~MATH_Block(void)
destroy
Definition: MATH_Block.cpp:7
This class decribes a block.
Definition: MATH_Block.h:18