ROSE 0.11.145.192
Public Member Functions | List of all members
Rose::Registry< T, U >::Add< V > Class Template Reference

Description

template<typename T, typename U = RegistryTraits<T>>
template<typename V>
class Rose::Registry< T, U >::Add< V >

A static registration template.

Use like such: X("fancy-gc", "Newfangled garbage collector.");

Use of this template requires that:

  1. The registered subclass has a default constructor.

The registry entry type has a constructor compatible with this signature:

entry(const char *Name, const char *ShortDesc, T *(*Ctor)());

If you have more elaborate requirements, then copy and modify.

Definition at line 303 of file plugin.h.

#include <midend/astProcessing/plugin.h>

Public Member Functions

 Add (const char *Name, const char *Desc)
 

Constructor & Destructor Documentation

◆ Add()

template<typename T , typename U = RegistryTraits<T>>
template<typename V >
Rose::Registry< T, U >::Add< V >::Add ( const char *  Name,
const char *  Desc 
)
inline

Definition at line 310 of file plugin.h.


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