22 #ifndef NDN_CXX_LP_FIELD_HPP
23 #define NDN_CXX_LP_FIELD_HPP
25 #include "../common.hpp"
26 #include "../encoding/encoding-buffer.hpp"
28 #include <boost/concept/assert.hpp>
29 #include <boost/concept/usage.hpp>
30 #include <boost/type_traits.hpp>
38 namespace field_location_tags {
66 BOOST_CONCEPT_ASSERT((boost::is_base_of<field_location_tags::Base, typename X::FieldLocation>));
67 BOOST_CONCEPT_ASSERT((boost::DefaultConstructible<typename X::ValueType>));
68 BOOST_CONCEPT_ASSERT((boost::CopyConstructible<typename X::ValueType>));
69 BOOST_CONCEPT_ASSERT((boost::is_same<typename X::TlvType::value_type, uint64_t>));
70 BOOST_CONCEPT_ASSERT((boost::is_same<typename X::IsRepeatable::value_type, bool>));
75 typename X::ValueType decoded = j.decode(wire);
77 j.encode(enc, decoded);
84 #endif // NDN_CXX_LP_FIELD_HPP
Copyright (c) 2013-2016 Regents of the University of California.
Class representing a wire element of NDN-TLV packet format.
BOOST_CONCEPT_USAGE(Field)
EncodingImpl< EncoderTag > EncodingBuffer