VisitableMockObject.h File Reference

MockObjects that can be visited under control. More...

Go to the source code of this file.

Classes

class  mockpp::VisitableMockObjectBase
 Base class for a generic object that can be used to replace a real world object for testing purposes. More...
class  mockpp::VisitableMockObject
 A generic object that can be used to replace a real world object for testing purposes. More...
class  mockpp::VisitableMockObjectBase::Controller
 Virtual base class for helper objects to easily set up the expectations. More...

Namespaces

namespace  mockpp
 

Namespace for project "Mock Objects for C++".


Defines

#define MOCKPP_CONTROLLER_FOR(clsname, methname)   clsname::ControllerFor ## methname
 Implements a controller for a method.
#define MOCKPP_CONTROLLER_FOR_EXT(clsname, m_methname, x_methname)   MOCKPP_CONTROLLER_FOR(clsname, m_methname ## x_methname)
 Implements a controller for a method.
#define MOCKPP_VOID_VISITABLE0(classname, name)
 Implements a method with 0 parameters for a mock object.
#define MOCKPP_VOID_CONST_VISITABLE0(classname, name)
 Implements a const method with 0 parameters for a mock object.
#define MOCKPP_VOID_VISITABLE_EXT0(classname, m_name, x_name)
 Implements a method with 0 parameters for a mock object.
#define MOCKPP_VOID_CONST_VISITABLE_EXT0(classname, m_name, x_name)
 Implements a const method with 0 parameters for a mock object.
#define MOCKPP_VOID_VISITABLE1(classname, name, type1)
 Implements a method with 1 parameter for a mock object.
#define MOCKPP_VOID_CONST_VISITABLE1(classname, name, type1)
 Implements a const method with 1 parameter for a mock object.
#define MOCKPP_VOID_VISITABLE_EXT1(classname, m_name, m_type1, x_name, v_type1)
 Implements a method with 1 parameter for a mock object.
#define MOCKPP_VOID_CONST_VISITABLE_EXT1(classname, m_name, m_type1, x_name, v_type1)
 Implements a const method with 1 parameter for a mock object.
#define MOCKPP_VOID_VISITABLE2(classname, name, type1, type2)
 Implements a method with 2 parameters for a mock object.
#define MOCKPP_VOID_CONST_VISITABLE2(classname, name, type1, type2)
 Implements a const method with 2 parameters for a mock object.
#define MOCKPP_VOID_VISITABLE_EXT2(classname, m_name, m_type1, m_type2,x_name, v_type1, v_type2)
 Implements a method with 2 parameters for a mock object.
#define MOCKPP_VOID_CONST_VISITABLE_EXT2(classname, m_name, m_type1, m_type2, x_name, v_type1, v_type2)
 Implements a const method with 2 parameters for a mock object.
#define MOCKPP_VOID_VISITABLE3(classname, name, type1, type2, type3)
 Implements a method with 3 parameters for a mock object.
#define MOCKPP_VOID_CONST_VISITABLE3(classname, name, type1, type2, type3)
 Implements a const method with 3 parameters for a mock object.
#define MOCKPP_VOID_VISITABLE_EXT3(classname, m_name, m_type1, m_type2, m_type3,x_name, v_type1, v_type2, v_type3)
 Implements a method with 3 parameters for a mock object.
#define MOCKPP_VOID_CONST_VISITABLE_EXT3(classname, m_name, m_type1, m_type2, m_type3,x_name, v_type1, v_type2, v_type3)
 Implements a const method with 3 parameters for a mock object.
#define MOCKPP_VOID_VISITABLE4(classname, name, type1, type2, type3, type4)
 Implements a method with 4 parameters for a mock object.
#define MOCKPP_VOID_CONST_VISITABLE4(classname, name, type1, type2, type3, type4)
 Implements a const method with 4 parameters for a mock object.
#define MOCKPP_VOID_VISITABLE_EXT4(classname, m_name, m_type1, m_type2, m_type3, m_type4, x_name, v_type1, v_type2, v_type3, v_type4)
 Implements a method with 4 parameters for a mock object.
#define MOCKPP_VOID_CONST_VISITABLE_EXT4(classname, m_name, m_type1, m_type2, m_type3, m_type4, x_name, v_type1, v_type2, v_type3, v_type4)
 Implements a const method with 4 parameters for a mock object.
#define MOCKPP_VOID_VISITABLE5(classname, name, type1, type2, type3, type4, type5)
 Implements a method with 5 parameters for a mock object.
#define MOCKPP_VOID_CONST_VISITABLE5(classname, name, type1, type2, type3, type4, type5)
 Implements a const method with 5 parameters for a mock object.
#define MOCKPP_VOID_VISITABLE_EXT5(classname, m_name, m_type1, m_type2, m_type3, m_type4, m_type5, x_name, v_type1, v_type2, v_type3, v_type4, v_type5)
 Implements a method with 5 parameters for a mock object.
#define MOCKPP_VOID_CONST_VISITABLE_EXT5(classname, m_name, m_type1, m_type2, m_type3, m_type4, m_type5, x_name, v_type1, v_type2, v_type3, v_type4, v_type5)
 Implements a const method with 5 parameters for a mock object.
#define MOCKPP_VISITABLE0(classname, ret_type, name)
 Implements a method with no parameters for a mock object.
#define MOCKPP_CONST_VISITABLE0(classname, ret_type, name)
 Implements a const method with no parameters for a mock object.
#define MOCKPP_VISITABLE_EXT0(classname, m_ret_type, m_name, v_ret_type, x_name)
 Implements a method with no parameters for a mock object.
#define MOCKPP_CONST_VISITABLE_EXT0(classname, m_ret_type, m_name, v_ret_type, x_name)
 Implements a const method with no parameters for a mock object.
#define MOCKPP_VISITABLE1(classname, ret_type, name, type1)
 Implements a method with 1 parameter for a mock object.
#define MOCKPP_CONST_VISITABLE1(classname, ret_type, name, type1)
 Implements a const method with 1 parameter for a mock object.
#define MOCKPP_VISITABLE_EXT1(classname, m_ret_type, m_name, m_type1, v_ret_type, x_name, v_type1)
 Implements a method with 1 parameter for a mock object.
