boost::foreach_detail_ Namespace Reference


Classes

struct  auto_any_base
struct  auto_any
struct  type2type
struct  foreach_iterator
struct  foreach_reference
struct  rvalue_probe
struct  simple_variant

Typedefs

typedef char yes_type
typedef char(& no_type )[2]
typedef auto_any_base const & auto_any_t
typedef boost::mpl::true_ const_

Functions

yes_type is_true (boost::mpl::true_ *)
no_type is_true (boost::mpl::false_ *)
template<typename Bool1, typename Bool2>
boost::mpl::and_< Bool1, Bool2 > * and_ (Bool1 *, Bool2 *)
template<typename Bool1, typename Bool2, typename Bool3>
boost::mpl::and_< Bool1, Bool2,
Bool3 > * 
and_ (Bool1 *, Bool2 *, Bool3 *)
template<typename Bool1, typename Bool2>
boost::mpl::or_< Bool1, Bool2 > * or_ (Bool1 *, Bool2 *)
template<typename Bool1, typename Bool2, typename Bool3>
boost::mpl::or_< Bool1, Bool2,
Bool3 > * 
or_ (Bool1 *, Bool2 *, Bool3 *)
template<typename Bool>
boost::mpl::not_< Bool > * not_ (Bool *)
template<typename T>
boost::mpl::false_ * is_rvalue (T &, int)
template<typename T>
boost::mpl::true_ * is_rvalue (T const &,...)
template<typename T>
boost::is_array< T > * is_array (T const &)
template<typename T>
boost::is_const< T > * is_const (T &)
template<typename T>
boost::mpl::true_ * is_const (T const &)
template<typename T, typename C>
BOOST_DEDUCED_TYPENAME
boost::mpl::if_< C, T const, T >
::type
auto_any_cast (auto_any_t a)
template<typename T>
type2type< T > * encode_type (T &, boost::mpl::false_ *)
template<typename T>
type2type< T, const_ > * encode_type (T const &, boost::mpl::true_ *)
bool set_false (bool &b)
template<typename T>
T *& to_ptr (T const &)
template<typename T>
T & derefof (T *t)
template<typename T>
rvalue_probe< T > make_probe (T &t, bool &b)
template<typename T>
rvalue_probe< T const > make_probe (T const &t, bool &b)
template<typename LValue, typename IsProxy>
BOOST_DEDUCED_TYPENAME
boost::enable_if
< boost::mpl::or_< LValue,
IsProxy >, IsProxy >::type
should_copy_impl (LValue *, IsProxy *, bool *)
bool * should_copy_impl (boost::mpl::false_ *, boost::mpl::false_ *, bool *is_rvalue)
template<typename T>
auto_any< T > contain (T const &t, boost::mpl::true_ *)
template<typename T>
auto_any< T * > contain (T &t, boost::mpl::false_ *)
template<typename T>
auto_any< simple_variant< T > > contain (T const &t, bool *rvalue)
template<typename T, typename C>
auto_any
< BOOST_DEDUCED_TYPENAME
foreach_iterator< T, C >::type
begin (auto_any_t col, type2type< T, C > *, boost::mpl::true_ *)
template<typename T, typename C>
auto_any
< BOOST_DEDUCED_TYPENAME
foreach_iterator< T, C >::type
begin (auto_any_t col, type2type< T, C > *, boost::mpl::false_ *)
template<typename T>
auto_any
< BOOST_DEDUCED_TYPENAME
foreach_iterator< T, const_ >
::type
begin (auto_any_t col, type2type< T, const_ > *, bool *)
template<typename T, typename C>
auto_any
< BOOST_DEDUCED_TYPENAME
foreach_iterator< T, C >::type
end (auto_any_t col, type2type< T, C > *, boost::mpl::true_ *)
template<typename T, typename C>
auto_any
< BOOST_DEDUCED_TYPENAME
foreach_iterator< T, C >::type
end (auto_any_t col, type2type< T, C > *, boost::mpl::false_ *)
template<typename T>
auto_any
< BOOST_DEDUCED_TYPENAME
foreach_iterator< T, const_ >
::type
end (auto_any_t col, type2type< T, const_ > *, bool *)
template<typename T, typename C>
auto_any< int > end (auto_any_t col, type2type< T *, C > *, boost::mpl::true_ *)
template<typename T, typename C>
bool done (auto_any_t cur, auto_any_t end, type2type< T, C > *)
template<typename T, typename C>
bool done (auto_any_t cur, auto_any_t, type2type< T *, C > *)
template<typename T, typename C>
void next (auto_any_t cur, type2type< T, C > *)
template<typename T, typename C>
BOOST_DEDUCED_TYPENAME
foreach_reference< T, C >
::type 
deref (auto_any_t cur, type2type< T, C > *)


Typedef Documentation

Definition at line 252 of file foreach.hpp.

typedef boost::mpl::true_ boost::foreach_detail_::const_

Definition at line 260 of file foreach.hpp.

typedef char(& boost::foreach_detail_::no_type)[2]

