2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
15 \brief TLVParser inline template implementation */
19 #define prefix_ inline
20 //-/////////////////////////////////////////////////////////////////////////////////////////////////
22 //-/////////////////////////////////////////////////////////////////////////////////////////////////
23 // senf::MIHFIdTLVParser::binaryNAIEncoder<OutputIterator>
25 template <class OutputIterator>
26 prefix_ senf::MIHFIdTLVParser::binaryNAIEncoder<OutputIterator>::binaryNAIEncoder(OutputIterator & i)
30 template <class OutputIterator>
31 prefix_ void senf::MIHFIdTLVParser::binaryNAIEncoder<OutputIterator>::operator()(boost::uint8_t v)
37 //-/////////////////////////////////////////////////////////////////////////////////////////////////
38 // senf::MIHFIdTLVParser
40 template <class OutputIterator>
41 prefix_ boost::function_output_iterator<senf::MIHFIdTLVParser::binaryNAIEncoder<OutputIterator> >
42 senf::MIHFIdTLVParser::getNAIEncodedOutputIterator(OutputIterator & i)
44 return boost::make_function_output_iterator(binaryNAIEncoder<OutputIterator>(i));
47 template <class Iterator>
48 prefix_ boost::filter_iterator<senf::MIHFIdTLVParser::binaryNAIDecoder, Iterator>
49 senf::MIHFIdTLVParser::getNAIDecodedIterator(Iterator begin, Iterator end)
51 return boost::make_filter_iterator<binaryNAIDecoder>(begin, end);
55 //-/////////////////////////////////////////////////////////////////////////////////////////////////
63 // c-file-style: "senf"
64 // indent-tabs-mode: nil
65 // ispell-local-dictionary: "american"
66 // compile-command: "scons -u test"