#define MOCKPP_CONST_VISITABLE_EXT1(classname, m_ret_type, m_name, m_type1, v_ret_type, x_name, v_type1)
 Implements a const method with 1 parameter for a mock object.
#define MOCKPP_VISITABLE2(classname, ret_type, name, type1, type2)
 Implements a method with 2 parameters for a mock object.
#define MOCKPP_CONST_VISITABLE2(classname, ret_type, name, type1, type2)
 Implements a const method with 2 parameters for a mock object.
#define MOCKPP_VISITABLE_EXT2(classname, m_ret_type, m_name, m_type1, m_type2, v_ret_type, x_name, v_type1, v_type2)
 Implements a method with 2 parameters for a mock object.
#define MOCKPP_CONST_VISITABLE_EXT2(classname, m_ret_type, m_name, m_type1, m_type2, v_ret_type, x_name, v_type1, v_type2)
 Implements a const method with 2 parameters for a mock object.
#define MOCKPP_VISITABLE3(classname, ret_type, name, type1, type2, type3)
 Implements a method with 3 parameters for a mock object.
#define MOCKPP_CONST_VISITABLE3(classname, ret_type, name, type1, type2, type3)
 Implements a const method with 3 parameters for a mock object.
#define MOCKPP_VISITABLE_EXT3(classname, m_ret_type, m_name, m_type1, m_type2, m_type3, v_ret_type, x_name, v_type1, v_type2, v_type3)
 Implements a method with 3 parameters for a mock object.
#define MOCKPP_CONST_VISITABLE_EXT3(classname, m_ret_type, m_name, m_type1, m_type2, m_type3, v_ret_type, x_name, v_type1, v_type2, v_type3)
 Implements a const method with 3 parameters for a mock object.
#define MOCKPP_VISITABLE4(classname, ret_type, name, type1, type2, type3, type4)
 Implements a method with 4 parameters for a mock object.
#define MOCKPP_CONST_VISITABLE4(classname, ret_type, name, type1, type2, type3, type4)
 Implements a const method with 4 parameters for a mock object.
#define MOCKPP_VISITABLE_EXT4(classname, m_ret_type, m_name, m_type1, m_type2, m_type3, m_type4, v_ret_type, x_name, v_type1, v_type2, v_type3, v_type4)
 Implements a method with 4 parameters for a mock object.
#define MOCKPP_CONST_VISITABLE_EXT4(classname, m_ret_type, m_name, m_type1, m_type2, m_type3, m_type4, v_ret_type, x_name, v_type1, v_type2, v_type3, v_type4)
 Implements a const method with 4 parameters for a mock object.
#define MOCKPP_VISITABLE5(classname, ret_type, name, type1, type2, type3, type4, type5)
 Implements a method with 5 parameters for a mock object.
#define MOCKPP_CONST_VISITABLE5(classname, ret_type, name, type1, type2, type3, type4, type5)
 Implements a const method with 5 parameters for a mock object.
#define MOCKPP_VISITABLE_EXT5(classname, m_ret_type, m_name, m_type1, m_type2, m_type3, m_type4, m_type5, v_ret_type, x_name, v_type1, v_type2, v_type3, v_type4, v_type5)
 Implements a method with 5 parameters for a mock object.
