generic#

Module providing generic functionality.

Classes:

AbstractSingletonMeta(name, bases, ...)

Provides a meta class for the abstract singleton type.

SingletonMeta

Provides a meta class for the singleton type.

Functions:

in_notebook()

Check if the application is running in notebook.

timing(func)

Timing function decorator.

class ansys.cfx.core.utils.generic.AbstractSingletonMeta(name, bases, namespace, /, **kwargs)#

Bases: ABCMeta, SingletonMeta

Provides a meta class for the abstract singleton type.

class ansys.cfx.core.utils.generic.SingletonMeta#

Bases: type

Provides a meta class for the singleton type.

ansys.cfx.core.utils.generic.in_notebook()#

Check if the application is running in notebook.

ansys.cfx.core.utils.generic.timing(func)#

Timing function decorator.