#include <for_all.h>
Public Types | |
typedef _Tfunc | func_t |
Public Member Functions | |
all_of_t (func_t func) | |
result_type | operator() (argument_type arg) |
operator bool () | |
Protected Attributes | |
bool | m_res |
func_t | m_func |
Definition at line 319 of file for_all.h.
typedef _Tfunc mbo::all_of_t< _Tfunc, _Ty >::func_t |
mbo::all_of_t< _Tfunc, _Ty >::all_of_t | ( | func_t | func | ) | [inline] |
result_type mbo::all_of_t< _Tfunc, _Ty >::operator() | ( | argument_type | arg | ) | [inline] |
Definition at line 331 of file for_all.h.
References mbo::all_of_t< _Tfunc, _Ty >::m_func, and mbo::all_of_t< _Tfunc, _Ty >::m_res.
00332 { 00333 // Cannot use &= because compiler might generate code that 00334 // optimizes out remaining calls after first fail. 00335 if (!(m_func(arg))) 00336 { 00337 m_res = false; 00338 } 00339 return m_res; 00340 }
mbo::all_of_t< _Tfunc, _Ty >::operator bool | ( | ) | [inline] |
Definition at line 342 of file for_all.h.
References mbo::all_of_t< _Tfunc, _Ty >::m_res.
00343 { 00344 return m_res; 00345 }
bool mbo::all_of_t< _Tfunc, _Ty >::m_res [protected] |
Definition at line 349 of file for_all.h.
Referenced by mbo::all_of_t< _Tfunc, _Ty >::operator bool(), and mbo::all_of_t< _Tfunc, _Ty >::operator()().
func_t mbo::all_of_t< _Tfunc, _Ty >::m_func [protected] |
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:10 2008 for MBO-lib by ![]() |