Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mock_object.hpp File Reference
#include <boost/test/detail/config.hpp>
#include <boost/test/interaction_based.hpp>
#include <boost/preprocessor/punctuation/comma.hpp>
#include <boost/test/detail/suppress_warnings.hpp>
#include <boost/test/detail/enable_warnings.hpp>
Include dependency graph for mock_object.hpp:

Classes

class  boost::itest::mock_object_base
 
class  boost::itest::mock_object< i, Base >
 
class  boost::itest::mock_object< i, Base >
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::itest
 

Macros

#define MO_OP_IMPL(op, descr, ret)
 
#define MO_UNARY_OP(op, descr)
 
#define MO_UNARY_BOOL_OP(op, descr)
 
#define MO_BINARY_OP(op, descr)
 
#define MO_BINARY_BOOL_OP(op, descr)
 

Functions

template<int i1, typename Base1 , int i2, typename Base2 >
bool boost::itest::operator!= (mock_object< i1, Base1 > const &, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator!= (mock_object< i, Base > const &, T const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator!= (T const &, mock_object< i, Base > const &)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator% (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator% (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator% (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator%= (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator%= (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator%= (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator& (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator& (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator& (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
bool boost::itest::operator&& (mock_object< i1, Base1 > const &, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator&& (mock_object< i, Base > const &, T const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator&& (T const &, mock_object< i, Base > const &)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator&= (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator&= (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator&= (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator* (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator* (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator* (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator*= (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator*= (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator*= (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator+ (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator+ (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator+ (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator+= (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator+= (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator+= (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator-= (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator-= (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator-= (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator->* (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator->* (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator->* (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator/ (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator/ (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator/ (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator/= (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator/= (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator/= (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
bool boost::itest::operator< (mock_object< i1, Base1 > const &, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator< (mock_object< i, Base > const &, T const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator< (T const &, mock_object< i, Base > const &)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator<<= (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator<<= (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator<<= (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
bool boost::itest::operator<= (mock_object< i1, Base1 > const &, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator<= (mock_object< i, Base > const &, T const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator<= (T const &, mock_object< i, Base > const &)
 
template<int i1, typename Base1 , int i2, typename Base2 >
bool boost::itest::operator== (mock_object< i1, Base1 > const &, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator== (mock_object< i, Base > const &, T const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator== (T const &, mock_object< i, Base > const &)
 
template<int i1, typename Base1 , int i2, typename Base2 >
bool boost::itest::operator> (mock_object< i1, Base1 > const &, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator> (mock_object< i, Base > const &, T const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator> (T const &, mock_object< i, Base > const &)
 
template<int i1, typename Base1 , int i2, typename Base2 >
bool boost::itest::operator>= (mock_object< i1, Base1 > const &, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator>= (mock_object< i, Base > const &, T const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator>= (T const &, mock_object< i, Base > const &)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator>>= (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator>>= (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator>>= (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator^ (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator^ (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator^ (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator^= (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator^= (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator^= (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator| (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator| (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator| (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator|= (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator|= (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator|= (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
bool boost::itest::operator|| (mock_object< i1, Base1 > const &, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator|| (mock_object< i, Base > const &, T const &)
 
template<int i, typename Base , typename T >
bool boost::itest::operator|| (T const &, mock_object< i, Base > const &)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator<< (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator<< (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator<< (T const &, mock_object< i, Base > const &mo)
 
template<int i1, typename Base1 , int i2, typename Base2 >
mock_object< i1, Base1 > const & boost::itest::operator>> (mock_object< i1, Base1 > const &mo, mock_object< i2, Base2 > const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator>> (mock_object< i, Base > const &mo, T const &)
 
template<int i, typename Base , typename T >
mock_object< i, Base > const & boost::itest::operator>> (T const &, mock_object< i, Base > const &mo)
 

Macro Definition Documentation

#define MO_BINARY_BOOL_OP (   op,
  descr 
)
Value:
template<int i1, typename Base1,int i2, typename Base2> \
inline bool \
operator op( mock_object<i1,Base1> const&, \
mock_object<i2,Base2> const& ) \
{ \
MO_OP_IMPL( op, descr, BOOST_ITEST_DPOINT() ); \
} \
\
template<int i, typename Base, typename T> \
inline bool \
operator op( mock_object<i,Base> const&, T const& ) \
{ \
MO_OP_IMPL( op, descr, BOOST_ITEST_DPOINT() ); \
} \
\
template<int i, typename Base, typename T> \
inline bool \
operator op( T const&, mock_object<i,Base> const& ) \
{ \
MO_OP_IMPL( op, descr, BOOST_ITEST_DPOINT() ); \
} \
T
Definition: mem_fn_cc.hpp:25
#define BOOST_ITEST_DPOINT()
Definition: interaction_based.hpp:43
#define MO_OP_IMPL(op, descr, ret)
Definition: mock_object.hpp:61
#define MO_BINARY_OP (   op,
  descr 
)
Value:
template<int i1, typename Base1,int i2, typename Base2> \
inline mock_object<i1,Base1> const& \
operator op( mock_object<i1,Base1> const& mo, \
mock_object<i2,Base2> const& ) \
{ \
MO_OP_IMPL( op, descr, mo ); \
} \
\
template<int i, typename Base, typename T> \
inline mock_object<i,Base> const& \
operator op( mock_object<i,Base> const& mo, T const& ) \
{ \
MO_OP_IMPL( op, descr, mo ); \
} \
\
template<int i, typename Base, typename T> \
inline mock_object<i,Base> const& \
operator op( T const&, mock_object<i,Base> const& mo ) \
{ \
MO_OP_IMPL( op, descr, mo ); \
} \
T
Definition: mem_fn_cc.hpp:25
#define MO_OP_IMPL(op, descr, ret)
Definition: mock_object.hpp:61
#define MO_OP_IMPL (   op,
  descr,
  ret 
)
#define MO_UNARY_BOOL_OP (   op,
  descr 
)
Value:
bool operator op() const \
{ \
MO_OP_IMPL( op, descr, (!!BOOST_ITEST_DPOINT()) ); \
} \
void const
Definition: is_convertible.hpp:460
#define BOOST_ITEST_DPOINT()
Definition: interaction_based.hpp:43
#define MO_OP_IMPL(op, descr, ret)
Definition: mock_object.hpp:61
#define MO_UNARY_OP (   op,
  descr 
)
Value:
self_type const& operator op() const \
{ \
MO_OP_IMPL( op, descr, prototype() ); \
} \
void const
Definition: is_convertible.hpp:460
BOOST_FUNCTION_NUM_ARGS self_type
Definition: function_template.hpp:705
#define MO_OP_IMPL(op, descr, ret)
Definition: mock_object.hpp:61