NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
fields.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2013-2019 Regents of the University of California.
4  *
5  * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
6  *
7  * ndn-cxx library is free software: you can redistribute it and/or modify it under the
8  * terms of the GNU Lesser General Public License as published by the Free Software
9  * Foundation, either version 3 of the License, or (at your option) any later version.
10  *
11  * ndn-cxx library is distributed in the hope that it will be useful, but WITHOUT ANY
12  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13  * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
14  *
15  * You should have received copies of the GNU General Public License and GNU Lesser
16  * General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see
17  * <http://www.gnu.org/licenses/>.
18  *
19  * See AUTHORS.md for complete list of ndn-cxx authors and contributors.
20  */
21 
22 #ifndef NDN_CXX_LP_FIELDS_HPP
23 #define NDN_CXX_LP_FIELDS_HPP
24 
26 
28 #include "ndn-cxx/lp/geo-tag.hpp"
31 
32 #include <boost/mpl/set.hpp>
33 
34 namespace ndn {
35 namespace lp {
36 
37 typedef FieldDecl<field_location_tags::Header,
38  Sequence,
40 BOOST_CONCEPT_ASSERT((Field<SequenceField>));
41 
42 typedef FieldDecl<field_location_tags::Header,
43  uint64_t,
45  false,
46  NonNegativeIntegerTag,
47  NonNegativeIntegerTag> FragIndexField;
48 BOOST_CONCEPT_ASSERT((Field<FragIndexField>));
49 
50 typedef FieldDecl<field_location_tags::Header,
51  uint64_t,
53  false,
54  NonNegativeIntegerTag,
55  NonNegativeIntegerTag> FragCountField;
56 BOOST_CONCEPT_ASSERT((Field<FragCountField>));
57 
58 typedef FieldDecl<field_location_tags::Header,
59  std::pair<Buffer::const_iterator, Buffer::const_iterator>,
61 BOOST_CONCEPT_ASSERT((Field<PitTokenField>));
62 
63 typedef FieldDecl<field_location_tags::Header,
64  NackHeader,
66 BOOST_CONCEPT_ASSERT((Field<NackField>));
67 
68 typedef FieldDecl<field_location_tags::Header,
69  uint64_t,
71  false,
72  NonNegativeIntegerTag,
73  NonNegativeIntegerTag> NextHopFaceIdField;
74 BOOST_CONCEPT_ASSERT((Field<NextHopFaceIdField>));
75 
76 typedef FieldDecl<field_location_tags::Header,
79 BOOST_CONCEPT_ASSERT((Field<CachePolicyField>));
80 
81 typedef FieldDecl<field_location_tags::Header,
82  uint64_t,
84  false,
85  NonNegativeIntegerTag,
86  NonNegativeIntegerTag> IncomingFaceIdField;
87 BOOST_CONCEPT_ASSERT((Field<IncomingFaceIdField>));
88 
89 typedef FieldDecl<field_location_tags::Header,
90  uint64_t,
92  false,
93  NonNegativeIntegerTag,
94  NonNegativeIntegerTag> CongestionMarkField;
95 BOOST_CONCEPT_ASSERT((Field<CongestionMarkField>));
96 
97 typedef FieldDecl<field_location_tags::Header,
98  Sequence,
99  tlv::Ack,
100  true> AckField;
101 BOOST_CONCEPT_ASSERT((Field<AckField>));
102 
103 typedef FieldDecl<field_location_tags::Header,
104  Sequence,
106 BOOST_CONCEPT_ASSERT((Field<TxSequenceField>));
107 
108 typedef FieldDecl<field_location_tags::Header,
109  EmptyValue,
111 BOOST_CONCEPT_ASSERT((Field<NonDiscoveryField>));
112 
113 typedef FieldDecl<field_location_tags::Header,
116 BOOST_CONCEPT_ASSERT((Field<PrefixAnnouncementField>));
117 
118 typedef FieldDecl<field_location_tags::Header,
119  uint16_t,
121  false,
122  NonNegativeIntegerTag,
123  NonNegativeIntegerTag> HopCountTagField;
124 BOOST_CONCEPT_ASSERT((Field<HopCountTagField>));
125 
126 typedef FieldDecl<field_location_tags::Header,
127  GeoTag,
129 BOOST_CONCEPT_ASSERT((Field<GeoTagField>));
130 
137  std::pair<Buffer::const_iterator, Buffer::const_iterator>,
139 BOOST_CONCEPT_ASSERT((Field<FragmentField>));
140 
143 typedef boost::mpl::set<
149  NackField,
154  AckField,
159  GeoTagField
161 
162 } // namespace lp
163 } // namespace ndn
164 
165 #endif // NDN_CXX_LP_FIELDS_HPP
FieldDecl< field_location_tags::Header, uint64_t, tlv::CongestionMark, false, NonNegativeIntegerTag, NonNegativeIntegerTag > CongestionMarkField
Definition: fields.hpp:94
FieldDecl< field_location_tags::Header, GeoTag, tlv::GeoTag > GeoTagField
Definition: fields.hpp:128
Copyright (c) 2011-2015 Regents of the University of California.
FieldDecl< field_location_tags::Header, uint64_t, tlv::FragCount, false, NonNegativeIntegerTag, NonNegativeIntegerTag > FragCountField
Definition: fields.hpp:55
FieldDecl< field_location_tags::Header, uint64_t, tlv::NextHopFaceId, false, NonNegativeIntegerTag, NonNegativeIntegerTag > NextHopFaceIdField
Definition: fields.hpp:73
FieldDecl< field_location_tags::Header, uint16_t, tlv::HopCountTag, false, NonNegativeIntegerTag, NonNegativeIntegerTag > HopCountTagField
Definition: fields.hpp:123
FieldDecl< field_location_tags::Header, uint64_t, tlv::IncomingFaceId, false, NonNegativeIntegerTag, NonNegativeIntegerTag > IncomingFaceIdField
Definition: fields.hpp:86
FieldDecl< field_location_tags::Header, EmptyValue, tlv::NonDiscovery > NonDiscoveryField
Definition: fields.hpp:110
uint64_t Sequence
represents a sequence number
Definition: sequence.hpp:35
FieldDecl< field_location_tags::Header, std::pair< Buffer::const_iterator, Buffer::const_iterator >, tlv::PitToken > PitTokenField
Definition: fields.hpp:60
FieldDecl< field_location_tags::Header, Sequence, tlv::Ack, true > AckField
Definition: fields.hpp:100
FieldDecl< field_location_tags::Header, Sequence, tlv::TxSequence > TxSequenceField
Definition: fields.hpp:105
Declare a field.
Definition: field-decl.hpp:176
represents a PrefixAnnouncement header field in NDNLP
concept check for fields
Definition: field.hpp:61
FieldDecl< field_location_tags::Header, PrefixAnnouncementHeader, tlv::PrefixAnnouncement > PrefixAnnouncementField
Definition: fields.hpp:115
boost::mpl::set< FragmentField, SequenceField, FragIndexField, FragCountField, PitTokenField, NackField, NextHopFaceIdField, IncomingFaceIdField, CachePolicyField, CongestionMarkField, AckField, TxSequenceField, NonDiscoveryField, PrefixAnnouncementField, HopCountTagField, GeoTagField > FieldSet
Set of all field declarations.
Definition: fields.hpp:160
FieldDecl< field_location_tags::Header, uint64_t, tlv::FragIndex, false, NonNegativeIntegerTag, NonNegativeIntegerTag > FragIndexField
Definition: fields.hpp:47
represents a zero-length TLV-VALUE
Definition: empty-value.hpp:33
FieldDecl< field_location_tags::Header, NackHeader, tlv::Nack > NackField
Definition: fields.hpp:65
FieldDecl< field_location_tags::Header, Sequence, tlv::Sequence > SequenceField
Definition: fields.hpp:39
represents a Network NACK header
Definition: nack-header.hpp:57
FieldDecl< field_location_tags::Header, CachePolicy, tlv::CachePolicy > CachePolicyField
Definition: fields.hpp:78
FieldDecl< field_location_tags::Fragment, std::pair< Buffer::const_iterator, Buffer::const_iterator >, tlv::Fragment > FragmentField
Declare the Fragment field.
Definition: fields.hpp:138