MIRA
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | List of all members
VisualizationRegistry Class Reference

Stores mappings from type names to Visualization classes of Visualizations that are able to show the data. More...

#include <visualization/VisualizationRegistry.h>

Inheritance diagram for VisualizationRegistry:
Inheritance graph
[legend]

Classes

struct  Entry
 

Public Types

typedef Base::Type Type
 

Public Member Functions

std::list< ClassProxygetVisualizationsFor (const Typename &type, const Class &visualizationType)
 

Static Public Member Functions

static Typeinstance ()
 Returns a reference to the singleton instance. More...
 
static bool isDestroyed ()
 Returns true, if the singleton was already destroyed. More...
 

Static Protected Member Functions

static TypemakeInstance ()
 
static void destroyInstance (void)
 

Detailed Description

Stores mappings from type names to Visualization classes of Visualizations that are able to show the data.

When a visualization to a yet unknown type is requested, the registry performs an indexing. To do so, it tries to instantiate all available visualization classes that are newly available since the last indexing step. For each instantiated visualization, it queries the important information and destroys the instances afterwards. Note that this indexing usually will be done only once after the process queries a visualization for the first time. Hence, the overhead caused by the instantiation of all available visualizations is small.

Member Typedef Documentation

◆ Type

typedef Base::Type Type
inherited

Member Function Documentation

◆ getVisualizationsFor()

std::list<ClassProxy> getVisualizationsFor ( const Typename type,
const Class visualizationType 
)

◆ instance()

static Type& instance ( )
inlinestaticinherited

Returns a reference to the singleton instance.

Exceptions
XSingletonIf the singleton was already destroyed (dead reference) or not yet created (when using ExplicitInstantiation).

◆ isDestroyed()

static bool isDestroyed ( )
inlinestaticinherited

Returns true, if the singleton was already destroyed.

Trying to access it will result in an exception.

◆ makeInstance()

static Type* makeInstance ( )
inlinestaticprotectedinherited

◆ destroyInstance()

static void destroyInstance ( void  )
inlinestaticprotectedinherited

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