Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Struct template impl

boost::proto::call::impl

Synopsis

// In header: <boost/proto/transform/call.hpp>


template<typename Expr, typename State, typename Data> 
struct impl :  proto::transform_impl<Expr, State, Data> {
  // types
  typedef see-below result_type;

  // public member functions
  result_type operator()(typename impl::expr_param, 
                         typename impl::state_param, 
                         typename impl::data_param) const;
};

Description

impl public types

  1. typedef see-below result_type;

    In the description that follows, a type T is determined to model the PrimitiveTransform concept if proto::is_transform<T>::value is true.

    proto::call<T>::impl<Expr,State,Data>::result_type is computed as follows:

    • If T if of the form PrimitiveTransform or PrimitiveTransform(), then result_type is:

      typename boost::result_of<PrimitiveTransform(Expr, State, Data)>::type

    • If T is of the form PrimitiveTransform(A0), then result_type is:

      typename boost::result_of<PrimitiveTransform(
        typename boost::result_of<when<_,A0>(Expr, State, Data)>::type,
        State, 
        Data
      )>::type

    • If T is of the form PrimitiveTransform(A0, A1), then result_type is:

      typename boost::result_of<PrimitiveTransform(
        typename boost::result_of<when<_,A0>(Expr, State, Data)>::type,
        typename boost::result_of<when<_,A1>(Expr, State, Data)>::type,
        Data
      )>::type

    • If T is of the form PrimitiveTransform(A0, A1, A2), then result_type is:

      typename boost::result_of<PrimitiveTransform(
        typename boost::result_of<when<_,A0>(Expr, State, Data)>::type,
        typename boost::result_of<when<_,A1>(Expr, State, Data)>::type,
        typename boost::result_of<when<_,A2>(Expr, State, Data)>::type
      )>::type

    • If T is of the form PolymorphicFunctionObject(A0,...An), then result_type is:

      typename boost::result_of<PolymorphicFunctionObject(
        typename boost::result_of<when<_,A0>(Expr, State, Data)>::type,
        ...
        typename boost::result_of<when<_,An>(Expr, State, Data)>::type
      >::type

impl public member functions

  1. result_type operator()(typename impl::expr_param expr, 
                           typename impl::state_param state, 
                           typename impl::data_param data) const;

    In the description that follows, a type T is determined to model the PrimitiveTransform concept if proto::is_transform<T>::value is true.

    proto::call<T>::impl<Expr,State,Data>::operator() behaves as follows:


PrevUpHomeNext