tesseract v5.3.3.20231005
cpp.ast._GenericDeclaration Class Reference
Inheritance diagram for cpp.ast._GenericDeclaration:
cpp.ast.Node cpp.ast.Class cpp.ast.Function cpp.ast.Type cpp.ast.Typedef cpp.ast.VariableDeclaration cpp.ast._NestedType cpp.ast.Struct cpp.ast.Method cpp.ast.Enum cpp.ast.Union

Public Member Functions

def __init__ (self, start, end, name, namespace)
 
def FullName (self)
 
- Public Member Functions inherited from cpp.ast.Node
def __init__ (self, start, end)
 
def IsDeclaration (self)
 
def IsDefinition (self)
 
def IsExportable (self)
 
def Requires (self, node)
 
def XXX__str__ (self)
 
def __repr__ (self)
 

Public Attributes

 name
 
 namespace
 
- Public Attributes inherited from cpp.ast.Node
 start
 
 end
 

Detailed Description

Definition at line 230 of file ast.py.

Constructor & Destructor Documentation

◆ __init__()

def cpp.ast._GenericDeclaration.__init__ (   self,
  start,
  end,
  name,
  namespace 
)

Reimplemented from cpp.ast.Node.

Reimplemented in cpp.ast.Typedef, cpp.ast.Class, cpp.ast._NestedType, cpp.ast.Method, cpp.ast.Function, cpp.ast.Type, and cpp.ast.VariableDeclaration.

Definition at line 231 of file ast.py.

231 def __init__(self, start, end, name, namespace):
232 Node.__init__(self, start, end)
233 self.name = name
234 self.namespace = namespace[:]
235

Member Function Documentation

◆ FullName()

def cpp.ast._GenericDeclaration.FullName (   self)

Definition at line 236 of file ast.py.

236 def FullName(self):
237 prefix = ''
238 if self.namespace and self.namespace[-1]:
239 prefix = '::'.join(self.namespace) + '::'
240 return prefix + self.name
241

Member Data Documentation

◆ name

cpp.ast._GenericDeclaration.name

Definition at line 233 of file ast.py.

◆ namespace

cpp.ast._GenericDeclaration.namespace

Definition at line 234 of file ast.py.


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