Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
foreach.hpp File Reference
#include <boost/test/detail/config.hpp>
#include <boost/type.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/test/detail/workaround.hpp>
#include <boost/type_traits/is_const.hpp>
#include <boost/test/detail/suppress_warnings.hpp>
#include <boost/test/detail/enable_warnings.hpp>
Include dependency graph for foreach.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  boost::unit_test::for_each::static_any_base
 
struct  boost::unit_test::for_each::static_any< Iter >
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::unit_test
 
 boost::unit_test::for_each
 

Macros

#define BOOST_TEST_FE_ANY   ::boost::unit_test::for_each::static_any_t
 
#define BOOST_TEST_FE_IS_CONST(COL)   ::boost::unit_test::for_each::is_const_coll( COL )
 
#define BOOST_TEST_FE_BEG(COL)
 
#define BOOST_TEST_FE_END(COL)
 
#define BOOST_TEST_FE_DONE(COL)
 
#define BOOST_TEST_FE_NEXT(COL)
 
#define BOOST_FOREACH_NOOP(COL)   ((void)&(COL))
 
#define BOOST_TEST_FE_DEREF(COL, RefType)
 
#define BOOST_TEST_LINE_NUM   __LINE__
 
#define BOOST_TEST_FE_CUR_VAR   BOOST_JOIN( _fe_cur_, BOOST_TEST_LINE_NUM )
 
#define BOOST_TEST_FE_END_VAR   BOOST_JOIN( _fe_end_, BOOST_TEST_LINE_NUM )
 
#define BOOST_TEST_FE_CON_VAR   BOOST_JOIN( _fe_con_, BOOST_TEST_LINE_NUM )
 
#define BOOST_TEST_FOREACH(RefType, var, COL)
 

Typedefs

typedef static_any_base const & boost::unit_test::for_each::static_any_t
 

Functions

template<typename Iter >
Iter & boost::unit_test::for_each::static_any_cast (static_any_t a, Iter *=0)
 
template<typename C >
is_const< C > boost::unit_test::for_each::is_const_coll (C &)
 
template<typename C >
static_any
< BOOST_DEDUCED_TYPENAME
C::iterator > 
boost::unit_test::for_each::begin (C &t, mpl::false_)
 
template<typename C >
static_any
< BOOST_DEDUCED_TYPENAME
C::const_iterator > 
boost::unit_test::for_each::begin (C const &t, mpl::true_)
 
template<typename C >
static_any
< BOOST_DEDUCED_TYPENAME
C::iterator > 
boost::unit_test::for_each::end (C &t, mpl::false_)
 
template<typename C >
static_any
< BOOST_DEDUCED_TYPENAME
C::const_iterator > 
boost::unit_test::for_each::end (C const &t, mpl::true_)
 
template<typename C >
bool boost::unit_test::for_each::done (static_any_t cur, static_any_t end, C &, mpl::false_)
 
template<typename C >
bool boost::unit_test::for_each::done (static_any_t cur, static_any_t end, C const &, mpl::true_)
 
template<typename C >
void boost::unit_test::for_each::next (static_any_t cur, C &, mpl::false_)
 
template<typename C >
void boost::unit_test::for_each::next (static_any_t cur, C const &, mpl::true_)
 
template<class RefType , typename C >
RefType boost::unit_test::for_each::deref (static_any_t cur, C &,::boost::type< RefType >, mpl::false_)
 
template<class RefType , typename C >
RefType boost::unit_test::for_each::deref (static_any_t cur, C const &,::boost::type< RefType >, mpl::true_)
 

Macro Definition Documentation

