Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
cpp.ast.Type Class Reference
Inheritance diagram for cpp.ast.Type:
cpp.ast._GenericDeclaration cpp.ast.Node

Public Member Functions

 __init__ (self, start, end, name, templated_types, modifiers, reference, pointer, array)
 
 __str__ (self)
 
 IsDeclaration (self)
 
 IsDefinition (self)
 
 IsExportable (self)
 
- Public Member Functions inherited from cpp.ast._GenericDeclaration
 FullName (self)
 
- Public Member Functions inherited from cpp.ast.Node
 Requires (self, node)
 
 XXX__str__ (self)
 
 __repr__ (self)
 

Public Attributes

 templated_types = templated_types
 
 name = modifiers.pop()
 
 modifiers = modifiers
 
 reference = reference
 
 pointer = pointer
 
 array = array
 
str modifiers = ' '.join(self.modifiers) + ' '
 
str templated_types = '<%s>' % self.templated_types
 
str reference = '&'
 
str pointer = '*'
 
str array = '[]'
 
- Public Attributes inherited from cpp.ast._GenericDeclaration
 name = name
 
 namespace = namespace[:]
 
list namespace = [n or '<anonymous>' for n in self.namespace]
 
- Public Attributes inherited from cpp.ast.Node
 start = start
 
 end = end
 

Additional Inherited Members

- Protected Member Functions inherited from cpp.ast._GenericDeclaration
 _TypeStringHelper (self, suffix)
 
- Protected Member Functions inherited from cpp.ast.Node
 _StringHelper (self, name, suffix)
 

Detailed Description

Type used for any variable (eg class, primitive, struct, etc).

Constructor & Destructor Documentation

◆ __init__()

cpp.ast.Type.__init__ ( self,
start,
end,
name,
templated_types,
modifiers,
reference,
pointer,
array )
    Args:
      name: str name of main type
      templated_types: [Class (Type?)] template type info between <>
      modifiers: [str] type modifiers (keywords) eg, const, mutable, etc.
      reference, pointer, array: bools

Reimplemented from cpp.ast._GenericDeclaration.

Member Function Documentation

◆ IsDeclaration()

cpp.ast.Type.IsDeclaration ( self)
Returns bool if this node is a declaration.

Reimplemented from cpp.ast.Node.

◆ IsDefinition()

cpp.ast.Type.IsDefinition ( self)
Returns bool if this node is a definition.

Reimplemented from cpp.ast.Node.

◆ IsExportable()

cpp.ast.Type.IsExportable ( self)
Returns bool if this node exportable from a header file.

Reimplemented from cpp.ast.Node.


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