Definition at line 185 of file foreach.hpp.

Definition at line 184 of file foreach.hpp.


Function Documentation

template<typename Bool1, typename Bool2, typename Bool3>
boost::mpl::and_<Bool1, Bool2, Bool3>* boost::foreach_detail_::and_ ( Bool1 *  ,
Bool2 *  ,
Bool3 *   
) [inline]

Definition at line 197 of file foreach.hpp.

template<typename Bool1, typename Bool2>
boost::mpl::and_<Bool1, Bool2>* boost::foreach_detail_::and_ ( Bool1 *  ,
Bool2 *   
) [inline]

Definition at line 194 of file foreach.hpp.

template<typename T, typename C>
BOOST_DEDUCED_TYPENAME boost::mpl::if_<C, T const, T>::type& boost::foreach_detail_::auto_any_cast ( auto_any_t  a  )  [inline]

Definition at line 255 of file foreach.hpp.

Referenced by begin(), deref(), done(), end(), and next().

template<typename T>
auto_any<BOOST_DEDUCED_TYPENAME foreach_iterator<T, const_>::type> boost::foreach_detail_::begin ( auto_any_t  col,
type2type< T, const_ > *  ,
bool *   
) [inline]

template<typename T, typename C>
auto_any<BOOST_DEDUCED_TYPENAME foreach_iterator<T, C>::type> boost::foreach_detail_::begin ( auto_any_t  col,
type2type< T, C > *  ,
boost::mpl::false_ *   
) [inline]

Definition at line 512 of file foreach.hpp.

References begin(), derefof(), and type.

template<typename T, typename C>
auto_any<BOOST_DEDUCED_TYPENAME foreach_iterator<T, C>::type> boost::foreach_detail_::begin ( auto_any_t  col,
type2type< T, C > *  ,
boost::mpl::true_ *   
) [inline]

Definition at line 505 of file foreach.hpp.

References begin().

template<typename T>
auto_any<simple_variant<T> > boost::foreach_detail_::contain ( T const &  t,
bool *  rvalue 
) [inline]

Definition at line 494 of file foreach.hpp.

template<typename T>
auto_any<T *> boost::foreach_detail_::contain ( T &  t,
boost::mpl::false_ *   
) [inline]

Definition at line 481 of file foreach.hpp.

template<typename T>
auto_any<T> boost::foreach_detail_::contain ( T const &  t,
boost::mpl::true_ *   
) [inline]

Definition at line 475 of file foreach.hpp.

template<typename T, typename C>
BOOST_DEDUCED_TYPENAME foreach_reference<T, C>::type boost::foreach_detail_::deref ( auto_any_t  cur,
type2type< T, C > *   
) [inline]

Definition at line 598 of file foreach.hpp.

References auto_any_cast().

template<typename T>
T& boost::foreach_detail_::derefof ( T *  t  )  [inline]

Definition at line 321 of file foreach.hpp.

Referenced by begin(), and end().

template<typename T, typename C>
bool boost::foreach_detail_::done ( auto_any_t  cur,
auto_any_t  ,
type2type< T *, C > *   
) [inline]

Definition at line 577 of file foreach.hpp.

References auto_any_cast().

Referenced by gui2::timage::draw(), and main().

template<typename T, typename C>
bool boost::foreach_detail_::done ( auto_any_t  cur,
auto_any_t  end,
type2type< T, C > *   
) [inline]

Definition at line 569 of file foreach.hpp.

References auto_any_cast().

template<typename T>
type2type<T, const_>* boost::foreach_detail_::encode_type ( T const &  ,
boost::mpl::true_ *   
) [inline]

Definition at line 294 of file foreach.hpp.

template<typename T>
type2type<T>* boost::foreach_detail_::encode_type ( T &  ,
boost::mpl::false_ *   
) [inline]

Definition at line 291 of file foreach.hpp.

template<typename T, typename C>
auto_any<int> boost::foreach_detail_::end ( auto_any_t  col,
type2type< T *, C > *  ,
boost::mpl::true_ *   
) [inline]

Definition at line 559 of file foreach.hpp.

Referenced by game_events::add_events(), unit::add_modification(), adjust_surface_alpha(), adjust_surface_alpha_add(), adjust_surface_colour(), ai::analyze_potential_recruit_combat(), ai::analyze_potential_recruit_movements(), attack::attack(), events::menu_handler::autosave(), blend_surface(), brighten_image(), check_socket_result(), network_worker_pool::close_socket(), commit_new_handlers(), commit_wmi_commands(), game_logic::create_function(), create_unit_table(), darken_image(), network_worker_pool::detect_error(), help::help_menu::display_visible_items(), events::console_handler::do_create(), do_replay_handle(), gui::textbox::draw_contents(), help::help_text_area::draw_contents(), end(), editormap::flip(), help::generate_races_sections(), unit::generate_traits(), help::generate_unit_topics(), get_advanced_unit(), mp::get_colour_string(), gui2::get_control(), team::get_side_color_range(), gui2::get_window_builder(), greyscale_image(), gui::textbox::handle_event(), image_empty(), network_worker_pool::is_locked(), gamemap::is_starting_position(), preprocessor_streambuf::lineno_string(), gui2::tgui_definition::load_definitions(), utils::lowercase(), game_events::manager::manager(), mask_surface(), gamemap::location::matches_range(), mod_mdr_merge(), simple_wml::node::node(), help::unit_topic_generator::operator()(), process_queue(), unit::read(), receive_buf(), recolor_image(), events::menu_handler::recruit(), ai_interface::recruit(), editormap::remove_tiles_bottom(), reset_cache(), mp::connect::side::side(), split_text(), team::team_info::team_info(), t_translation::terrain_matches(), unit::type(), utils::uppercase(), font::word_wrap_text(), and unit::write().

