|
CPP-TOOLBOX
|
Public Member Functions | |
| __init__ (self, str name, str return_type, List[CppParameter] parameters, str body, str access_modifier="public", str initializer_list="", bool define_in_header=False, List[str] qualifiers=[]) | |
| str | declaration (self) |
| str | get_definition (self, str class_name) |
Public Attributes | |
| name = name | |
| return_type = return_type | |
| parameters = parameters | |
| body = body | |
| access_modifier = access_modifier | |
| initializer_list = initializer_list | |
| define_in_header = define_in_header | |
| qualifiers = qualifiers | |
Represents a method of a C++ class.
| cpp_utils.main.CppMethod.__init__ | ( | self, | |
| str | name, | ||
| str | return_type, | ||
| List[CppParameter] | parameters, | ||
| str | body, | ||
| str | access_modifier = "public", | ||
| str | initializer_list = "", | ||
| bool | define_in_header = False, | ||
| List[str] | qualifiers = [] ) |
| str cpp_utils.main.CppMethod.declaration | ( | self | ) |
Return the declaration of the method
| str cpp_utils.main.CppMethod.get_definition | ( | self, | |
| str | class_name ) |
Return the definition of the method with class name prepended.
| cpp_utils.main.CppMethod.access_modifier = access_modifier |
| cpp_utils.main.CppMethod.body = body |
| cpp_utils.main.CppMethod.define_in_header = define_in_header |
| cpp_utils.main.CppMethod.initializer_list = initializer_list |
| cpp_utils.main.CppMethod.name = name |
| cpp_utils.main.CppMethod.parameters = parameters |
| cpp_utils.main.CppMethod.qualifiers = qualifiers |
| cpp_utils.main.CppMethod.return_type = return_type |