#define MOCKPP_CONST_VISITABLE_EXT5(classname, m_ret_type, m_name, m_type1, m_type2, m_type3, m_type4, m_type5, v_ret_type, x_name, v_type1, v_type2, v_type3, v_type4, v_type5)
 Implements a const method with 5 parameters for a mock object.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE0(name)   MOCKPP_CONSTRUCT_BASE_VISITABLE_MEMBERS(name)
 Implements the initializers for the internal variables of a void method with 0 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE_EXT0(m_name, x_name)   MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE0(m_name ## x_name)
 Implements the initializers for the internal variables of a void method with no parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE1(name)
 Implements the initializers for the internal variables of a void method with 1 parameter.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE_EXT1(m_name, x_name)   MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE1(m_name ## x_name)
 Implements the initializers for the internal variables of a void method with 1 parameter.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE2(name)
 Implements the initializers for the internal variables of a void method with 2 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE_EXT2(m_name, x_name)   MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE2(m_name ## x_name)
 Implements the initializers for the internal variables of a void method with 2 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE3(name)
 Implements the initializers for the internal variables of a void method with 3 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE_EXT3(m_name, x_name)   MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE3(m_name ## x_name)
 Implements the initializers for the internal variables of a void method with 3 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE4(name)
 Implements the initializers for the internal variables of a void method with 4 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE_EXT4(m_name, x_name)   MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE4(m_name ## x_name)
 Implements the initializers for the internal variables of a void method with 4 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE5(name)
 Implements the initializers for the internal variables of a void method with 5 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE_EXT5(m_name, x_name)   MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE5(m_name ## x_name)
 Implements the initializers for the internal variables of a void method with 5 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE0(name)
 Implements the initializers for the internal variables of a method with 0 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE_EXT0(m_name, x_name)   MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE0(m_name ## x_name)
 Implements the initializers for the internal variables of a method with no parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE1(name)
 Implements the initializers for the internal variables of a method with 1 parameter.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE_EXT1(m_name, x_name)   MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE1(m_name ## x_name)
 Implements the initializers for the internal variables of a method with 1 parameter.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE2(name)
 Implements the initializers for the internal variables of a method with 2 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE_EXT2(m_name, x_name)   MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE2(m_name ## x_name)
 Implements the initializers for the internal variables of a method with 2 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE3(name)
 Implements the initializers for the internal variables of a method with 3 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE_EXT3(m_name, x_name)   MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE3(m_name ## x_name)
 Implements the initializers for the internal variables of a method with 3 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE4(name)
 Implements the initializers for the internal variables of a method with 4 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE_EXT4(m_name, x_name)   MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE4(m_name ## x_name)
 Implements the initializers for the internal variables of a method with 4 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE5(name)
 Implements the initializers for the internal variables of a method with 5 parameters.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE_EXT5(m_name, x_name)   MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE5(m_name ## x_name)
 Implements the initializers for the internal variables of a method with 5 parameters.

Detailed Description

MockObjects that can be visited under control.

Id
VisitableMockObject.h 1491 2010-01-02 22:21:45Z ewald-arnold

Definition in file VisitableMockObject.h.


Define Documentation

#define MOCKPP_CONST_VISITABLE0 ( classname,
ret_type,
name   ) 
Value:
public: \
    ret_type name() const \
  MOCKPP_VISITABLE0_IMPL(classname, ret_type, name, \
                                    ret_type)

Implements a const method with no parameters for a mock object.

Parameters:
classname the name of the mock class to which the method belongs
ret_type the data type of the return value
name the method name

Definition at line 988 of file VisitableMockObject.h.

#define MOCKPP_CONST_VISITABLE1 ( classname,
ret_type,
name,
type1   ) 
Value:
public: \
    ret_type name(const type1 &param1) const \
  MOCKPP_VISITABLE1_IMPL(classname, ret_type, name, const type1 &, \
                                    ret_type, name, type1)

Implements a const method with 1 parameter for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
ret_type the data type of the return value
name the method name
type1 the data type of the 1. parameter

Definition at line 1049 of file VisitableMockObject.h.

#define MOCKPP_CONST_VISITABLE2 ( classname,
ret_type,
name,
type1,
type2   ) 
Value:
public: \
    ret_type name(const type1 &param1, const type2 &param2) const \
  MOCKPP_VISITABLE2_IMPL(classname, ret_type, name, const type1 &, const type2 &, \
                                    ret_type, name, type1,         type2)

Implements a const method with 2 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
ret_type the data type of the return value
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter

Definition at line 1115 of file VisitableMockObject.h.

#define MOCKPP_CONST_VISITABLE3 ( classname,
ret_type,
name,
type1,
type2,
type3   ) 
Value:
public: \
    ret_type name(const type1 &param1, const type2 &param2, const type3 &param3) const \
  MOCKPP_VISITABLE3_IMPL(classname, ret_type, name, const type1 &, const type2 &, const type3, \
                                    ret_type, name, type1,         type2,         type3)

Implements a const method with 3 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
ret_type the data type of the return value
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter
type3 the data type of the 3. parameter

Definition at line 1188 of file VisitableMockObject.h.

#define MOCKPP_CONST_VISITABLE4 ( classname,
ret_type,
name,
type1,
type2,
type3,
type4   ) 
Value:
public: \
    ret_type name(const type1 &param1, const type2 &param2, const type3 &param3, const type4 &param4) const \
  MOCKPP_VISITABLE4_IMPL(classname, ret_type, name, const type1 &, const type2 &, const type3 &, const type4 &, \
                                    ret_type, name, type1,         type2,         type3,         type4)

Implements a const method with 4 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
ret_type the data type of the return value
classname the name of the mock class to which the method belongs
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter
type3 the data type of the 3. parameter
type4 the data type of the 4. parameter

Definition at line 1267 of file VisitableMockObject.h.

#define MOCKPP_CONST_VISITABLE5 ( classname,
ret_type,
name,
type1,
type2,
type3,
type4,
type5   ) 
Value:
public: \
    ret_type name(const type1 &param1, const type2 &param2, const type3 &param3, const type4 &param4, const type5 &param5) const \
  MOCKPP_VISITABLE5_IMPL(classname, ret_type, name, const type1 &, const type2 &, const type3 &, const type4 &, const type5 &, \
                                    ret_type, name, type1,         type2,         type3,         type4,         type5)

Implements a const method with 5 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
ret_type the data type of the return value
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter
type3 the data type of the 3. parameter
type4 the data type of the 4. parameter
type5 the data type of the 5. parameter

Definition at line 1352 of file VisitableMockObject.h.

#define MOCKPP_CONST_VISITABLE_EXT0 ( classname,
m_ret_type,
m_name,
v_ret_type,
x_name   ) 
Value:
public: \
    m_ret_type m_name() const \
  MOCKPP_VISITABLE0_IMPL(classname, m_ret_type, m_name ## x_name, \
                                    v_ret_type)

Implements a const method with no parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_ret_type the data type of the return value
m_name the method name
v_ret_type the data type of the internal return value respesentation
x_name optional extension for the internal variable names based on the method name

Definition at line 1020 of file VisitableMockObject.h.

#define MOCKPP_CONST_VISITABLE_EXT1 ( classname,
m_ret_type,
m_name,
m_type1,
v_ret_type,
x_name,
v_type1   ) 
Value:
public: \
    m_ret_type m_name(m_type1 param1) const \
  MOCKPP_VISITABLE1_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, \
                                    v_ret_type, m_name,           v_type1)

Implements a const method with 1 parameter for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_ret_type the data type of the return value
m_name the method name
m_type1 the data type of the 1. method parameter
v_ret_type the data type of the internal return value respesentation
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter

Definition at line 1085 of file VisitableMockObject.h.

#define MOCKPP_CONST_VISITABLE_EXT2 ( classname,
m_ret_type,
m_name,
m_type1,
m_type2,
v_ret_type,
x_name,
v_type1,
v_type2   ) 
Value:
public: \
    m_ret_type m_name(m_type1 param1, m_type2 param2) const \
  MOCKPP_VISITABLE2_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, \
                                    v_ret_type, m_name,           v_type1, v_type2)

Implements a const method with 2 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_ret_type the data type of the return value
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
v_ret_type the data type of the internal return value respesentation
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter

Definition at line 1155 of file VisitableMockObject.h.

#define MOCKPP_CONST_VISITABLE_EXT3 ( classname,
m_ret_type,
m_name,
m_type1,
m_type2,
m_type3,
v_ret_type,
x_name,
v_type1,
v_type2,
v_type3   ) 
Value:
public: \
    m_ret_type m_name(m_type1 param1, m_type2 param2, m_type3 param3) const \
  MOCKPP_VISITABLE3_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, m_type3, \
                                    v_ret_type, m_name,           v_type1, v_type2, v_type3)

