Public Member Functions | |
def | __init__ |
def | __str__ |
def | from_xml |
def | gen_code |
def | gen_impl |
Public Attributes | |
fargs | |
fbody | |
finline | |
fname | |
fqual | |
fret | |
Static Private Attributes | |
string | _XMLTAG = 'func' |
Represents the C++ function in the object form. Class attributes: _XMLTAG -- constant string with the xml tag description
Definition at line 39 of file cppgen/function.py.
def snippets.generators.cppgen.function.Function.__init__ | ( | self, | |
xmlnode = None |
|||
) |
Populates the variable from a XML node info. When the XML node is not defined, does nothing. xmlnode -- the XML node with the member definition Instance attributes: fname -- name of the function fargs -- the argument list fret -- the return type fbody -- function body finline -- flag i the function is to be in-line fqual -- the qualifer of the functon
Definition at line 48 of file cppgen/function.py.
Overriden string specifier returns the C++ code snippet without indentation.
Definition at line 146 of file cppgen/function.py.
def snippets.generators.cppgen.function.Function.from_xml | ( | self, | |
xmlnode | |||
) |
Extracts the variable attributes from the XML node. xmlnode -- the XML node with the member definition
Definition at line 72 of file cppgen/function.py.
def snippets.generators.cppgen.function.Function.gen_code | ( | self, | |
bindent = '' , |
|||
indent = ' ' |
|||
) |
Generates the full member definition C++ code and returns it as a string bindent -- the current indent in the document indent -- the usual minimum indentation
Definition at line 95 of file cppgen/function.py.
def snippets.generators.cppgen.function.Function.gen_impl | ( | self, | |
namespace = None , |
|||
bindent = '' , |
|||
indent = ' ' |
|||
) |
Generates the full member definition C++ code and returns it as a string bindent -- the current indent in the document indent -- the usual minimum indentation
Definition at line 119 of file cppgen/function.py.
string snippets::generators::cppgen::function.Function::_XMLTAG = 'func' [static, private] |
Definition at line 46 of file cppgen/function.py.
Definition at line 61 of file cppgen/function.py.
Definition at line 61 of file cppgen/function.py.
Definition at line 61 of file cppgen/function.py.
Definition at line 61 of file cppgen/function.py.
Definition at line 61 of file cppgen/function.py.
Definition at line 61 of file cppgen/function.py.