/** * @file GlobalFunction.h * * @brief Implements codegen for a global function wrapped in matlab * * @date Jul 22, 2012 * @author Alex Cunningham */ #pragma once #include "Argument.h" #include "ReturnValue.h" namespace wrap { struct GlobalFunction { typedef std::vector StrVec; bool verbose_; std::string name; // each overload, regardless of namespace std::vector argLists; ///< arugments for each overload std::vector returnVals; ///< returnVals for each overload std::vector namespaces; ///< Stack of namespaces // Constructor only used in Module GlobalFunction(bool verbose = true) : verbose_(verbose) {} // adds an overloaded version of this function void addOverload(bool verbose, const std::string& name, const ArgumentList& args, const ReturnValue& retVal, const StrVec& ns_stack); }; } // \namespace wrap