template<typename T>
auto_any<BOOST_DEDUCED_TYPENAME foreach_iterator<T, const_>::type> boost::foreach_detail_::end ( auto_any_t  col,
type2type< T, const_ > *  ,
bool *   
) [inline]

Definition at line 550 of file foreach.hpp.

References auto_any_cast(), and end().

template<typename T, typename C>
auto_any<BOOST_DEDUCED_TYPENAME foreach_iterator<T, C>::type> boost::foreach_detail_::end ( auto_any_t  col,
type2type< T, C > *  ,
boost::mpl::false_ *   
) [inline]

Definition at line 540 of file foreach.hpp.

References derefof(), end(), and type.

template<typename T, typename C>
auto_any<BOOST_DEDUCED_TYPENAME foreach_iterator<T, C>::type> boost::foreach_detail_::end ( auto_any_t  col,
type2type< T, C > *  ,
boost::mpl::true_ *   
) [inline]

Definition at line 533 of file foreach.hpp.

References end().

template<typename T>
boost::is_array<T>* boost::foreach_detail_::is_array ( T const &   )  [inline]

Definition at line 215 of file foreach.hpp.

template<typename T>
boost::mpl::true_* boost::foreach_detail_::is_const ( T const &   )  [inline]

Definition at line 222 of file foreach.hpp.

template<typename T>
boost::is_const<T>* boost::foreach_detail_::is_const ( T &   )  [inline]

Definition at line 218 of file foreach.hpp.

template<typename T>
boost::mpl::true_* boost::foreach_detail_::is_rvalue ( T const &  ,
  ... 
) [inline]

Definition at line 212 of file foreach.hpp.

template<typename T>
boost::mpl::false_* boost::foreach_detail_::is_rvalue ( T &  ,
int   
) [inline]

Definition at line 209 of file foreach.hpp.

no_type boost::foreach_detail_::is_true ( boost::mpl::false_ *   ) 

yes_type boost::foreach_detail_::is_true ( boost::mpl::true_ *   ) 

template<typename T>
rvalue_probe<T const> boost::foreach_detail_::make_probe ( T const &  t,
bool &  b 
) [inline]

Definition at line 402 of file foreach.hpp.

template<typename T>
rvalue_probe<T> boost::foreach_detail_::make_probe ( T &  t,
bool &  b 
) [inline]

Definition at line 399 of file foreach.hpp.

template<typename T, typename C>
void boost::foreach_detail_::next ( auto_any_t  cur,
type2type< T, C > *   
) [inline]

Definition at line 587 of file foreach.hpp.

References auto_any_cast().

Referenced by default_generate_map(), ai::move_group(), and utils::word_match().

template<typename Bool>
boost::mpl::not_<Bool>* boost::foreach_detail_::not_ ( Bool *   )  [inline]

Definition at line 206 of file foreach.hpp.

template<typename Bool1, typename Bool2, typename Bool3>
boost::mpl::or_<Bool1, Bool2, Bool3>* boost::foreach_detail_::or_ ( Bool1 *  ,
Bool2 *  ,
Bool3 *   
) [inline]

Definition at line 203 of file foreach.hpp.

template<typename Bool1, typename Bool2>
boost::mpl::or_<Bool1, Bool2>* boost::foreach_detail_::or_ ( Bool1 *  ,
Bool2 *   
) [inline]

Definition at line 200 of file foreach.hpp.

bool boost::foreach_detail_::set_false ( bool &  b  )  [inline]

Definition at line 299 of file foreach.hpp.

bool* boost::foreach_detail_::should_copy_impl ( boost::mpl::false_ *  ,
boost::mpl::false_ *  ,
bool *  is_rvalue 
) [inline]

Definition at line 464 of file foreach.hpp.

template<typename LValue, typename IsProxy>
BOOST_DEDUCED_TYPENAME boost::enable_if<boost::mpl::or_<LValue, IsProxy>, IsProxy>::type* boost::foreach_detail_::should_copy_impl ( LValue *  ,
IsProxy *  ,
bool *   
) [inline]

Definition at line 457 of file foreach.hpp.

template<typename T>
T*& boost::foreach_detail_::to_ptr ( T const &   )  [inline]

Definition at line 305 of file foreach.hpp.


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs