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

Classes

class  Members
 

Public Member Functions

def __init__
 
def __repr__ (self)
 
def namespaces (self)
 

Static Public Attributes

 ctors
 
 enums
 
 is_virtual
 
 methods
 
 name
 
 operators
 
 parent
 
 parent_class
 
 properties
 
tuple rule
 
 static_methods
 
 template
 

Static Private Attributes

 _parent
 

Detailed Description

Rule to parse a class defined in the interface file.

E.g.
```
class Hello {
    ...
};
```

Definition at line 205 of file classes.py.

Constructor & Destructor Documentation

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

Definition at line 277 of file classes.py.

Member Function Documentation

def gtwrap.interface_parser.classes.Class.__repr__ (   self)

Definition at line 334 of file classes.py.

def gtwrap.interface_parser.classes.Class.namespaces (   self,
  list 
)
Get the namespaces which this class is nested under as a list.

Definition at line 330 of file classes.py.

Member Data Documentation

gtwrap.interface_parser.classes.Class._parent
staticprivate

Definition at line 251 of file classes.py.

gtwrap.interface_parser.classes.Class.ctors
static

Definition at line 306 of file classes.py.

gtwrap.interface_parser.classes.Class.enums
static

Definition at line 311 of file classes.py.

gtwrap.interface_parser.classes.Class.is_virtual
static

Definition at line 290 of file classes.py.

gtwrap.interface_parser.classes.Class.methods
static

Definition at line 307 of file classes.py.

gtwrap.interface_parser.classes.Class.name
static

Definition at line 291 of file classes.py.

gtwrap.interface_parser.classes.Class.operators
static

Definition at line 310 of file classes.py.

gtwrap.interface_parser.classes.Class.parent
static

Definition at line 313 of file classes.py.

gtwrap.interface_parser.classes.Class.parent_class
static

Definition at line 295 of file classes.py.

gtwrap.interface_parser.classes.Class.properties
static

Definition at line 309 of file classes.py.

tuple gtwrap.interface_parser.classes.Class.rule
static
Initial value:
1 = (
2  Optional(Template.rule("template")) #
3  + Optional(VIRTUAL("is_virtual")) #
4  + CLASS #
5  + IDENT("name") #
6  + Optional(_parent) #
7  + LBRACE #
8  + Members.rule("members") #
9  + RBRACE #
10  + SEMI_COLON # BR
11  ).setParseAction(lambda t: Class(
12  t.template,
13  t.is_virtual,
14  t.name,
15  t.parent_class,
16  t.members.ctors,
17  t.members.methods,
18  t.members.static_methods,
19  t.members.properties,
20  t.members.operators,
21  t.members.enums
22  ))

Definition at line 252 of file classes.py.

gtwrap.interface_parser.classes.Class.static_methods
static

Definition at line 308 of file classes.py.

gtwrap.interface_parser.classes.Class.template
static

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