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 object to the end of the list.

extend

Extend list by appending elements from the iterable.

insert

Insert object before index.

Parameters:

stages (list[CompilationStage])

append(stage)#

Append object to the end of the list.

Parameters:

stage (CompilationStage)

Return type:

None

insert(index, stage)#

Insert object before index.

Parameters:
Return type:

None

extend(stages)#

Extend list by appending elements from the iterable.

Parameters:

stages (Iterable[CompilationStage])

Return type:

None

Inheritance

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