MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
DiscreteEntity.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _DISCRETEENTITY_H_
30
#define _DISCRETEENTITY_H_ 1
31
32
/* the include directives */
33
#include <iostream>
34
#include "
Globals.h
"
35
37
40
class
DiscreteEntity
41
{
42
private
:
43
44
protected
:
45
47
Index
_m_index
;
48
49
public
:
50
// Constructor, destructor and copy assignment.
52
DiscreteEntity
(
Index
i) :
_m_index
(i){}
53
55
virtual
~DiscreteEntity
(){}
56
58
Index
GetIndex
()
const
{
return
(
_m_index
); }
59
61
void
SetIndex
(
Index
i) {
_m_index
=i; }
62
64
bool
operator<
(
const
DiscreteEntity
& a)
const
{
65
return
(
_m_index
< a.
_m_index
);}
66
67
};
68
69
70
#endif
/* !_DISCRETEENTITY_H_ */
71
72
// Local Variables: ***
73
// mode:c++ ***
74
// End: ***
src
base
DiscreteEntity.h
Generated on Mon Sep 23 2013 14:50:05 for MultiAgentDecisionProcess by
1.8.1.2