Public Member Functions | |
def | __init__ |
def | __repr__ (self) |
def | is_void (self) |
def | to_cpp (self) |
Public Attributes | |
type1 | |
type2 | |
Static Public Attributes | |
rule | |
Static Private Attributes | |
_pair | |
Rule to parse the return type. The return type can either be a single type or a pair such as <type1, type2>.
Definition at line 102 of file interface_parser/function.py.
def gtwrap.interface_parser.function.ReturnType.__init__ | ( | self, | |
type1 | |||
) |
Definition at line 120 of file interface_parser/function.py.
def gtwrap.interface_parser.function.ReturnType.__repr__ | ( | self, | |
str | |||
) |
Definition at line 134 of file interface_parser/function.py.
def gtwrap.interface_parser.function.ReturnType.is_void | ( | self, | |
bool | |||
) |
Check if the return type is void.
Definition at line 128 of file interface_parser/function.py.
def gtwrap.interface_parser.function.ReturnType.to_cpp | ( | self, | |
str | |||
) |
Generate the C++ code for wrapping. If there are two return types, we return a pair<>, otherwise we return the regular return type.
Definition at line 138 of file interface_parser/function.py.
|
staticprivate |
Definition at line 108 of file interface_parser/function.py.
|
static |
Definition at line 116 of file interface_parser/function.py.
gtwrap.interface_parser.function.ReturnType.type1 |
Definition at line 122 of file interface_parser/function.py.
gtwrap.interface_parser.function.ReturnType.type2 |
Definition at line 123 of file interface_parser/function.py.