|
PyTimeloop
|
An example simple processor. More...


Public Member Functions | |
| __init__ (self, *args, **kwargs) | |
| declare_attrs (self) | |
| Initialize the attributes that the processor handles. | |
| process (self, "Specification" spec) | |
| Process the specification. | |
Public Member Functions inherited from pytimeloop.timeloopfe.common.processor.Processor | |
| __init__ (self, Optional["Specification"] spec=None) | |
| pre_parse_process (self, "Specification" spec) | |
| Process the specification before parsing. | |
| get_index (self, type processor_type, "Specification" spec) | |
| Get the index of the processor in the list of processors. | |
| must_run_after (self, type other, "Specification" spec, bool ok_if_not_found=False) | |
| Ensure that this processor runs after another processor. | |
| add_attr (self, Node target, *args, **kwargs) | |
Additional Inherited Members | |
Public Attributes inherited from pytimeloop.timeloopfe.common.processor.Processor | |
| logger = logging.getLogger(self.__class__.__name__) | |
| spec = spec | |
Protected Attributes inherited from pytimeloop.timeloopfe.common.processor.Processor | |
| bool | _initialized = True |
An example simple processor.
| pytimeloop.timeloopfe.common.processor.SimpleProcessor.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
| pytimeloop.timeloopfe.common.processor.SimpleProcessor.declare_attrs | ( | self | ) |
Initialize the attributes that the processor handles.
Reimplemented from pytimeloop.timeloopfe.common.processor.Processor.
| pytimeloop.timeloopfe.common.processor.SimpleProcessor.process | ( | self, | |
| "Specification" | spec ) |
Process the specification.
Remove attributes that this processor is responsible for.
Reimplemented from pytimeloop.timeloopfe.common.processor.Processor.