mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Updated documentation
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@606 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
5e3e0e8b8b
commit
a7cdc82a59
2 changed files with 15 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ Not yet released
|
||||||
* Added variadic macro support for MOCK_FUNCTION and the MOCK_METHOD family
|
* Added variadic macro support for MOCK_FUNCTION and the MOCK_METHOD family
|
||||||
* Added variadic macro support for MOCK_BASE_CLASS and MOCK_FUNCTOR
|
* Added variadic macro support for MOCK_BASE_CLASS and MOCK_FUNCTOR
|
||||||
* Added round parenthesis support for signatures for MOCK_FUNCTION, MOCK_FUNCTOR and the MOCK_METHOD family
|
* Added round parenthesis support for signatures for MOCK_FUNCTION, MOCK_FUNCTOR and the MOCK_METHOD family
|
||||||
|
* Added MOCK_CONVERSION_OPERATOR_TPL, MOCK_CONST_CONVERSION_OPERATOR_TPL and MOCK_NON_CONST_CONVERSION_OPERATOR_TPL
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -313,6 +313,10 @@ Synopsis :
|
||||||
MOCK_CONST_CONVERSION_OPERATOR( type, identifier )
|
MOCK_CONST_CONVERSION_OPERATOR( type, identifier )
|
||||||
MOCK_NON_CONST_CONVERSION_OPERATOR( type, identifier )
|
MOCK_NON_CONST_CONVERSION_OPERATOR( type, identifier )
|
||||||
|
|
||||||
|
MOCK_CONVERSION_OPERATOR_TPL( type, identifier ) // must be used if the signature uses a template parameter of the class
|
||||||
|
MOCK_CONST_CONVERSION_OPERATOR_TPL( type, identifier ) // must be used if the signature uses a template parameter of the class
|
||||||
|
MOCK_NON_CONST_CONVERSION_OPERATOR_TPL( type, identifier ) // must be used if the signature uses a template parameter of the class
|
||||||
|
|
||||||
Example :
|
Example :
|
||||||
|
|
||||||
MOCK_CLASS( mock_class )
|
MOCK_CLASS( mock_class )
|
||||||
|
|
@ -321,6 +325,16 @@ Example :
|
||||||
MOCK_CONST_CONVERSION_OPERATOR( const std::string&, conversion_to_string )
|
MOCK_CONST_CONVERSION_OPERATOR( const std::string&, conversion_to_string )
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Example :
|
||||||
|
|
||||||
|
template< typename T >
|
||||||
|
MOCK_CLASS( mock_class )
|
||||||
|
{
|
||||||
|
MOCK_CONVERSION_OPERATOR_TPL( T, conversion_to_T ) // the _TPL variants must be used if the signature includes a template parameter of the class
|
||||||
|
MOCK_CONST_CONVERSION_OPERATOR( const std::string&, const_conversion_to_string )
|
||||||
|
MOCK_NON_CONST_CONVERSION_OPERATOR( const std::string&, const_conversion_to_string )
|
||||||
|
};
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
[section Functor]
|
[section Functor]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue