MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
BeliefIteratorGeneric.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _BELIEFITERATORGENERIC_H_
30
#define _BELIEFITERATORGENERIC_H_ 1
31
32
/* the include directives */
33
#include "
Globals.h
"
34
#include "
BeliefIteratorInterface.h
"
35
36
#define USE_BeliefIteratorGeneric 1
37
40
class
BeliefIteratorGeneric
41
{
42
private
:
43
44
BeliefIteratorInterface
*
_m_it
;
45
46
protected
:
47
48
public
:
49
// Constructor, destructor and copy assignment.
51
BeliefIteratorGeneric
(
BeliefIteratorInterface
*it) :
52
_m_it
(it)
53
{}
54
56
virtual
~BeliefIteratorGeneric
()
57
{
58
delete
(
_m_it
);
59
}
60
61
double
GetProbability
()
const
{
return
(
_m_it
->
GetProbability
()); }
62
Index
GetStateIndex
()
const
{
return
(
_m_it
->
GetStateIndex
()); }
63
bool
Next
()
const
{
return
(
_m_it
->
Next
()); }
64
65
};
66
67
68
#endif
/* !_BELIEFITERATORGENERIC_H_ */
69
70
// Local Variables: ***
71
// mode:c++ ***
72
// End: ***
src
support
BeliefIteratorGeneric.h
Generated on Mon Sep 23 2013 14:50:06 for MultiAgentDecisionProcess by
1.8.1.2