gstlal 1.13.0
Loading...
Searching...
No Matches
python.utilities.element_registry.RegisteredElement Class Reference

Public Member Functions

 __init__ (self, types.FunctionType func, str base_name=None, str mod_name=None)
 __repr__ (self)
 name (self)
 format_method_source (self)

Public Attributes

 func = func
 base_name = func.__name__ if base_name is None else base_name
 module_name = module_name(self.func) if mod_name is None else mod_name

Static Public Attributes

str LEGACY_PREFIX = 'mk'

Detailed Description

A function to register as a method

Definition at line 429 of file element_registry.py.

Constructor & Destructor Documentation

◆ __init__()

python.utilities.element_registry.RegisteredElement.__init__ ( self,
types.FunctionType func,
str base_name = None,
str mod_name = None )

Definition at line 433 of file element_registry.py.

Member Function Documentation

◆ __repr__()

python.utilities.element_registry.RegisteredElement.__repr__ ( self)
Repr for nice test formatting

Definition at line 438 of file element_registry.py.

◆ format_method_source()

python.utilities.element_registry.RegisteredElement.format_method_source ( self)
Utility for automatically generate method source

Definition at line 451 of file element_registry.py.

◆ name()

python.utilities.element_registry.RegisteredElement.name ( self)
Method that can be overridden by subclasses for special naming behavior

Definition at line 443 of file element_registry.py.

Member Data Documentation

◆ base_name

python.utilities.element_registry.RegisteredElement.base_name = func.__name__ if base_name is None else base_name

Definition at line 435 of file element_registry.py.

◆ func

python.utilities.element_registry.RegisteredElement.func = func

Definition at line 434 of file element_registry.py.

◆ LEGACY_PREFIX

python.utilities.element_registry.RegisteredElement.LEGACY_PREFIX = 'mk'
static

Definition at line 431 of file element_registry.py.

◆ module_name

python.utilities.element_registry.RegisteredElement.module_name = module_name(self.func) if mod_name is None else mod_name

Definition at line 436 of file element_registry.py.


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