Comments
parent
406419317f
commit
05008ecaa3
|
@ -17,23 +17,28 @@
|
||||||
|
|
||||||
namespace wrap {
|
namespace wrap {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Encapsulates return value of a method or function
|
||||||
|
*/
|
||||||
struct ReturnValue {
|
struct ReturnValue {
|
||||||
|
|
||||||
|
/// the different supported return value categories
|
||||||
typedef enum {
|
typedef enum {
|
||||||
CLASS = 1, EIGEN = 2, BASIS = 3, VOID = 4
|
CLASS = 1, EIGEN = 2, BASIS = 3, VOID = 4
|
||||||
} return_category;
|
} return_category;
|
||||||
|
|
||||||
ReturnValue(bool enable_verbosity = true) :
|
|
||||||
verbose(enable_verbosity), isPtr1(false), isPtr2(false), isPair(false), category1(
|
|
||||||
CLASS), category2(CLASS) {
|
|
||||||
}
|
|
||||||
|
|
||||||
bool verbose;
|
bool verbose;
|
||||||
bool isPtr1, isPtr2, isPair;
|
bool isPtr1, isPtr2, isPair;
|
||||||
return_category category1, category2;
|
return_category category1, category2;
|
||||||
std::string type1, type2;
|
std::string type1, type2;
|
||||||
std::vector<std::string> namespaces1, namespaces2;
|
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 {
|
typedef enum {
|
||||||
arg1, arg2, pair
|
arg1, arg2, pair
|
||||||
} pairing;
|
} pairing;
|
||||||
|
|
Loading…
Reference in New Issue