Comments
parent
406419317f
commit
05008ecaa3
|
@ -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<std::string> 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;
|
||||
|
|
Loading…
Reference in New Issue