systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
parselib.primitives.Primitive Class Reference
Inheritance diagram for parselib.primitives.Primitive:
Inheritance graph
[legend]

Public Member Functions

 __init_subclass__ (cls, **kwargs)
 

Static Public Member Functions

 get_primitive_name_dict ()
 
 get_primitive (name)
 
 name_filter (name)
 

Static Public Attributes

list primitive_type_names = []
 
dict name_mapping
 

Detailed Description

Primitive base class,
handles automatically subclass registration for primitive types

Definition at line 36 of file primitives.py.

Member Function Documentation

◆ __init_subclass__()

parselib.primitives.Primitive.__init_subclass__ ( cls,
** kwargs )
registers subclass automatically

Definition at line 45 of file primitives.py.

◆ get_primitive()

parselib.primitives.Primitive.get_primitive ( name)
static
get the primitive type of name

Definition at line 56 of file primitives.py.

◆ get_primitive_name_dict()

parselib.primitives.Primitive.get_primitive_name_dict ( )
static
convert the primitive name string -> type to a dict

Definition at line 51 of file primitives.py.

◆ name_filter()

parselib.primitives.Primitive.name_filter ( name)
static
maps type name to internal name

Definition at line 66 of file primitives.py.

Member Data Documentation

◆ name_mapping

dict parselib.primitives.Primitive.name_mapping
static
Initial value:
= { '_Bool': 'cppbool', 'bool': 'cppbool', 'unsigned_int': 'cppuint', 'int': 'cppint', 'unsigned_short': 'cppushort', 'short': 'cppshort',
'char': 'cppchar', 'unsigned_char': 'cppunsignedchar', 'signed_char': 'cppsignedchar', 'long_long': 'cpplonglong', 'unsigned_long_long': 'cppulonglong'}

Definition at line 42 of file primitives.py.

◆ primitive_type_names

list parselib.primitives.Primitive.primitive_type_names = []
static

Definition at line 41 of file primitives.py.


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