Classes | Public Member Functions | Public Attributes | 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__ (self, Union[Template, None] template, str is_virtual, str name, list parent_class, List[Constructor] ctors, List[Method] methods, List[StaticMethod] static_methods, List[DunderMethod] dunder_methods, List[Variable] properties, List[Operator] operators, List[Enum] enums, Any parent='')
 
def __repr__ (self)
 
list namespaces (self)
 

Public Attributes

 ctors
 
 dunder_methods
 
 enums
 
 is_virtual
 
 methods
 
 name
 
 operators
 
 parent
 
 parent_class
 
 properties
 
 static_methods
 
 template
 

Static Public Attributes

tuple rule
 

Static Private Attributes

 _parent
 

Detailed Description

Rule to parse a class defined in the interface file.

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

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

Constructor & Destructor Documentation

◆ __init__()

def gtwrap.interface_parser.classes.Class.__init__ (   self,
Union[Template, None]  template,
str  is_virtual,
str  name,
list  parent_class,
List[Constructor ctors,
List[Method methods,
List[StaticMethod static_methods,
List[DunderMethod dunder_methods,
List[Variable properties,
List[Operator operators,
List[Enum enums,
Any   parent = '' 
)

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

Member Function Documentation

◆ __repr__()

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

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

◆ namespaces()

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

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

Member Data Documentation

◆ _parent

gtwrap.interface_parser.classes.Class._parent
staticprivate

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

◆ ctors

gtwrap.interface_parser.classes.Class.ctors

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

◆ dunder_methods

gtwrap.interface_parser.classes.Class.dunder_methods

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

◆ enums

gtwrap.interface_parser.classes.Class.enums

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

◆ is_virtual

gtwrap.interface_parser.classes.Class.is_virtual

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

◆ methods

gtwrap.interface_parser.classes.Class.methods

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

◆ name

gtwrap.interface_parser.classes.Class.name

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

◆ operators

gtwrap.interface_parser.classes.Class.operators

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

◆ parent

gtwrap.interface_parser.classes.Class.parent

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

◆ parent_class

gtwrap.interface_parser.classes.Class.parent_class

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

◆ properties

gtwrap.interface_parser.classes.Class.properties

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

◆ rule

tuple gtwrap.interface_parser.classes.Class.rule
static
Initial value:
= (
Optional(Template.rule("template")) #
+ Optional(VIRTUAL("is_virtual")) #
+ CLASS #
+ IDENT("name") #
+ Optional(_parent) #
+ LBRACE #
+ Members.rule("members") #
+ RBRACE #
+ SEMI_COLON # BR
).setParseAction(lambda t: Class(
t.template, t.is_virtual, t.name, t.parent_class, t.members.ctors, t.
members.methods, t.members.static_methods, t.members.dunder_methods, t.
members.properties, t.members.operators, t.members.enums))

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

◆ static_methods

gtwrap.interface_parser.classes.Class.static_methods

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

◆ template

gtwrap.interface_parser.classes.Class.template

Definition at line 304 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
Class
Definition: testExpression.cpp:116
Optional
Definition: typing.h:78
gtwrap.interface_parser.tokens.VIRTUAL
VIRTUAL
Definition: tokens.py:42


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