Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gtwrap.interface_parser.namespace.Namespace Class Reference

Public Member Functions

def __init__ (self, str name, ZeroOrMore content, parent='')
 
str __repr__ (self)
 
Union[Class, GlobalFunction, ForwardDeclarationfind_class_or_function (self, Typename typename)
 
List["Namespace"] full_namespaces (self)
 
"Namespace" top_level (self)
 

Static Public Member Functions

def from_parse_result (ParseResults t)
 

Public Attributes

 content
 
 name
 
 parent
 

Static Public Attributes

 rule
 

Detailed Description

Rule for parsing a namespace in the interface file.

Definition at line 58 of file interface_parser/namespace.py.

Constructor & Destructor Documentation

◆ __init__()

def gtwrap.interface_parser.namespace.Namespace.__init__ (   self,
str  name,
ZeroOrMore  content,
  parent = '' 
)

Definition at line 79 of file interface_parser/namespace.py.

Member Function Documentation

◆ __repr__()

str gtwrap.interface_parser.namespace.Namespace.__repr__ (   self)

Definition at line 124 of file interface_parser/namespace.py.

◆ find_class_or_function()

Union[Class, GlobalFunction, ForwardDeclaration] gtwrap.interface_parser.namespace.Namespace.find_class_or_function (   self,
Typename  typename 
)
Find the Class or GlobalFunction object given its typename.
We have to traverse the tree of namespaces.

Definition at line 95 of file interface_parser/namespace.py.

◆ from_parse_result()

def gtwrap.interface_parser.namespace.Namespace.from_parse_result ( ParseResults  t)
static
Return the result of parsing.

Definition at line 87 of file interface_parser/namespace.py.

◆ full_namespaces()

List["Namespace"] gtwrap.interface_parser.namespace.Namespace.full_namespaces (   self)
Get the full namespace list.

Definition at line 127 of file interface_parser/namespace.py.

◆ top_level()

"Namespace" gtwrap.interface_parser.namespace.Namespace.top_level (   self)
Return the top level namespace.

Definition at line 117 of file interface_parser/namespace.py.

Member Data Documentation

◆ content

gtwrap.interface_parser.namespace.Namespace.content

Definition at line 81 of file interface_parser/namespace.py.

◆ name

gtwrap.interface_parser.namespace.Namespace.name

Definition at line 80 of file interface_parser/namespace.py.

◆ parent

gtwrap.interface_parser.namespace.Namespace.parent

Definition at line 82 of file interface_parser/namespace.py.

◆ rule

gtwrap.interface_parser.namespace.Namespace.rule
static

Definition at line 61 of file interface_parser/namespace.py.


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


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