Implements a const method with 3 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_ret_type the data type of the return value
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
m_type3 the data type of the 3. method parameter
v_ret_type the data type of the internal return value respesentation
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter
v_type3 the data type of the internal variable of 3. parameter

Definition at line 1232 of file VisitableMockObject.h.

#define MOCKPP_CONST_VISITABLE_EXT4 ( classname,
m_ret_type,
m_name,
m_type1,
m_type2,
m_type3,
m_type4,
v_ret_type,
x_name,
v_type1,
v_type2,
v_type3,
v_type4   ) 
Value:
public: \
    m_ret_type m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4) const \
  MOCKPP_VISITABLE4_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, m_type3, m_type4, \
                                    v_ret_type, m_name,           v_type1, v_type2, v_type3, v_type4)

Implements a const method with 4 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_ret_type the data type of the return value
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
m_type3 the data type of the 3. method parameter
m_type4 the data type of the 4. method parameter
v_ret_type the data type of the internal return value respesentation
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter
v_type3 the data type of the internal variable of 3. parameter
v_type4 the data type of the internal variable of 4. parameter

Definition at line 1315 of file VisitableMockObject.h.

#define MOCKPP_CONST_VISITABLE_EXT5 ( classname,
m_ret_type,
m_name,
m_type1,
m_type2,
m_type3,
m_type4,
m_type5,
v_ret_type,
x_name,
v_type1,
v_type2,
v_type3,
v_type4,
v_type5   ) 
Value:
public: \
    m_ret_type m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4, m_type5 param5) const \
  MOCKPP_VISITABLE5_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, m_type3, m_type4, m_type5, \
                                    v_ret_type, m_name,           v_type1, v_type2, v_type3, v_type4, v_type5)

Implements a const method with 5 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_ret_type the data type of the return value
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
m_type3 the data type of the 3. method parameter
m_type4 the data type of the 4. method parameter
m_type5 the data type of the 5. method parameter
v_ret_type the data type of the internal return value respesentation
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter
v_type3 the data type of the internal variable of 3. parameter
v_type4 the data type of the internal variable of 4. parameter
v_type5 the data type of the internal variable of 5. parameter

Definition at line 1404 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE0 ( name   ) 
Value:
MOCKPP_CONSTRUCT_BASE_VISITABLE_MEMBERS(name), \
    MOCKPP_CONSTRUCT_RETURN_VISITABLE_MEMBERS(name)

Implements the initializers for the internal variables of a method with 0 parameters.

Parameters:
name the method name

Definition at line 1520 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE1 ( name   ) 
Value:
MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE0(name), \
    MOCKPP_CONSTRUCT_PARAMETER1_VISITABLE_MEMBERS(name)

Implements the initializers for the internal variables of a method with 1 parameter.

Parameters:
name the method name

Definition at line 1537 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE2 ( name   ) 
Value:
MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE0(name), \
    MOCKPP_CONSTRUCT_PARAMETER2_VISITABLE_MEMBERS(name)

Implements the initializers for the internal variables of a method with 2 parameters.

Parameters:
name the method name

Definition at line 1554 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE3 ( name   ) 
Value:
MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE0(name), \
    MOCKPP_CONSTRUCT_PARAMETER3_VISITABLE_MEMBERS(name)

Implements the initializers for the internal variables of a method with 3 parameters.

Parameters:
name the method name

Definition at line 1571 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE4 ( name   ) 
Value:
MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE0(name), \
    MOCKPP_CONSTRUCT_PARAMETER4_VISITABLE_MEMBERS(name)

Implements the initializers for the internal variables of a method with 4 parameters.

Parameters:
name the method name

Definition at line 1588 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE5 ( name   ) 
Value:
MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE0(name), \
    MOCKPP_CONSTRUCT_PARAMETER5_VISITABLE_MEMBERS(name)

Implements the initializers for the internal variables of a method with 5 parameters.

Parameters:
name the method name