#define BOOST_FOREACH_NOOP (   COL)    ((void)&(COL))
#define BOOST_TEST_FE_ANY   ::boost::unit_test::for_each::static_any_t
#define BOOST_TEST_FE_BEG (   COL)
Value:
COL, \
static_any< BOOST_DEDUCED_TYPENAME C::const_iterator > begin(C const &t, mpl::true_)
Definition: foreach.hpp:105
#define BOOST_TEST_FE_IS_CONST(COL)
Definition: foreach.hpp:207
#define BOOST_TEST_FE_CON_VAR   BOOST_JOIN( _fe_con_, BOOST_TEST_LINE_NUM )
#define BOOST_TEST_FE_CUR_VAR   BOOST_JOIN( _fe_cur_, BOOST_TEST_LINE_NUM )
#define BOOST_TEST_FE_DEREF (   COL,
  RefType 
)
Value:
COL, \
#define BOOST_TEST_FE_CUR_VAR
Definition: foreach.hpp:253
#define BOOST_TEST_FE_IS_CONST(COL)
Definition: foreach.hpp:207
RefType deref(static_any_t cur, C const &,::boost::type< RefType >, mpl::true_)
Definition: foreach.hpp:195
Definition: type.hpp:14
#define BOOST_TEST_FE_DONE (   COL)
Value:
COL, \
#define BOOST_TEST_FE_CUR_VAR
Definition: foreach.hpp:253
#define BOOST_TEST_FE_END_VAR
Definition: foreach.hpp:254
#define BOOST_TEST_FE_IS_CONST(COL)
Definition: foreach.hpp:207
bool done(static_any_t cur, static_any_t end, C const &, mpl::true_)
Definition: foreach.hpp:150
#define BOOST_TEST_FE_END (   COL)
Value:
COL, \
static_any< BOOST_DEDUCED_TYPENAME C::const_iterator > end(C const &t, mpl::true_)
Definition: foreach.hpp:127
#define BOOST_TEST_FE_IS_CONST(COL)
Definition: foreach.hpp:207
#define BOOST_TEST_FE_END_VAR   BOOST_JOIN( _fe_end_, BOOST_TEST_LINE_NUM )
#define BOOST_TEST_FE_IS_CONST (   COL)    ::boost::unit_test::for_each::is_const_coll( COL )
#define BOOST_TEST_FE_NEXT (   COL)
Value:
COL, \
#define BOOST_TEST_FE_CUR_VAR
Definition: foreach.hpp:253
void next(static_any_t cur, C const &, mpl::true_)
Definition: foreach.hpp:173
#define BOOST_TEST_FE_IS_CONST(COL)
Definition: foreach.hpp:207
#define BOOST_TEST_FOREACH (   RefType,
  var,
  COL 
)
Value:
\
if( (BOOST_TEST_FE_CON_VAR = false, false) ) {} else \
for( RefType var = BOOST_TEST_FE_DEREF( COL, RefType ); \
if(num_vertices(iG)!=num_vertices(vG)) return
#define BOOST_TEST_FE_CUR_VAR
Definition: foreach.hpp:253
actor< variable< T > > const var(T &v)
Definition: primitives.hpp:230
#define BOOST_TEST_FE_BEG(COL)
Definition: foreach.hpp:209
#define BOOST_TEST_FE_END(COL)
Definition: foreach.hpp:215
#define BOOST_TEST_FE_END_VAR
Definition: foreach.hpp:254
#define BOOST_TEST_FE_NEXT(COL)
Definition: foreach.hpp:229
#define BOOST_FOREACH_NOOP(COL)
Definition: foreach.hpp:236
#define BOOST_TEST_FE_DEREF(COL, RefType)
Definition: foreach.hpp:239
#define BOOST_TEST_FE_DONE(COL)
Definition: foreach.hpp:221
for(;it!=topo_order.rend();++it,++n)
Definition: transitive_reduction.hpp:67
#define BOOST_TEST_FE_ANY
Definition: foreach.hpp:206
#define BOOST_TEST_FE_CON_VAR
Definition: foreach.hpp:255

Referenced by boost::BOOST_RT_PARAM_NAMESPACE::file::get_param_value(), boost::BOOST_RT_PARAM_NAMESPACE::cla::parser::help(), boost::BOOST_RT_PARAM_NAMESPACE::file::param_namespace::insert_param(), boost::unit_test::ut_detail::delim_policy< iterator_value< Iter >::type, CharCompare >::operator()(), boost::BOOST_RT_PARAM_NAMESPACE::cla::parser::operator<<(), boost::BOOST_RT_PARAM_NAMESPACE::cla::parser::operator[](), boost::BOOST_RT_PARAM_NAMESPACE::cla::parser::parse(), boost::unit_test::print_escaped(), boost::BOOST_RT_PARAM_NAMESPACE::file::param_namespace::subnamespace(), and boost::BOOST_RT_PARAM_NAMESPACE::cla::parser::usage().

#define BOOST_TEST_LINE_NUM   __LINE__