Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gtwrap.interface_parser.classes.StaticMethod Class Reference

Public Member Functions

def __init__ (self, str name, ReturnType return_type, ArgumentList args, Union[Template, Any] template=None, Union["Class", Any] parent='')
 
str __repr__ (self)
 
str to_cpp (self)
 

Public Attributes

 args
 
 name
 
 parent
 
 return_type
 
 template
 

Static Public Attributes

tuple rule
 

Detailed Description

Rule to parse all the static methods in a class.

E.g.
```
class Hello {
    static void changeGreeting();
};
```

Definition at line 80 of file interface_parser/classes.py.

Constructor & Destructor Documentation

◆ __init__()

def gtwrap.interface_parser.classes.StaticMethod.__init__ (   self,
str  name,
ReturnType  return_type,
ArgumentList  args,
Union[Template, Any]   template = None,
Union["Class", Any]   parent = '' 
)

Definition at line 103 of file interface_parser/classes.py.

Member Function Documentation

◆ __repr__()

str gtwrap.interface_parser.classes.StaticMethod.__repr__ (   self)

Definition at line 116 of file interface_parser/classes.py.

◆ to_cpp()

str gtwrap.interface_parser.classes.StaticMethod.to_cpp (   self)
Generate the C++ code for wrapping.

Definition at line 119 of file interface_parser/classes.py.

Member Data Documentation

◆ args

gtwrap.interface_parser.classes.StaticMethod.args

Definition at line 106 of file interface_parser/classes.py.

◆ name

gtwrap.interface_parser.classes.StaticMethod.name

Definition at line 104 of file interface_parser/classes.py.

◆ parent

gtwrap.interface_parser.classes.StaticMethod.parent

Definition at line 109 of file interface_parser/classes.py.

◆ return_type

gtwrap.interface_parser.classes.StaticMethod.return_type

Definition at line 105 of file interface_parser/classes.py.

◆ rule

tuple gtwrap.interface_parser.classes.StaticMethod.rule
static
Initial value:
= (
Optional(Template.rule("template")) #
+ STATIC #
+ ReturnType.rule("return_type") #
+ IDENT("name") #
+ LPAREN #
+ ArgumentList.rule("args_list") #
+ RPAREN #
+ SEMI_COLON # BR
).setParseAction(
lambda t: StaticMethod(t.name, t.return_type, t.args_list, t.template))

Definition at line 91 of file interface_parser/classes.py.

◆ template

gtwrap.interface_parser.classes.StaticMethod.template

Definition at line 107 of file interface_parser/classes.py.


The documentation for this class was generated from the following file:
gtwrap.interface_parser.tokens.IDENT
IDENT
Definition: tokens.py:19
Optional
Definition: typing.h:78


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:53:08