#include <iostream>#include <map>#include <string>#include <vector>#include "PhysicsNtuple/Handle.h"Go to the source code of this file.
Namespaces | |
| namespace | Anp |
Classes | |
| class | Anp::Factory< T > |
Defines | |
| #define | REGISTER_ANP_OBJECT(BASE, CLASS) |
| #define | REGISTER_ANY_OBJECT(PREF, BASE, CLASS) |
|
|
Value: namespace \ { \ Anp::Handle<Anp::BASE> Create##BASE() \ { \ return Anp::Handle<Anp::BASE>(new Anp::CLASS); \ } \ bool Registered##BASE = Anp::Factory<Anp::BASE>::Instance(). \ Register(#CLASS, Create##BASE); \ } expands to this code: namespace { Anp::Handle<Anp::BaseClass> CreateBaseClass() { return Anp::Handle<Anp::BaseClass>(new Anp::MyClass); } bool RegisteredBaseClass = Anp::Factory<Anp::BaseClass>::Instance(). Register("MyClass", CreateBaseClass); } |
|
|
Value: namespace \ { \ Anp::Handle<PREF::BASE> Create##PREF##BASE() \ { \ return Anp::Handle<PREF::BASE>(new PREF::CLASS); \ } \ bool Registered##BASE = Anp::Factory<PREF::BASE>::Instance(). \ Register(#CLASS, Create##PREF##BASE); \ } |
1.3.9.1