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:
mat007 2013-03-08 08:01:34 +00:00
parent 5e3e0e8b8b
commit a7cdc82a59
2 changed files with 15 additions and 0 deletions

View file

@ -312,6 +312,10 @@ Synopsis :
MOCK_CONVERSION_OPERATOR( type, identifier ) // this generates both const and non-const operators
MOCK_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 :
@ -321,6 +325,16 @@ Example :
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]
[section Functor]