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-2018 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 
30 
31 #include <boost/mpl/set.hpp>
32 
33 namespace ndn {
34 namespace lp {
35 
36 typedef FieldDecl<field_location_tags::Header,
37  Sequence,
39 BOOST_CONCEPT_ASSERT((Field<SequenceField>));
40 
42  uint64_t,
44  false,
45  NonNegativeIntegerTag,
46  NonNegativeIntegerTag> FragIndexField;
47 BOOST_CONCEPT_ASSERT((Field<FragIndexField>));
48 
50  uint64_t,
52  false,
53  NonNegativeIntegerTag,
54  NonNegativeIntegerTag> FragCountField;
55 BOOST_CONCEPT_ASSERT((Field<FragCountField>));
56 
58  NackHeader,
60 BOOST_CONCEPT_ASSERT((Field<NackField>));
61 
63  uint64_t,
65  false,
66  NonNegativeIntegerTag,
67  NonNegativeIntegerTag> NextHopFaceIdField;
68 BOOST_CONCEPT_ASSERT((Field<NextHopFaceIdField>));
69 
73 BOOST_CONCEPT_ASSERT((Field<CachePolicyField>));
74 
76  uint64_t,
78  false,
79  NonNegativeIntegerTag,
80  NonNegativeIntegerTag> IncomingFaceIdField;
81 BOOST_CONCEPT_ASSERT((Field<IncomingFaceIdField>));
82 
84  uint64_t,
86  false,
87  NonNegativeIntegerTag,
88  NonNegativeIntegerTag> CongestionMarkField;
89 BOOST_CONCEPT_ASSERT((Field<CongestionMarkField>));
90 
92  Sequence,
93  tlv::Ack,
94  true> AckField;
95 BOOST_CONCEPT_ASSERT((Field<AckField>));
96 
98  Sequence,
100 BOOST_CONCEPT_ASSERT((Field<TxSequenceField>));
101 
103  EmptyValue,
105 BOOST_CONCEPT_ASSERT((Field<NonDiscoveryField>));
106 
110 BOOST_CONCEPT_ASSERT((Field<PrefixAnnouncementField>));
111 
113  uint64_t,
115 BOOST_CONCEPT_ASSERT((Field<HopCountTagField>));
116 
123  std::pair<Buffer::const_iterator, Buffer::const_iterator>,
125 BOOST_CONCEPT_ASSERT((Field<FragmentField>));
126 
129 typedef boost::mpl::set<
134  NackField,
139  AckField,
145 
146 } // namespace lp
147 } // namespace ndn
148 
149 #endif // NDN_CXX_LP_FIELDS_HPP
FieldDecl< field_location_tags::Header, uint64_t, tlv::CongestionMark, false, NonNegativeIntegerTag, NonNegativeIntegerTag > CongestionMarkField
Definition: fields.hpp:88
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:54
FieldDecl< field_location_tags::Header, uint64_t, tlv::NextHopFaceId, false, NonNegativeIntegerTag, NonNegativeIntegerTag > NextHopFaceIdField
Definition: fields.hpp:67
FieldDecl< field_location_tags::Header, uint64_t, tlv::IncomingFaceId, false, NonNegativeIntegerTag, NonNegativeIntegerTag > IncomingFaceIdField
Definition: fields.hpp:80
FieldDecl< field_location_tags::Header, EmptyValue, tlv::NonDiscovery > NonDiscoveryField
Definition: fields.hpp:104
uint64_t Sequence
represents a sequence number
Definition: sequence.hpp:35
FieldDecl< field_location_tags::Header, Sequence, tlv::Ack, true > AckField
Definition: fields.hpp:94
FieldDecl< field_location_tags::Header, Sequence, tlv::TxSequence > TxSequenceField
Definition: fields.hpp:99
Declare a field.
Definition: field-decl.hpp:181
FieldDecl< field_location_tags::Header, uint64_t, tlv::HopCountTag > HopCountTagField
Definition: fields.hpp:114
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:109
FieldDecl< field_location_tags::Header, uint64_t, tlv::FragIndex, false, NonNegativeIntegerTag, NonNegativeIntegerTag > FragIndexField
Definition: fields.hpp:46
represents a zero-length TLV-VALUE
Definition: empty-value.hpp:33
boost::mpl::set< FragmentField, SequenceField, FragIndexField, FragCountField, NackField, NextHopFaceIdField, CachePolicyField, IncomingFaceIdField, CongestionMarkField, AckField, TxSequenceField, NonDiscoveryField, PrefixAnnouncementField, HopCountTagField > FieldSet
Set of all field declarations.
Definition: fields.hpp:144
FieldDecl< field_location_tags::Header, NackHeader, tlv::Nack > NackField
Definition: fields.hpp:59
FieldDecl< field_location_tags::Header, Sequence, tlv::Sequence > SequenceField
Definition: fields.hpp:38
represents a Network NACK header
Definition: nack-header.hpp:57
FieldDecl< field_location_tags::Header, CachePolicy, tlv::CachePolicy > CachePolicyField
Definition: fields.hpp:72
FieldDecl< field_location_tags::Fragment, std::pair< Buffer::const_iterator, Buffer::const_iterator >, tlv::Fragment > FragmentField
Declare the Fragment field.
Definition: fields.hpp:124