Added boost header
This commit is contained in:
32
test/external/boost/icl/predicates/distinct_equal.hpp
vendored
Normal file
32
test/external/boost/icl/predicates/distinct_equal.hpp
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/*-----------------------------------------------------------------------------+
|
||||
Copyright (c) 2010-2010: Joachim Faulhaber
|
||||
+------------------------------------------------------------------------------+
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENCE.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
+-----------------------------------------------------------------------------*/
|
||||
#ifndef BOOST_ICL_PREDICATES_DISTINCT_EQUAL_HPP_JOFA_101102
|
||||
#define BOOST_ICL_PREDICATES_DISTINCT_EQUAL_HPP_JOFA_101102
|
||||
|
||||
#include <boost/icl/type_traits/predicate.hpp>
|
||||
#include <boost/icl/type_traits/type_to_string.hpp>
|
||||
|
||||
namespace boost{namespace icl
|
||||
{
|
||||
template <class Type>
|
||||
struct distinct_equal : public relation<Type,Type>
|
||||
{
|
||||
bool operator()(const Type& lhs, const Type& rhs)const
|
||||
{
|
||||
return is_distinct_equal(lhs, rhs);
|
||||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
inline std::string unary_template_to_string<icl::distinct_equal>::apply()
|
||||
{ return "==/0"; }
|
||||
|
||||
}} // namespace icl boost
|
||||
|
||||
#endif
|
||||
|
||||
32
test/external/boost/icl/predicates/element_equal.hpp
vendored
Normal file
32
test/external/boost/icl/predicates/element_equal.hpp
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/*-----------------------------------------------------------------------------+
|
||||
Copyright (c) 2010-2010: Joachim Faulhaber
|
||||
+------------------------------------------------------------------------------+
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENCE.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
+-----------------------------------------------------------------------------*/
|
||||
#ifndef BOOST_ICL_PREDICATES_ELEMENT_EQUAL_HPP_JOFA_101102
|
||||
#define BOOST_ICL_PREDICATES_ELEMENT_EQUAL_HPP_JOFA_101102
|
||||
|
||||
#include <boost/icl/type_traits/predicate.hpp>
|
||||
#include <boost/icl/type_traits/type_to_string.hpp>
|
||||
|
||||
namespace boost{namespace icl
|
||||
{
|
||||
template <class Type>
|
||||
struct element_equal : public relation<Type,Type>
|
||||
{
|
||||
bool operator()(const Type& lhs, const Type& rhs)const
|
||||
{
|
||||
return is_element_equal(lhs, rhs);
|
||||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
inline std::string unary_template_to_string<icl::element_equal>::apply()
|
||||
{ return "="; }
|
||||
|
||||
}} // namespace icl boost
|
||||
|
||||
#endif
|
||||
|
||||
33
test/external/boost/icl/predicates/std_equal.hpp
vendored
Normal file
33
test/external/boost/icl/predicates/std_equal.hpp
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
/*-----------------------------------------------------------------------------+
|
||||
Copyright (c) 2010-2010: Joachim Faulhaber
|
||||
+------------------------------------------------------------------------------+
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENCE.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
+-----------------------------------------------------------------------------*/
|
||||
#ifndef BOOST_ICL_PREDICATES_STD_EQUAL_HPP_JOFA_101102
|
||||
#define BOOST_ICL_PREDICATES_STD_EQUAL_HPP_JOFA_101102
|
||||
|
||||
#include <boost/icl/type_traits/predicate.hpp>
|
||||
#include <boost/icl/type_traits/type_to_string.hpp>
|
||||
|
||||
namespace boost{namespace icl
|
||||
{
|
||||
template <class Type> struct std_equal : public relation<Type,Type>
|
||||
{
|
||||
bool operator()(const Type& lhs, const Type& rhs)const
|
||||
{
|
||||
return lhs == rhs;
|
||||
}
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
template<>
|
||||
inline std::string unary_template_to_string<icl::std_equal>::apply()
|
||||
{ return "=="; }
|
||||
|
||||
}} // namespace icl boost
|
||||
|
||||
#endif
|
||||
|
||||
54
test/external/boost/icl/predicates/sub_super_set.hpp
vendored
Normal file
54
test/external/boost/icl/predicates/sub_super_set.hpp
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
/*-----------------------------------------------------------------------------+
|
||||
Copyright (c) 2010-2010: Joachim Faulhaber
|
||||
+------------------------------------------------------------------------------+
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENCE.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt)
|
||||
+-----------------------------------------------------------------------------*/
|
||||
#ifndef BOOST_ICL_PREDICATES_SUB_SUPER_SET_HPP_JOFA_101102
|
||||
#define BOOST_ICL_PREDICATES_SUB_SUPER_SET_HPP_JOFA_101102
|
||||
|
||||
#include <boost/icl/type_traits/predicate.hpp>
|
||||
#include <boost/icl/type_traits/type_to_string.hpp>
|
||||
|
||||
namespace boost{namespace icl
|
||||
{
|
||||
|
||||
/// Functor class template contained_in implements the subset relation.
|
||||
template<class Type>
|
||||
struct sub_super_set : public relation<Type,Type>
|
||||
{
|
||||
/// Apply the subset relation.
|
||||
/** <tt>contained_in(sub, super)</tt> is true if <tt>sub</tt>
|
||||
is contained in <tt>super</tt> */
|
||||
bool operator()(const Type& sub, const Type& super)const
|
||||
{
|
||||
return contains(super, sub);
|
||||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
inline std::string unary_template_to_string<icl::sub_super_set>::apply()
|
||||
{ return "C="; }
|
||||
|
||||
/// Functor class template <b>contains</b> implements the superset relation.
|
||||
template<class Type>
|
||||
struct super_sub_set : public relation<Type,Type>
|
||||
{
|
||||
/// Apply the superset relation.
|
||||
/** <tt>contains(super, sub)</tt> is true if <tt>super</tt> containes
|
||||
<tt>sub</tt> */
|
||||
bool operator()(const Type& super, const Type& sub)const
|
||||
{
|
||||
return contains(super, sub);
|
||||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
inline std::string unary_template_to_string<icl::super_sub_set>::apply()
|
||||
{ return "D="; }
|
||||
|
||||
}} // namespace icl boost
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user