StagesList#

Module: iqm.cpc.compiler.compilation_stage

class iqm.cpc.compiler.compilation_stage.StagesList(stages)#

Bases: list[CompilationStage]

Extend list[CompilationStage] to allow accessing the stages via their names and to include validation.

Methods

append

Append stage into the list.

extend

Extend the list by stages.

insert

Insert stage into the list.

Parameters:

stages (list[CompilationStage])

append(stage)#

Append stage into the list.

Parameters:

stage (CompilationStage)

Return type:

None

insert(index, stage)#

Insert stage into the list.

Parameters:
Return type:

None

extend(stages)#

Extend the list by stages.

Parameters:

stages (Iterable[CompilationStage])

Return type:

None

Inheritance

Inheritance diagram of iqm.cpc.compiler.compilation_stage.StagesList