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

Public Member Functions

def __init__
 
def __repr__ (self)
 
def to_cpp (self)
 

Public Attributes

 args
 
 name
 
 parent
 
 return_type
 

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 75 of file classes.py.

Constructor & Destructor Documentation

def gtwrap.interface_parser.classes.StaticMethod.__init__ (   self,
  name 
)

Definition at line 98 of file classes.py.

Member Function Documentation

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

Definition at line 108 of file classes.py.

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

Definition at line 111 of file classes.py.

Member Data Documentation

gtwrap.interface_parser.classes.StaticMethod.args

Definition at line 104 of file classes.py.

gtwrap.interface_parser.classes.StaticMethod.name

Definition at line 102 of file classes.py.

gtwrap.interface_parser.classes.StaticMethod.parent

Definition at line 106 of file classes.py.

gtwrap.interface_parser.classes.StaticMethod.return_type

Definition at line 103 of file classes.py.

tuple gtwrap.interface_parser.classes.StaticMethod.rule
static
Initial value:
1 = (
2  STATIC #
3  + ReturnType.rule("return_type") #
4  + IDENT("name") #
5  + LPAREN #
6  + ArgumentList.rule("args_list") #
7  + RPAREN #
8  + SEMI_COLON # BR
9  ).setParseAction(
10  lambda t: StaticMethod(t.name, t.return_type, t.args_list))

Definition at line 86 of file classes.py.


The documentation for this class was generated from the following file:


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:59:10