Definition at line 1605 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE_EXT0 ( m_name,
x_name   )     MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE0(m_name ## x_name)

Implements the initializers for the internal variables of a method with no parameters.

Parameters:
m_name the method name
x_name extension for internal naming

Definition at line 1529 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE_EXT1 ( m_name,
x_name   )     MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE1(m_name ## x_name)

Implements the initializers for the internal variables of a method with 1 parameter.

Parameters:
m_name the method name
x_name extension for internal naming

Definition at line 1546 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE_EXT2 ( m_name,
x_name   )     MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE2(m_name ## x_name)

Implements the initializers for the internal variables of a method with 2 parameters.

Parameters:
m_name the method name
x_name extension for internal naming

Definition at line 1563 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE_EXT3 ( m_name,
x_name   )     MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE3(m_name ## x_name)

Implements the initializers for the internal variables of a method with 3 parameters.

Parameters:
m_name the method name
x_name extension for internal naming

Definition at line 1580 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE_EXT4 ( m_name,
x_name   )     MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE4(m_name ## x_name)

Implements the initializers for the internal variables of a method with 4 parameters.

Parameters:
m_name the method name
x_name extension for internal naming

Definition at line 1597 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE_EXT5 ( m_name,
x_name   )     MOCKPP_CONSTRUCT_MEMBERS_FOR_VISITABLE5(m_name ## x_name)

Implements the initializers for the internal variables of a method with 5 parameters.

Parameters:
m_name the method name
x_name extension for internal naming

Definition at line 1614 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE0 ( name   )     MOCKPP_CONSTRUCT_BASE_VISITABLE_MEMBERS(name)

Implements the initializers for the internal variables of a void method with 0 parameters.

Parameters:
name the method name

Definition at line 1417 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE1 ( name   ) 
Value:
MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE0(name), \
    MOCKPP_CONSTRUCT_PARAMETER1_VISITABLE_MEMBERS(name)

Implements the initializers for the internal variables of a void method with 1 parameter.

Parameters:
name the method name

Definition at line 1433 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE2 ( name   ) 
Value:
MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE0(name), \
    MOCKPP_CONSTRUCT_PARAMETER2_VISITABLE_MEMBERS(name)

Implements the initializers for the internal variables of a void method with 2 parameters.

Parameters:
name the method name

Definition at line 1450 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE3 ( name   ) 
Value:
MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE0(name), \
    MOCKPP_CONSTRUCT_PARAMETER3_VISITABLE_MEMBERS(name)

Implements the initializers for the internal variables of a void method with 3 parameters.

Parameters:
name the method name

Definition at line 1467 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE4 ( name   ) 
Value:
MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE0(name), \
    MOCKPP_CONSTRUCT_PARAMETER4_VISITABLE_MEMBERS(name)

Implements the initializers for the internal variables of a void method with 4 parameters.

Parameters:
name the method name

Definition at line 1484 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE5 ( name   ) 
Value:
MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE0(name), \
    MOCKPP_CONSTRUCT_PARAMETER5_VISITABLE_MEMBERS(name)

Implements the initializers for the internal variables of a void method with 5 parameters.

Parameters:
name the method name

Definition at line 1501 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE_EXT0 ( m_name,
x_name   )     MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE0(m_name ## x_name)

Implements the initializers for the internal variables of a void method with no parameters.

Parameters:
m_name the method name
x_name extension for internal naming

Definition at line 1425 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE_EXT1 ( m_name,
x_name   )     MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE1(m_name ## x_name)

Implements the initializers for the internal variables of a void method with 1 parameter.

Parameters:
m_name the method name
x_name extension for internal naming

Definition at line 1442 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE_EXT2 ( m_name,
x_name   )     MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE2(m_name ## x_name)

Implements the initializers for the internal variables of a void method with 2 parameters.

Parameters:
m_name the method name
x_name extension for internal naming

Definition at line 1459 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE_EXT3 ( m_name,
x_name   )     MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE3(m_name ## x_name)

Implements the initializers for the internal variables of a void method with 3 parameters.

Parameters:
m_name the method name
x_name extension for internal naming

Definition at line 1476 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE_EXT4 ( m_name,
x_name   )     MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE4(m_name ## x_name)

Implements the initializers for the internal variables of a void method with 4 parameters.

Parameters:
m_name the method name
x_name extension for internal naming

Definition at line 1493 of file VisitableMockObject.h.

#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE_EXT5 ( m_name,
x_name   )     MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_VISITABLE5(m_name ## x_name)

Implements the initializers for the internal variables of a void method with 5 parameters.

Parameters:
m_name the method name
x_name extension for internal naming

Definition at line 1510 of file VisitableMockObject.h.

#define MOCKPP_VISITABLE0 ( classname,
ret_type,
name   ) 
Value:
public: \
    ret_type name() \
  MOCKPP_VISITABLE0_IMPL(classname, ret_type, name, \
                                    ret_type)

Implements a method with no parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
ret_type the data type of the return value
name the method name

Definition at line 977 of file VisitableMockObject.h.

#define MOCKPP_VISITABLE1 ( classname,
ret_type,
name,
type1   ) 
Value:
public: \
    ret_type name(const type1 &param1) \
  MOCKPP_VISITABLE1_IMPL(classname, ret_type, name, const type1 &, \
                                    ret_type, name, type1)

Implements a method with 1 parameter for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
ret_type the data type of the return value
name the method name
type1 the data type of the 1. parameter

Definition at line 1036 of file VisitableMockObject.h.

#define MOCKPP_VISITABLE2 ( classname,
ret_type,
name,
type1,
type2   ) 
Value:
public: \
    ret_type name(const type1 &param1, const type2 &param2) \
  MOCKPP_VISITABLE2_IMPL(classname, ret_type, name, const type1 &, const type2 &, \
                                    ret_type, name, type1,         type2)

Implements a method with 2 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
ret_type the data type of the return value
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter

Definition at line 1101 of file VisitableMockObject.h.

#define MOCKPP_VISITABLE3 ( classname,
ret_type,
name,
type1,
type2,
type3   ) 
Value:
public: \
    ret_type name(const type1 &param1, const type2 &param2, const type3 &param3) \
  MOCKPP_VISITABLE3_IMPL(classname, ret_type, name, const type1 &, const type2 &, const type3, \
                                    ret_type, name, type1,         type2,         type3)

Implements a method with 3 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
ret_type the data type of the return value
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter
type3 the data type of the 3. parameter

Definition at line 1173 of file VisitableMockObject.h.

#define MOCKPP_VISITABLE4 ( classname,
ret_type,
name,
type1,
type2,
type3,
type4   ) 
Value:
public: \
    ret_type name(const type1 &param1, const type2 &param2, const type3 &param3, const type4 &param4) \
  MOCKPP_VISITABLE4_IMPL(classname, ret_type, name, const m_type1 &, const type2 &, const type3 &, const type4 &, \
                                    ret_type, name, type1,           type2,         type3,         type4)

Implements a method with 4 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
ret_type the data type of the return value
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter
type3 the data type of the 3. parameter
type4 the data type of the 4. parameter

Definition at line 1251 of file VisitableMockObject.h.

#define MOCKPP_VISITABLE5 ( classname,
ret_type,
name,
type1,
type2,
type3,
type4,
type5   ) 
Value:
public: \
    ret_type name(const type1 &param1, const type2 &param2, const type3 &param3, const type4 &param4, const type5 &param5) \
  MOCKPP_VISITABLE5_IMPL(classname, ret_type, name, const type1 &, const type2 &, const type3 &, const type4 &, const type5 &, \
                                    ret_type, name, type1,         type2,         type3,         type4,         type5)

Implements a method with 5 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
ret_type the data type of the return value
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter
type3 the data type of the 3. parameter
type4 the data type of the 4. parameter
type5 the data type of the 5. parameter

Definition at line 1335 of file VisitableMockObject.h.

#define MOCKPP_VISITABLE_EXT0 ( classname,
m_ret_type,
m_name,
v_ret_type,
x_name   ) 
Value:
public: \
    m_ret_type m_name() \
  MOCKPP_VISITABLE0_IMPL(classname, m_ret_type, m_name ## x_name, \
                                    v_ret_type)

Implements a method with no parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_ret_type the data type of the return value
m_name the method name
v_ret_type the data type of the internal return value respesentation
x_name optional extension for the internal variable names based on the method name

Definition at line 1004 of file VisitableMockObject.h.

#define MOCKPP_VISITABLE_EXT1 ( classname,
m_ret_type,
m_name,
m_type1,
v_ret_type,
x_name,
v_type1   ) 
Value:
public: \
    m_ret_type m_name(m_type1 param1) \
  MOCKPP_VISITABLE1_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, \
                                    v_ret_type, m_name,           v_type1)

Implements a method with 1 parameter for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_ret_type the data type of the return value
m_name the method name
m_type1 the data type of the 1. method parameter
v_ret_type the data type of the internal return value respesentation
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter

Definition at line 1067 of file VisitableMockObject.h.

#define MOCKPP_VISITABLE_EXT2 ( classname,
m_ret_type,
m_name,
m_type1,
m_type2,
v_ret_type,
x_name,
v_type1,
v_type2   ) 
Value:
public: \
    m_ret_type m_name(m_type1 param1, m_type2 param2) \
  MOCKPP_VISITABLE2_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, \
                                    v_ret_type, m_name,           v_type1, v_type2)

