gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
Gambit::Scanner::Plugins::classFactory< T > Class Template Reference

#include <plugin_defs.hpp>

Inheritance diagram for Gambit::Scanner::Plugins::classFactory< T >:
Collaboration diagram for Gambit::Scanner::Plugins::classFactory< T >:

Public Member Functions

voidoperator() ()
 
 ~classFactory ()
 
- Public Member Functions inherited from Gambit::Scanner::Plugins::factoryBase
virtual ~factoryBase ()
 

Private Attributes

std::vector< T * > ptrs
 

Detailed Description

template<typename T>
class Gambit::Scanner::Plugins::classFactory< T >

Definition at line 138 of file plugin_defs.hpp.

Constructor & Destructor Documentation

◆ ~classFactory()

template<typename T >
Gambit::Scanner::Plugins::classFactory< T >::~classFactory ( )
inline

Definition at line 151 of file plugin_defs.hpp.

152  {
153  for (auto it = ptrs.begin(), end = ptrs.end(); it != end; it++)
154  delete *it;
155  }

Member Function Documentation

◆ operator()()

template<typename T >
void* Gambit::Scanner::Plugins::classFactory< T >::operator() ( )
inlinevirtual

Implements Gambit::Scanner::Plugins::factoryBase.

Definition at line 144 of file plugin_defs.hpp.

145  {
146  T *ptr = new T;
147  ptrs.push_back(ptr);
148  return (void*) ptr;
149  }

Member Data Documentation

◆ ptrs

template<typename T >
std::vector<T *> Gambit::Scanner::Plugins::classFactory< T >::ptrs
private

Definition at line 141 of file plugin_defs.hpp.


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