LLVM API Documentation

Public Member Functions
llvm::Registry< T, U >::Add< V > Class Template Reference

#include <Registry.h>

List of all members.

Public Member Functions

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

Detailed Description

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

A static registration template. Use like such:

Registry<Collector>::Add<FancyGC> X("fancy-gc", "Newfangled garbage collector.");

Use of this template requires that:

1. The registered subclass has a default constructor. 2. 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 197 of file Registry.h.


Constructor & Destructor Documentation

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

Definition at line 204 of file Registry.h.


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