diff --git a/wrap/ReturnValue.h b/wrap/ReturnValue.h index ea78923f6..2bc5aa82b 100644 --- a/wrap/ReturnValue.h +++ b/wrap/ReturnValue.h @@ -17,23 +17,28 @@ namespace wrap { +/** + * Encapsulates return value of a method or function + */ struct ReturnValue { + /// the different supported return value categories typedef enum { CLASS = 1, EIGEN = 2, BASIS = 3, VOID = 4 } return_category; - ReturnValue(bool enable_verbosity = true) : - verbose(enable_verbosity), isPtr1(false), isPtr2(false), isPair(false), category1( - CLASS), category2(CLASS) { - } - bool verbose; bool isPtr1, isPtr2, isPair; return_category category1, category2; std::string type1, type2; std::vector namespaces1, namespaces2; + /// Constructor + ReturnValue(bool enable_verbosity = true) : + verbose(enable_verbosity), isPtr1(false), isPtr2(false), isPair(false), category1( + CLASS), category2(CLASS) { + } + typedef enum { arg1, arg2, pair } pairing;