Implements a method with 2 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_ret_type the data type of the return value
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
v_ret_type the data type of the internal return value respesentation
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter

Definition at line 1135 of file VisitableMockObject.h.

#define MOCKPP_VISITABLE_EXT3 ( classname,
m_ret_type,
m_name,
m_type1,
m_type2,
m_type3,
v_ret_type,
x_name,
v_type1,
v_type2,
v_type3   ) 
Value:
public: \
    m_ret_type m_name(m_type1 param1, m_type2 param2, m_type3 param3) \
  MOCKPP_VISITABLE3_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, m_type3, \
                                    v_ret_type, m_name,           v_type1, v_type2, v_type3)

Implements a method with 3 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_ret_type the data type of the return value
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
m_type3 the data type of the 3. method parameter
v_ret_type the data type of the internal return value respesentation
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter
v_type3 the data type of the internal variable of 3. parameter

Definition at line 1210 of file VisitableMockObject.h.

#define MOCKPP_VISITABLE_EXT4 ( classname,
m_ret_type,
m_name,
m_type1,
m_type2,
m_type3,
m_type4,
v_ret_type,
x_name,
v_type1,
v_type2,
v_type3,
v_type4   ) 
Value:
public: \
    m_ret_type m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4) \
  MOCKPP_VISITABLE4_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, m_type3, m_type4, \
                                    v_ret_type, m_name,           v_type1, v_type2, v_type3, v_type4)

Implements a method with 4 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_ret_type the data type of the return value
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
m_type3 the data type of the 3. method parameter
m_type4 the data type of the 4. method parameter
v_ret_type the data type of the internal return value respesentation
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter
v_type3 the data type of the internal variable of 3. parameter
v_type4 the data type of the internal variable of 4. parameter

Definition at line 1291 of file VisitableMockObject.h.

#define MOCKPP_VISITABLE_EXT5 ( classname,
m_ret_type,
m_name,
m_type1,
m_type2,
m_type3,
m_type4,
m_type5,
v_ret_type,
x_name,
v_type1,
v_type2,
v_type3,
v_type4,
v_type5   ) 
Value:
public: \
    m_ret_type m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4, m_type5 param5) \
  MOCKPP_VISITABLE5_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, m_type3, m_type4, m_type5, \
                                    v_ret_type, m_name,           v_type1, v_type2, v_type3, v_type4, v_type5)

Implements a method with 5 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_ret_type the data type of the return value
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
m_type3 the data type of the 3. method parameter
m_type4 the data type of the 4. method parameter
m_type5 the data type of the 5. method parameter
v_ret_type the data type of the internal return value respesentation
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter
v_type3 the data type of the internal variable of 3. parameter
v_type4 the data type of the internal variable of 4. parameter
v_type5 the data type of the internal variable of 5. parameter

Definition at line 1378 of file VisitableMockObject.h.

#define MOCKPP_VOID_CONST_VISITABLE0 ( classname,
name   ) 
Value:
public: \
    void name() const \
  MOCKPP_VOID_VISITABLE0_IMPL(classname, name)

Implements a const method with 0 parameters for a mock object.

Parameters:
classname the name of the mock class to which the method belongs
name the method name

Definition at line 588 of file VisitableMockObject.h.

#define MOCKPP_VOID_CONST_VISITABLE1 ( classname,
name,
type1   ) 
Value:
public: \
    void name(const type1 &param1) const \
  MOCKPP_VOID_VISITABLE1_IMPL(classname, name, const type1 &, \
                                         name, type1)

Implements a const method with 1 parameter for a mock object.

Parameters:
classname the name of the mock class to which the method belongs
name the method name
type1 the data type of the 1. parameter

Definition at line 639 of file VisitableMockObject.h.

#define MOCKPP_VOID_CONST_VISITABLE2 ( classname,
name,
type1,
type2   ) 
Value:
public: \
    void name(const type1 &param1, const type2 &param2) const \
  MOCKPP_VOID_VISITABLE2_IMPL(classname, name, const type1 &, const type2 &,  \
                                         name, type1,         type2)

Implements a const method with 2 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter

Definition at line 699 of file VisitableMockObject.h.

#define MOCKPP_VOID_CONST_VISITABLE3 ( classname,
name,
type1,
type2,
type3   ) 
Value:
public: \
    void name(const type1 &param1, const type2 &param2, const type3 &param3) const \
  MOCKPP_VOID_VISITABLE3_IMPL(classname, name, const type1 &, const type2 &, const type3 &, \
                                         name, type1,         type2,         type3)

Implements a const method with 3 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter
type3 the data type of the 3. parameter

Definition at line 765 of file VisitableMockObject.h.

#define MOCKPP_VOID_CONST_VISITABLE4 ( classname,
name,
type1,
type2,
type3,
type4   ) 
Value:
public: \
    void name(const type1 &param1, const type2 &param2, const type3 &param3, const type4 &param4) const\
  MOCKPP_VOID_VISITABLE4_IMPL(classname, name, const type1 &, const type2 &, const type3 &, const type4 &, \
                                         name, type1,         type2,         type3,         type4)

