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

Public Member Functions

def __init__
 
def __repr__ (self)
 

Public Attributes

 args
 
 is_const
 
 name
 
 parent
 
 return_type
 
 template
 

Static Public Attributes

tuple rule
 

Detailed Description

Rule to parse a method in a class.

E.g.
```
class Hello {
    void sayHello() const;
};
```

Definition at line 27 of file classes.py.

Constructor & Destructor Documentation

def gtwrap.interface_parser.classes.Method.__init__ (   self,
  template 
)

Definition at line 51 of file classes.py.

Member Function Documentation

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

Definition at line 65 of file classes.py.

Member Data Documentation

gtwrap.interface_parser.classes.Method.args

Definition at line 60 of file classes.py.

gtwrap.interface_parser.classes.Method.is_const

Definition at line 61 of file classes.py.

gtwrap.interface_parser.classes.Method.name

Definition at line 58 of file classes.py.

gtwrap.interface_parser.classes.Method.parent

Definition at line 63 of file classes.py.

gtwrap.interface_parser.classes.Method.return_type

Definition at line 59 of file classes.py.

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

Definition at line 38 of file classes.py.

gtwrap.interface_parser.classes.Method.template

Definition at line 57 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