Skip to content

Rose::Registry

A global registry used in conjunction with static constructors to make pluggable components (like targets or garbage collectors) "just work" when linked with an executable.

Synopsis

Declared in <src/midend/astProcessing/plugin.h>

template<
    typename T,
    typename U = RegistryTraits<T>>
class Registry;

Types

Name Description
Add 2. The registry entry type has a constructor compatible with this signature:
iterator Iterators for registry entries.
listener Abstract base class for registry listeners, which are informed when new entries are added to the registry. Simply subclass and instantiate:
node Node in linked list of entries.

Type Aliases

Name
entry
traits

Static Member Functions

Name
begin
static iterator begin();
end
static iterator end();
entries
static iterator_range<iterator> entries();

Private Member Functions

Name Description
Registry
Registry(); [constructor]
Default constructor

Private Static Member Functions

Name
Announce
static void Announce(entry const& E);

Private Static Data Members

Name
Head
ListenerHead
ListenerTail
Tail

Friends

Name Description
Rose::Registry::listener Abstract base class for registry listeners, which are informed when new entries are added to the registry. Simply subclass and instantiate:
Rose::Registry::node Node in linked list of entries.

Created with MrDocs