/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/core/include/RAT/ProcAllocator.hh Source File

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/core/include/RAT/ProcAllocator.hh Source File
Ratpac-two
ProcAllocator.hh
1 
9 #ifndef __RAT_ProcAllocator__
10 #define __RAT_ProcAllocator__
11 
12 namespace RAT {
13 
14 class Processor;
15 
17  public:
23  virtual Processor *operator()() = 0;
24 
25  virtual ~ProcAllocator(){};
26 };
27 
57 template <class T>
59  public:
61  virtual Processor *operator()() { return new T; }
62 
63  virtual ~ProcAllocatorTmpl(){};
64 };
65 
66 } // namespace RAT
67 
68 #endif
Definition: ProcAllocator.hh:58
virtual Processor * operator()()
Definition: ProcAllocator.hh:61
Definition: ProcAllocator.hh:16
virtual Processor * operator()()=0
Definition: Processor.hh:36
Definition: CCCrossSecMessenger.hh:29