NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
h
i
k
l
n
o
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
f
i
k
l
n
p
q
r
s
t
u
+
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Enumerations
_
a
c
e
i
r
s
t
v
+
Enumerator
a
c
d
e
f
i
k
l
m
n
p
r
s
u
v
w
+
Related Functions
b
c
d
e
f
g
i
k
l
m
n
o
p
s
v
+
Files
File List
+
File Members
+
All
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
f
g
i
k
l
m
n
p
r
s
t
Typedefs
+
Macros
a
d
e
f
i
l
m
n
o
p
r
s
u
v
▼
ndnSIM
ndnSIM documentation
All Attributes
All GlobalValues
All LogComponents
All TraceSources
Todo List
Deprecated List
Bug List
►
Modules
►
Namespaces
►
Classes
▼
Files
►
File List
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
batches.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#ifndef _BATCHES_H_
21
#define _BATCHES_H_
22
23
#include "ns3/attribute.h"
24
#include "ns3/attribute-helper.h"
25
#include "ns3/nstime.h"
26
#include <list>
27
#include <tuple>
28
29
namespace
ns3
{
30
36
class
Batches
:
public
std::list<std::tuple<Time, uint32_t>> {
37
public
:
41
Batches
(){};
42
48
void
49
Add
(
const
Time& when, uint32_t amount)
50
{
51
push_back(std::make_tuple(when, amount));
52
}
53
};
54
55
ATTRIBUTE_HELPER_HEADER(
Batches
);
56
62
std::ostream&
63
operator<<
(std::ostream& os,
const
Batches
& batch);
64
69
std::istream&
70
operator>>
(std::istream& is,
Batches
& batch);
71
72
}
// namespace ns3
73
74
#endif // _BATCHES_H_
ns3::operator<<
std::ostream & operator<<(std::ostream &os, const Batches &batch)
Output contents of the Batches to the std::ostream.
Definition:
batches.cpp:27
ns3::Batches::Add
void Add(const Time &when, uint32_t amount)
Add tuple.
Definition:
batches.hpp:49
ns3::Batches
Class representing sets of (time, number) tuples with support of reading writing to streams.
Definition:
batches.hpp:36
ns3::operator>>
std::istream & operator>>(std::istream &is, Batches &batch)
Read components from input and add them to components.
Definition:
batches.cpp:40
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
ns3::Batches::Batches
Batches()
Default constructor.
Definition:
batches.hpp:41
ndnSIM
utils
batches.hpp
Generated on Sun Feb 24 2019 22:16:07 for ndnSIM by
1.8.15