NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: 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; -*- */
22 #ifndef NDN_CXX_LP_FIELDS_HPP
23 #define NDN_CXX_LP_FIELDS_HPP
24 
25 #include "../common.hpp"
26 
27 #include "tlv.hpp"
28 #include "detail/field-decl.hpp"
29 #include "field.hpp"
30 
31 #include <boost/mpl/set.hpp>
32 
33 namespace ndn {
34 namespace lp {
35 
36 typedef detail::FieldDecl<field_location_tags::Header,
37  Sequence,
39 BOOST_CONCEPT_ASSERT((Field<SequenceField>));
40 
41 typedef detail::FieldDecl<field_location_tags::Header,
42  uint64_t,
44 BOOST_CONCEPT_ASSERT((Field<FragIndexField>));
45 
46 typedef detail::FieldDecl<field_location_tags::Header,
47  uint64_t,
49 BOOST_CONCEPT_ASSERT((Field<FragCountField>));
50 
51 typedef detail::FieldDecl<field_location_tags::Header,
52  NackHeader,
54 BOOST_CONCEPT_ASSERT((Field<NackField>));
55 
56 typedef detail::FieldDecl<field_location_tags::Header,
57  uint64_t,
59 BOOST_CONCEPT_ASSERT((Field<NextHopFaceIdField>));
60 
61 typedef detail::FieldDecl<field_location_tags::Header,
64 BOOST_CONCEPT_ASSERT((Field<CachePolicyField>));
65 
66 typedef detail::FieldDecl<field_location_tags::Header,
67  uint64_t,
69 BOOST_CONCEPT_ASSERT((Field<IncomingFaceIdField>));
70 
76  std::pair<Buffer::const_iterator, Buffer::const_iterator>,
78 BOOST_CONCEPT_ASSERT((Field<FragmentField>));
79 
83 typedef boost::mpl::set<
88  NackField,
91  IncomingFaceIdField
93 
94 } // namespace lp
95 } // namespace ndn
96 
97 #endif // NDN_CXX_LP_FIELDS_HPP
Copyright (c) 2011-2015 Regents of the University of California.
uint64_t Sequence
represents a sequence number
Definition: sequence.hpp:35
detail::FieldDecl< field_location_tags::Header, uint64_t, tlv::FragCount > FragCountField
Definition: fields.hpp:48
detail::FieldDecl< field_location_tags::Fragment, std::pair< Buffer::const_iterator, Buffer::const_iterator >, tlv::Fragment > FragmentField
The value of the wire encoded field is the data between the provided iterators.
Definition: fields.hpp:77
concept check for fields
Definition: field.hpp:62
boost::mpl::set< FragmentField, SequenceField, FragIndexField, FragCountField, NackField, NextHopFaceIdField, CachePolicyField, IncomingFaceIdField > FieldSet
set of all field declarations
Definition: fields.hpp:92
detail::FieldDecl< field_location_tags::Header, NackHeader, tlv::Nack > NackField
Definition: fields.hpp:53
detail::FieldDecl< field_location_tags::Header, CachePolicy, tlv::CachePolicy > CachePolicyField
Definition: fields.hpp:63
detail::FieldDecl< field_location_tags::Header, Sequence, tlv::Sequence > SequenceField
Definition: fields.hpp:38
detail::FieldDecl< field_location_tags::Header, uint64_t, tlv::FragIndex > FragIndexField
Definition: fields.hpp:43
detail::FieldDecl< field_location_tags::Header, uint64_t, tlv::IncomingFaceId > IncomingFaceIdField
Definition: fields.hpp:68
represents a Network NACK header
Definition: nack-header.hpp:52
detail::FieldDecl< field_location_tags::Header, uint64_t, tlv::NextHopFaceId > NextHopFaceIdField
Definition: fields.hpp:58