Doxygen have additional flags to specify direction of the parameter: http://www.stack.nl/~dimitri/doxygen/manual/commands.html#cmdparam
For example in this case you can write ```@param[out] size```