MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
JPPVValuePair.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _JPPVVALUEPAIR_H_
30
#define _JPPVVALUEPAIR_H_ 1
31
32
/* the include directives */
33
#include <iostream>
34
#include "
Globals.h
"
35
#include "
JointPolicyValuePair.h
"
36
37
class
JointPolicyPureVector
;
38
class
JointPolicyDiscretePure
;
39
40
43
class
JPPVValuePair
:
public
JointPolicyValuePair
44
{
45
private
:
46
47
JointPolicyPureVector
*
_m_jpol
;
48
49
protected
:
50
51
public
:
52
// Constructor, destructor and copy assignment.
53
54
JPPVValuePair
(
JointPolicyPureVector
* jp,
double
value);
55
JPPVValuePair
(
JointPolicyPureVector
& jp,
double
value);
56
58
~JPPVValuePair
();
59
60
JointPolicyDiscretePure
*
GetJPol
()
61
{
62
//we want to inherit from JPolValuePair, but this class is not a real
63
//PolicyPoolItem...
64
throw
E
(
"JPPVValuePair::GetJPol should not be called!"
);
65
return
(0);
66
}
67
JointPolicyPureVector
*
GetJPPV
()
68
{
return
(
_m_jpol
);}
69
70
std::string
SoftPrint
()
const
;
71
std::string
SoftPrintBrief
()
const
;
72
};
73
74
75
namespace
std{
78
template
<>
79
struct
less<
JPPVValuePair
* >
//struct, so operator() is public by def.
80
{
81
bool
operator()(
const
JPPVValuePair
* x,
const
JPPVValuePair
* y)
const
82
{
83
//cout << "specialized less<JPPVValuePair> called!"<<endl;
84
return
( x->
GetValue
() < y->
GetValue
() );
85
}
86
87
};
88
}
89
90
91
#endif
/* !_JPPVVALUEPAIR_H_ */
92
93
// Local Variables: ***
94
// mode:c++ ***
95
// End: ***
src
planning
JPPVValuePair.h
Generated on Mon Sep 23 2013 14:50:05 for MultiAgentDecisionProcess by
1.8.1.2