MultiAgentDecisionProcess  Release 0.2.1
ObservationHistoryTree.h
Go to the documentation of this file.
1 
28 /* Only include this header file once. */
29 #ifndef _OBSERVATIONHISTORYTREE_H_
30 #define _OBSERVATIONHISTORYTREE_H_ 1
31 
32 /* the include directives */
33 #include "ObservationHistory.h"
34 #include "TreeNode.h"
35 
37 
46 class ObservationHistoryTree : public TreeNode <ObservationHistory>
47 {
48  private:
49 
50  protected:
51 
52  public:
53  // Constructor, destructor and copy assignment.
57  {}
61  {}
62 
63  //operators:
64 
65  //data manipulation (set) functions:
66 
67  //get (data) functions:
69  size_t GetLength() const
70  {
71  return(
72  (GetContainedElement()!=0)?
74  throw E("_m_jObsHist undefined!")
75  );
76  };
78  {return GetContainedElement();}
79 
81  {return (ObservationHistoryTree*) //we know we only put pointers
82  //to ObservationHistoryTree's in here.
84 
86  {return (ObservationHistoryTree*) //we know we only put pointers
87  //to ObservationHistoryTree's in here.
89 
90 };
91 
92 
93 #endif /* !_OBSERVATIONHISTORYTREE_H_ */
94 
95 
96 // Local Variables: ***
97 // mode:c++ ***
98 // End: ***