MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
JointPolicyValuePair.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _JOINTPOLICYVALUEPAIR_H_
30
#define _JOINTPOLICYVALUEPAIR_H_ 1
31
32
/* the include directives */
33
#include <iostream>
34
#include "
Globals.h
"
35
#include "
PolicyPoolItemInterface.h
"
36
47
class
JointPolicyValuePair
48
:
public
PolicyPoolItemInterface
49
{
50
private
:
51
double
_m_val
;
52
53
protected
:
54
public
:
56
JointPolicyValuePair
(
double
val)
57
{
58
_m_val
= val;
59
}
60
62
~JointPolicyValuePair
(){};
63
65
JointPolicyValuePair
&
operator=
(
const
JointPolicyValuePair
& o)
66
{
67
throw
E
(
"Assigning JointPolicyValuePair - but operator= not def'd"
);
68
}
69
70
double
GetValue
()
const
71
{
return
(
_m_val
);}
72
73
};
74
75
namespace
std{
78
template
<>
79
struct
less<
JointPolicyValuePair
* >
//struct, so operator() is public by def.
80
{
81
bool
operator()(
const
JointPolicyValuePair
* x,
const
JointPolicyValuePair
* y)
const
82
{
83
//cout << "specialized less<JointPolicyValuePair> called!"<<endl;
84
return
( x->
GetValue
() < y->
GetValue
() );
85
}
86
87
};
88
}
89
90
#endif
/* !_JPOLVALPAIR_H_ */
91
92
// Local Variables: ***
93
// mode:c++ ***
94
// End: ***
src
planning
JointPolicyValuePair.h
Generated on Mon Sep 23 2013 14:50:05 for MultiAgentDecisionProcess by
1.8.1.2