Implements a const method with 4 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter
type3 the data type of the 3. parameter
type4 the data type of the 4. parameter

Definition at line 837 of file VisitableMockObject.h.

#define MOCKPP_VOID_CONST_VISITABLE5 ( classname,
name,
type1,
type2,
type3,
type4,
type5   ) 
Value:
public: \
    void name(const type1 &param1, const type2 &param2, const type3 &param3, const type4 &param4, const type5 &param5) const \
  MOCKPP_VOID_VISITABLE5_IMPL(classname, name, const type1 &, const type2 &, const type3 &, const type4 &, const type5 &, \
                                         name, type1,         type2,         type3,         type4,         type5)

Implements a const method with 5 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter
type3 the data type of the 3. parameter
type4 the data type of the 4. parameter
type5 the data type of the 5. parameter

Definition at line 915 of file VisitableMockObject.h.

#define MOCKPP_VOID_CONST_VISITABLE_EXT0 ( classname,
m_name,
x_name   ) 
Value:
public: \
    void m_name() const \
  MOCKPP_VOID_VISITABLE0_IMPL(classname, m_name ## x_name)

Implements a const method with 0 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_name the method name
x_name optional extension for the internal variable names based on the method name

Definition at line 615 of file VisitableMockObject.h.

#define MOCKPP_VOID_CONST_VISITABLE_EXT1 ( classname,
m_name,
m_type1,
x_name,
v_type1   ) 
Value:
public: \
    void m_name(m_type1 param1) const \
  MOCKPP_VOID_VISITABLE1_IMPL(classname, m_name ## x_name, m_type1, \
                                         m_name,           v_type1)

Implements a const method with 1 parameter for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_name the method name
m_type1 the data type of the 1. method parameter
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter

Definition at line 671 of file VisitableMockObject.h.

#define MOCKPP_VOID_CONST_VISITABLE_EXT2 ( classname,
m_name,
m_type1,
m_type2,
x_name,
v_type1,
v_type2   ) 
Value:
public: \
    void m_name(m_type1 param1, m_type2 param2) const \
  MOCKPP_VOID_VISITABLE2_IMPL(classname, m_name ## x_name, m_type1, m_type2,  \
                                         m_name,           v_type1, v_type2)

Implements a const method with 2 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter

Definition at line 735 of file VisitableMockObject.h.

#define MOCKPP_VOID_CONST_VISITABLE_EXT3 ( classname,
m_name,
m_type1,
m_type2,
m_type3,
x_name,
v_type1,
v_type2,
v_type3   ) 
Value:
public: \
    void m_name(m_type1 param1, m_type2 param2, m_type3 param3) const \
  MOCKPP_VOID_VISITABLE3_IMPL(classname, m_name ## x_name, m_type1, m_type2, m_type3, \
                                         m_name,           v_type1, v_type2, v_type3)

Implements a const method with 3 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
m_type3 the data type of the 3. method parameter
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter
v_type3 the data type of the internal variable of 3. parameter

Definition at line 805 of file VisitableMockObject.h.

#define MOCKPP_VOID_CONST_VISITABLE_EXT4 ( classname,
m_name,
m_type1,
m_type2,
m_type3,
m_type4,
x_name,
v_type1,
v_type2,
v_type3,
v_type4   ) 
Value:
public: \
    void m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4) const\
  MOCKPP_VOID_VISITABLE4_IMPL(classname, m_name ## x_name, m_type1, m_type2, m_type3, m_type4, \
                                         m_name,           v_type1, v_type2, v_type3, v_type4)

Implements a const method with 4 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
m_type3 the data type of the 3. method parameter
m_type4 the data type of the 4. method parameter
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter
v_type3 the data type of the internal variable of 3. parameter
v_type4 the data type of the internal variable of 4. parameter

Definition at line 881 of file VisitableMockObject.h.

#define MOCKPP_VOID_CONST_VISITABLE_EXT5 ( classname,
m_name,
m_type1,
m_type2,
m_type3,
m_type4,
m_type5,
x_name,
v_type1,
v_type2,
v_type3,
v_type4,
v_type5   ) 
Value:
public: \
    void m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4, m_type5 param5) const \
  MOCKPP_VOID_VISITABLE5_IMPL(classname, m_name ## x_name, m_type1, m_type2, m_type3, m_type4, m_type5, \
                                         m_name,           v_type1, v_type2, v_type3, v_type4, v_type5)

Implements a const method with 5 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
m_type3 the data type of the 3. method parameter
m_type4 the data type of the 4. method parameter
m_type5 the data type of the 5. method parameter
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter
v_type3 the data type of the internal variable of 3. parameter
v_type4 the data type of the internal variable of 4. parameter
v_type5 the data type of the internal variable of 5. parameter

Definition at line 963 of file VisitableMockObject.h.

#define MOCKPP_VOID_VISITABLE0 ( classname,
name   ) 
Value:
public: \
    void name() \
  MOCKPP_VOID_VISITABLE0_IMPL(classname, name)

Implements a method with 0 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
name the method name

Definition at line 579 of file VisitableMockObject.h.

#define MOCKPP_VOID_VISITABLE1 ( classname,
name,
type1   ) 
Value:
public: \
    void name(const type1 &param1) \
  MOCKPP_VOID_VISITABLE1_IMPL(classname, name, const type1 &, \
                                         name, type1)

Implements a method with 1 parameter for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
name the method name
type1 the data type of the 1. parameter

Definition at line 628 of file VisitableMockObject.h.

#define MOCKPP_VOID_VISITABLE2 ( classname,
name,
type1,
type2   ) 
Value:
public: \
    void name(const type1 &param1, const type2 &param2) \
  MOCKPP_VOID_VISITABLE2_IMPL(classname, name, const type1 &, const type2 &,  \
                                         name, type1,         type2)

Implements a method with 2 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter

Definition at line 686 of file VisitableMockObject.h.

#define MOCKPP_VOID_VISITABLE3 ( classname,
name,
type1,
type2,
type3   ) 
Value:
public: \
    void name(const type1 &param1, const type2 &param2, const type3 &param3) \
  MOCKPP_VOID_VISITABLE3_IMPL(classname, name, const type1 &, const type2 &, const type3 &, \
                                         name, type1,         type2,         type3)

