Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
adapt_function.hpp File Reference
#include <boost/phoenix/core/limits.hpp>
#include <boost/phoenix/core/detail/function_eval.hpp>
#include <boost/preprocessor/repetition/repeat.hpp>
Include dependency graph for adapt_function.hpp:
This graph shows which files directly or indirectly include this file:

Macros

#define BOOST_PHOENIX_ADAPT_FUNCTION_NULLARY(RESULT, NAME, FUNC)
 
#define BOOST_PHOENIX_ADAPT_FUNCTION(RESULT, NAME, FUNC, N)
 
#define BOOST_PHOENIX_ADAPT_FUNCTION_VARARG(RESULT, NAME, FUNC)
 
#define BOOST_PHOENIX_ADAPT_FUNCTION_VARARG_R(Z, N, D)
 

Macro Definition Documentation

#define BOOST_PHOENIX_ADAPT_FUNCTION (   RESULT,
  NAME,
  FUNC,
  N 
)
#define BOOST_PHOENIX_ADAPT_FUNCTION_NULLARY (   RESULT,
  NAME,
  FUNC 
)
Value:
namespace detail \
{ \
struct BOOST_PP_CAT(NAME, _impl_nullary) \
{ \
typedef RESULT result_type; \
\
result_type \
operator()() const \
{ \
return FUNC(); \
} \
}; \
} \
\
inline \
boost::phoenix::detail::expression::function_eval< \
detail:: BOOST_PP_CAT(NAME, _impl_nullary) \
>::type const \
NAME() \
{ \
return boost::phoenix::detail::expression:: \
function_eval<detail:: BOOST_PP_CAT(NAME, _impl_nullary)> \
::make(detail:: BOOST_PP_CAT(NAME, _impl_nullary)()); \
} \
Geometry make(Type const &c1, Type const &c2)
Construct a geometry.
Definition: make.hpp:79
#define BOOST_PP_CAT(a, b)
Definition: cat.hpp:24
adjacency_iterator typedef T::adjacency_iterator type
Definition: graph_traits.hpp:42
result_traits< R, F >::type result_type
Definition: bind_template.hpp:15
#define BOOST_PHOENIX_ADAPT_FUNCTION_VARARG (   RESULT,
  NAME,
  FUNC 
)
Value:
1 \
, (RESULT, NAME, FUNC) \
) \
#define BOOST_PHOENIX_ADAPT_FUNCTION_NULLARY(RESULT, NAME, FUNC)
Definition: adapt_function.hpp:15
#define BOOST_PHOENIX_LIMIT
Definition: limits.hpp:27
#define BOOST_PHOENIX_ADAPT_FUNCTION_VARARG_R(Z, N, D)
Definition: adapt_function.hpp:92
#define BOOST_PP_REPEAT_FROM_TO
Definition: repeat_from_to.hpp:34
#define BOOST_PHOENIX_ADAPT_FUNCTION_VARARG_R (   Z,
  N,
 
)
Value:
, BOOST_PP_TUPLE_ELEM(3, 1, D) \
, BOOST_PP_TUPLE_ELEM(3, 2, D) \
, N \
) \
#define N
Definition: forward_adapter.hpp:198
#define BOOST_PP_TUPLE_ELEM(size, n, tuple)
Definition: elem.hpp:57
#define BOOST_PHOENIX_ADAPT_FUNCTION(RESULT, NAME, FUNC, N)
Definition: adapt_function.hpp:42