<s> from . . core . operation import ElementOperation , MapOperation , TreeOperation <EOL> from . . core . options import Compositor <EOL> from . element import * <EOL> from . . core import Overlay <EOL> def public ( obj ) : <EOL> if not isinstance ( obj , type ) : return False <EOL> baseclasses = [ ElementOperation , MapOperation , TreeOperation ] <EOL> return any ( [ issubclass ( obj , bc ) for bc in baseclasses ] ) <EOL> _public = list ( set ( [ _k for _k , _v in locals ( ) . items ( ) if public ( _v ) ] ) ) <EOL> _current_locals = [ el for el in locals ( ) . items ( ) ] <EOL> for _k , _v in _current_locals : <EOL> if public ( _v ) and issubclass ( _v , ElementOperation ) : <EOL> Compositor . operations . append ( _v ) <EOL> __all__ = _public + [ '<STR_LIT>' ] </s>