Implements a method with 3 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter
type3 the data type of the 3. parameter

Definition at line 751 of file VisitableMockObject.h.

#define MOCKPP_VOID_VISITABLE4 ( classname,
name,
type1,
type2,
type3,
type4   ) 
Value:
public: \
    void name(const type1 &param1, const type2 &param2, const type3 &param3, const type4 &param4) \
  MOCKPP_VOID_VISITABLE4_IMPL(classname, name, const type1 &, const type2 &, const type3 &, const type4 &, \
                                         name, type1,         type2,         type3,         type4)

Implements a method with 4 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter
type3 the data type of the 3. parameter
type4 the data type of the 4. parameter

Definition at line 822 of file VisitableMockObject.h.

#define MOCKPP_VOID_VISITABLE5 ( classname,
name,
type1,
type2,
type3,
type4,
type5   ) 
Value:
public: \
    void name(const type1 &param1, const type2 &param2, const type3 &param3, const type4 &param4, const type5 &param5) \
  MOCKPP_VOID_VISITABLE5_IMPL(classname, name, const type1 &, const type2 &, const type3 &, const type4 &, const type5 &, \
                                         name, type1,         type2,         type3,         type4,         type5)

Implements a method with 5 parameters for a mock object.

Serves also as a backwards compatibility macro.

Parameters:
classname the name of the mock class to which the method belongs
name the method name
type1 the data type of the 1. parameter
type2 the data type of the 2. parameter
type3 the data type of the 3. parameter
type4 the data type of the 4. parameter
type5 the data type of the 5. parameter

Definition at line 899 of file VisitableMockObject.h.

#define MOCKPP_VOID_VISITABLE_EXT0 ( classname,
m_name,
x_name   ) 
Value:
public: \
    void m_name() \
  MOCKPP_VOID_VISITABLE0_IMPL(classname, m_name ## x_name)

Implements a method with 0 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_name the method name
x_name optional extension for the internal variable names based on the method name

Definition at line 602 of file VisitableMockObject.h.

#define MOCKPP_VOID_VISITABLE_EXT1 ( classname,
m_name,
m_type1,
x_name,
v_type1   ) 
Value:
public: \
    void m_name(m_type1 param1) \
  MOCKPP_VOID_VISITABLE1_IMPL(classname, m_name ## x_name, m_type1, \
                                         m_name,           v_type1)

Implements a method with 1 parameter for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_name the method name
m_type1 the data type of the 1. method parameter
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter

Definition at line 655 of file VisitableMockObject.h.

#define MOCKPP_VOID_VISITABLE_EXT2 ( classname,
m_name,
m_type1,
m_type2,
x_name,
v_type1,
v_type2   ) 
Value:
public: \
    void m_name(m_type1 param1, m_type2 param2) \
  MOCKPP_VOID_VISITABLE2_IMPL(classname, m_name ## x_name, m_type1, m_type2,  \
                                         m_name,           v_type1, v_type2)

Implements a method with 2 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter

Definition at line 717 of file VisitableMockObject.h.

#define MOCKPP_VOID_VISITABLE_EXT3 ( classname,
m_name,
m_type1,
m_type2,
m_type3,
x_name,
v_type1,
v_type2,
v_type3   ) 
Value:
public: \
    void m_name(m_type1 param1, m_type2 param2, m_type3 param3) \
  MOCKPP_VOID_VISITABLE3_IMPL(classname, m_name ## x_name, m_type1, m_type2, m_type3, \
                                         m_name,           v_type1, v_type2, v_type3)

Implements a method with 3 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
m_type3 the data type of the 3. method parameter
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter
v_type3 the data type of the internal variable of 3. parameter

Definition at line 785 of file VisitableMockObject.h.

#define MOCKPP_VOID_VISITABLE_EXT4 ( classname,
m_name,
m_type1,
m_type2,
m_type3,
m_type4,
x_name,
v_type1,
v_type2,
v_type3,
v_type4   ) 
Value:
public: \
    void m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4) \
  MOCKPP_VOID_VISITABLE4_IMPL(classname, m_name ## x_name, m_type1, m_type2, m_type3, m_type4, \
                                         m_name,           v_type1, v_type2, v_type3, v_type4)

Implements a method with 4 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
m_type3 the data type of the 3. method parameter
m_type4 the data type of the 4. method parameter
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter
v_type3 the data type of the internal variable of 3. parameter
v_type4 the data type of the internal variable of 4. parameter

Definition at line 859 of file VisitableMockObject.h.

#define MOCKPP_VOID_VISITABLE_EXT5 ( classname,
m_name,
m_type1,
m_type2,
m_type3,
m_type4,
m_type5,
x_name,
v_type1,
v_type2,
v_type3,
v_type4,
v_type5   ) 
Value:
public: \
    void m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4, m_type5 param5) \
  MOCKPP_VOID_VISITABLE5_IMPL(classname, m_name ##x_name, m_type1, m_type2, m_type3, m_type4, m_type5, \
                                         m_name,          v_type1, v_type2, v_type3, v_type4, v_type5)

Implements a method with 5 parameters for a mock object.

The macro distinguishes between the methods parameter and the types for the internal variables.

Parameters:
classname the name of the mock class to which the method belongs
m_name the method name
m_type1 the data type of the 1. method parameter
m_type2 the data type of the 2. method parameter
m_type3 the data type of the 3. method parameter
m_type4 the data type of the 4. method parameter
m_type5 the data type of the 5. method parameter
x_name optional extension for the internal variable names based on the method name
v_type1 the data type of the internal variable of 1. parameter
v_type2 the data type of the internal variable of 2. parameter
v_type3 the data type of the internal variable of 3. parameter
v_type4 the data type of the internal variable of 4. parameter
v_type5 the data type of the internal variable of 5. parameter

Definition at line 939 of file VisitableMockObject.h.

 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on Tue Jan 5 09:48:57 2010 for mockpp by  doxygen 1.6.1