Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/icl/concept/joinable.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 /*-----------------------------------------------------------------------------+ |
Chris@16 | 2 Copyright (c) 2010-2010: Joachim Faulhaber |
Chris@16 | 3 +------------------------------------------------------------------------------+ |
Chris@16 | 4 Distributed under the Boost Software License, Version 1.0. |
Chris@16 | 5 (See accompanying file LICENCE.txt or copy at |
Chris@16 | 6 http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 7 +-----------------------------------------------------------------------------*/ |
Chris@16 | 8 #ifndef BOOST_ICL_CONCEPT_JOINABLE_HPP_JOFA_100920 |
Chris@16 | 9 #define BOOST_ICL_CONCEPT_JOINABLE_HPP_JOFA_100920 |
Chris@16 | 10 |
Chris@16 | 11 #include <boost/icl/type_traits/is_interval_container.hpp> |
Chris@16 | 12 #include <boost/icl/concept/interval.hpp> |
Chris@16 | 13 |
Chris@16 | 14 namespace boost{ namespace icl |
Chris@16 | 15 { |
Chris@16 | 16 |
Chris@16 | 17 namespace segmental |
Chris@16 | 18 { |
Chris@16 | 19 template<class Type> |
Chris@16 | 20 typename enable_if<is_interval_set<Type>, bool>::type |
Chris@16 | 21 is_joinable(typename Type::iterator it_, typename Type::iterator next_, Type* = 0) |
Chris@16 | 22 { |
Chris@16 | 23 return touches(*it_, *next_); |
Chris@16 | 24 } |
Chris@16 | 25 |
Chris@16 | 26 template<class Type> |
Chris@16 | 27 typename enable_if<is_interval_map<Type>, bool>::type |
Chris@16 | 28 is_joinable(typename Type::iterator it_, typename Type::iterator next_, Type* = 0) |
Chris@16 | 29 { |
Chris@16 | 30 return touches((*it_).first, (*next_).first) |
Chris@16 | 31 && (*it_).second == (*next_).second ; |
Chris@16 | 32 } |
Chris@16 | 33 } |
Chris@16 | 34 |
Chris@16 | 35 |
Chris@16 | 36 |
Chris@16 | 37 }} // namespace boost icl |
Chris@16 | 38 |
Chris@16 | 39 #endif |
Chris@16 | 40 |
Chris@16 | 41 |