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