IBR-DTNSuite
0.12
Main Page
Namespaces
Classes
Files
File List
File Members
IBR-DTNSuite
Namespaces
Classes
Files
File List
daemon
ibrcommon
ibrdtn
ibrdtn
api
data
AdministrativeBlock.cpp
AdministrativeBlock.h
AgeBlock.cpp
AgeBlock.h
Block.cpp
Block.h
Bundle.cpp
Bundle.h
BundleBuilder.cpp
BundleBuilder.h
BundleFragment.cpp
BundleFragment.h
BundleID.cpp
BundleID.h
BundleList.cpp
BundleList.h
BundleMerger.cpp
BundleMerger.h
BundleSet.cpp
BundleSet.h
BundleSetImpl.cpp
BundleSetImpl.h
BundleString.cpp
BundleString.h
CompressedPayloadBlock.cpp
CompressedPayloadBlock.h
CustodySignalBlock.cpp
CustodySignalBlock.h
Dictionary.cpp
Dictionary.h
DTNTime.cpp
DTNTime.h
EID.cpp
EID.h
Endianess.cpp
Endianess.h
Exceptions.h
ExtensionBlock.cpp
ExtensionBlock.h
MemoryBundleSet.cpp
MemoryBundleSet.h
MetaBundle.cpp
MetaBundle.h
Number.h
PayloadBlock.cpp
PayloadBlock.h
PrimaryBlock.cpp
PrimaryBlock.h
SchedulingBlock.cpp
SchedulingBlock.h
ScopeControlHopLimitBlock.cpp
ScopeControlHopLimitBlock.h
SDNV.cpp
SDNV.h
Serializer.cpp
Serializer.h
StatusReportBlock.cpp
StatusReportBlock.h
StreamBlock.cpp
StreamBlock.h
TrackingBlock.cpp
TrackingBlock.h
security
streams
utils
config.h
dummy.cpp
ibrdtn.h
tools
File Members
BundleSetImpl.cpp
Go to the documentation of this file.
1
/*
2
* BundleSetImpl.cpp
3
*
4
* Copyright (C) 2013 IBR, TU Braunschweig
5
*
6
* Written-by: David Goltzsche <goltzsch@ibr.cs.tu-bs.de>
7
* Written-by: Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>
8
*
9
* Licensed under the Apache License, Version 2.0 (the "License");
10
* you may not use this file except in compliance with the License.
11
* You may obtain a copy of the License at
12
*
13
* http://www.apache.org/licenses/LICENSE-2.0
14
*
15
* Unless required by applicable law or agreed to in writing, software
16
* distributed under the License is distributed on an "AS IS" BASIS,
17
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
* See the License for the specific language governing permissions and
19
* limitations under the License.
20
*
21
* Created on: Apr 5, 2013
22
*
23
* only implements destructor
24
*/
25
26
#include "
ibrdtn/data/BundleSetImpl.h
"
27
28
namespace
dtn
29
{
30
namespace
data
31
{
32
BundleSetImpl::~BundleSetImpl
()
33
{
34
}
35
36
BundleSetImpl::ExpiringBundle::ExpiringBundle
(
const
MetaBundle
&b)
37
: bundle(b)
38
{
39
}
40
41
BundleSetImpl::ExpiringBundle::~ExpiringBundle
()
42
{
43
}
44
45
bool
BundleSetImpl::ExpiringBundle::operator!=
(
const
ExpiringBundle
& other)
const
46
{
47
return
!(other == *
this
);
48
}
49
50
bool
BundleSetImpl::ExpiringBundle::operator==
(
const
ExpiringBundle
& other)
const
51
{
52
return
(other.
bundle
== this->bundle);
53
}
54
55
bool
BundleSetImpl::ExpiringBundle::operator<
(
const
ExpiringBundle
& other)
const
56
{
57
if
(bundle.expiretime < other.
bundle
.
expiretime
)
return
true
;
58
if
(bundle.expiretime != other.
bundle
.
expiretime
)
return
false
;
59
60
if
(bundle < other.
bundle
)
return
true
;
61
62
return
false
;
63
}
64
65
bool
BundleSetImpl::ExpiringBundle::operator>
(
const
ExpiringBundle
& other)
const
66
{
67
return
!(((*this) < other) || ((*
this
) == other));
68
}
69
}
70
}
ibrdtn
ibrdtn
data
BundleSetImpl.cpp
Generated on Thu Mar 27 2014 09:26:21 for IBR-DTNSuite by
1.8.4