IBR-DTNSuite
0.12
Main Page
Namespaces
Classes
Files
File List
File Members
NeighborDataset.cpp
Go to the documentation of this file.
1
/*
2
* NeighborDataset.cpp
3
*
4
* Created on: 08.01.2013
5
* Author: morgenro
6
*/
7
8
#include "
routing/NeighborDataset.h
"
9
10
namespace
dtn
11
{
12
namespace
routing
13
{
14
NeighborDataSetImpl::NeighborDataSetImpl
(
const
dtn::data::Number
&
id
)
15
: _dataset_id(id)
16
{
17
}
18
19
NeighborDataSetImpl::~NeighborDataSetImpl
()
20
{
21
}
22
23
NeighborDataset::NeighborDataset
(
const
dtn::data::Number
&
id
)
24
: _impl(new Empty(id))
25
{
26
}
27
28
NeighborDataset::NeighborDataset
(
NeighborDataSetImpl
*impl)
29
: _impl(impl)
30
{ }
31
32
NeighborDataset::~NeighborDataset
()
33
{ }
34
35
bool
NeighborDataset::operator==
(
const
NeighborDataset
&obj)
const
36
{
37
return
(obj.
getId
() ==
getId
());
38
}
39
40
bool
NeighborDataset::operator<
(
const
NeighborDataset
&obj)
const
41
{
42
return
(
getId
() < obj.
getId
());
43
}
44
45
bool
NeighborDataset::operator>
(
const
NeighborDataset
&obj)
const
46
{
47
return
(
getId
() > obj.
getId
());
48
}
49
50
bool
NeighborDataset::operator==
(
const
dtn::data::Number
&obj)
const
51
{
52
return
(obj ==
getId
());
53
}
54
55
bool
NeighborDataset::operator<
(
const
dtn::data::Number
&obj)
const
56
{
57
return
(
getId
() < obj);
58
}
59
60
bool
NeighborDataset::operator>
(
const
dtn::data::Number
&obj)
const
61
{
62
return
(
getId
() > obj);
63
}
64
65
const
dtn::data::Number
&
NeighborDataset::getId
()
const
66
{
67
return
_impl->_dataset_id;
68
}
69
70
NeighborDataSetImpl
&
NeighborDataset::operator*
()
71
{
72
return
_impl.operator*();
73
}
74
75
const
NeighborDataSetImpl
&
NeighborDataset::operator*
()
const
76
{
77
return
_impl.operator*();
78
}
79
}
/* namespace routing */
80
}
/* namespace dtn */
daemon
src
routing
NeighborDataset.cpp
Generated on Thu Mar 27 2014 09:26:20 for IBR-DTNSuite by
1.8.4