Monero
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
cpp.ast.Type Class Reference
Inheritance diagram for cpp.ast.Type:
Inheritance graph
[legend]
Collaboration diagram for cpp.ast.Type:
Collaboration graph
[legend]

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
 
 name
 
 modifiers
 
 reference
 
 pointer
 
 array
 
- Public Attributes inherited from cpp.ast._GenericDeclaration
 name
 
 namespace
 
- Public Attributes inherited from cpp.ast.Node
 start
 
 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

◆ __str__()

cpp.ast.Type.__str__ ( self)

◆ 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.

Member Data Documentation

◆ array

cpp.ast.Type.array

◆ modifiers

cpp.ast.Type.modifiers

◆ name

cpp.ast.Type.name

◆ pointer

cpp.ast.Type.pointer

◆ reference

cpp.ast.Type.reference

◆ templated_types

cpp.ast.Type.templated_types

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