Junxiao Shi | a4c5048 | 2014-12-04 12:40:49 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
Davide Pesavento | 74daf74 | 2018-11-23 18:14:13 -0500 | [diff] [blame] | 2 | /* |
Davide Pesavento | 47ce2ee | 2023-05-09 01:33:33 -0400 | [diff] [blame] | 3 | * Copyright (c) 2014-2023 Regents of the University of California, |
Spyridon Mastorakis | 429634f | 2015-02-19 17:35:33 -0800 | [diff] [blame] | 4 | * Arizona Board of Regents, |
| 5 | * Colorado State University, |
| 6 | * University Pierre & Marie Curie, Sorbonne University, |
| 7 | * Washington University in St. Louis, |
| 8 | * Beijing Institute of Technology, |
| 9 | * The University of Memphis. |
Junxiao Shi | a4c5048 | 2014-12-04 12:40:49 -0700 | [diff] [blame] | 10 | * |
| 11 | * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions). |
| 12 | * |
| 13 | * ndn-cxx library is free software: you can redistribute it and/or modify it under the |
| 14 | * terms of the GNU Lesser General Public License as published by the Free Software |
| 15 | * Foundation, either version 3 of the License, or (at your option) any later version. |
| 16 | * |
| 17 | * ndn-cxx library is distributed in the hope that it will be useful, but WITHOUT ANY |
| 18 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 19 | * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
| 20 | * |
| 21 | * You should have received copies of the GNU General Public License and GNU Lesser |
| 22 | * General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see |
| 23 | * <http://www.gnu.org/licenses/>. |
| 24 | * |
| 25 | * See AUTHORS.md for complete list of ndn-cxx authors and contributors. |
| 26 | */ |
| 27 | |
Davide Pesavento | 7e78064 | 2018-11-24 15:51:34 -0500 | [diff] [blame] | 28 | #include "ndn-cxx/util/concepts.hpp" |
Junxiao Shi | a4c5048 | 2014-12-04 12:40:49 -0700 | [diff] [blame] | 29 | |
Davide Pesavento | 47ce2ee | 2023-05-09 01:33:33 -0400 | [diff] [blame] | 30 | namespace ndn::tests { |
Junxiao Shi | a4c5048 | 2014-12-04 12:40:49 -0700 | [diff] [blame] | 31 | |
| 32 | class WireEncodableType |
| 33 | { |
| 34 | public: |
| 35 | const Block& |
| 36 | wireEncode(); |
| 37 | }; |
| 38 | BOOST_CONCEPT_ASSERT((WireEncodable<WireEncodableType>)); |
| 39 | |
| 40 | class WireEncodableType2 |
| 41 | { |
| 42 | public: |
| 43 | Block |
| 44 | wireEncode(); |
| 45 | }; |
| 46 | BOOST_CONCEPT_ASSERT((WireEncodable<WireEncodableType2>)); |
| 47 | |
| 48 | class WireDecodableType |
| 49 | { |
| 50 | public: |
| 51 | explicit |
| 52 | WireDecodableType(const Block& wire); |
| 53 | |
| 54 | void |
| 55 | wireDecode(const Block& wire); |
| 56 | }; |
| 57 | BOOST_CONCEPT_ASSERT((WireDecodable<WireDecodableType>)); |
| 58 | |
Davide Pesavento | 47ce2ee | 2023-05-09 01:33:33 -0400 | [diff] [blame] | 59 | } // namespace ndn::tests |