Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gtwrap.interface_parser.declaration.ForwardDeclaration Class Reference

Public Member Functions

def __init__ (self, Typename typename, str parent_type, str is_virtual, str parent='')
 
str __repr__ (self)
 
list namespaces (self)
 

Public Attributes

 is_virtual
 
 name
 
 parent
 
 parent_type
 
 typename
 

Static Public Attributes

tuple rule
 

Detailed Description

Rule to parse forward declarations in the interface file.

Definition at line 36 of file interface_parser/declaration.py.

Constructor & Destructor Documentation

◆ __init__()

def gtwrap.interface_parser.declaration.ForwardDeclaration.__init__ (   self,
Typename  typename,
str  parent_type,
str  is_virtual,
str   parent = '' 
)

Definition at line 45 of file interface_parser/declaration.py.

Member Function Documentation

◆ __repr__()

str gtwrap.interface_parser.declaration.ForwardDeclaration.__repr__ (   self)

Definition at line 64 of file interface_parser/declaration.py.

◆ namespaces()

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

Definition at line 60 of file interface_parser/declaration.py.

Member Data Documentation

◆ is_virtual

gtwrap.interface_parser.declaration.ForwardDeclaration.is_virtual

Definition at line 53 of file interface_parser/declaration.py.

◆ name

gtwrap.interface_parser.declaration.ForwardDeclaration.name

Definition at line 46 of file interface_parser/declaration.py.

◆ parent

gtwrap.interface_parser.declaration.ForwardDeclaration.parent

Definition at line 54 of file interface_parser/declaration.py.

◆ parent_type

gtwrap.interface_parser.declaration.ForwardDeclaration.parent_type

Definition at line 49 of file interface_parser/declaration.py.

◆ rule

tuple gtwrap.interface_parser.declaration.ForwardDeclaration.rule
static
Initial value:
= (Optional(VIRTUAL("is_virtual")) + CLASS + Typename.rule("name") +
Optional(COLON + Typename.rule("parent_type")) +
SEMI_COLON).setParseAction(lambda t: ForwardDeclaration(
t.name, t.parent_type, t.is_virtual))

Definition at line 40 of file interface_parser/declaration.py.

◆ typename

gtwrap.interface_parser.declaration.ForwardDeclaration.typename

Definition at line 47 of file interface_parser/declaration.py.


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


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:16:45