ROOT  6.06/08
Reference Guide
Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
TMVA::ClassifierFactory Class Reference

Definition at line 57 of file ClassifierFactory.h.

Public Types

typedef IMethod *(* Creator) (const TString &job, const TString &title, DataSetInfo &dsi, const TString &option)
 

Public Member Functions

Bool_t Register (const std::string &name, Creator creator)
 registers a classifier creator function under the method type name More...
 
Bool_t Unregister (const std::string &name)
 unregisters a classifier type name More...
 
IMethod * Create (const std::string &name, const TString &job, const TString &title, DataSetInfo &dsi, const TString &option)
 creates the method if needed based on the method name using the creator function the factory has stored More...
 
IMethod * Create (const std::string &name, DataSetInfo &dsi, const TString &weightfile="")
 creates the method if needed based on the method name using the creator function the factory has stored More...
 
const std::vector< std::string > List () const
 returns a vector of the method type names of registered methods More...
 
void Print () const
 prints the registered method type names More...
 

Static Public Member Functions

static ClassifierFactory & Instance ()
 access to the ClassifierFactory singleton creates the instance if needed More...
 
static void DestroyInstance ()
 destroy the singleton instance More...
 

Private Types

typedef std::map< std::string, Creator > CallMap
 

Private Member Functions

 ClassifierFactory ()
 
 ~ClassifierFactory ()
 
 ClassifierFactory (const ClassifierFactory &)
 
const ClassifierFactory & operator= (const ClassifierFactory &)
 

Private Attributes

CallMap fCalls
 

Static Private Attributes

static ClassifierFactory * fgInstance = 0
 Initialize static singleton pointer. More...
 

#include <TMVA/ClassifierFactory.h>

+ Collaboration diagram for TMVA::ClassifierFactory:

Member Typedef Documentation

§ CallMap

typedef std::map<std::string, Creator> TMVA::ClassifierFactory::CallMap
private

Definition at line 100 of file ClassifierFactory.h.

§ Creator

typedef IMethod*(* TMVA::ClassifierFactory::Creator) (const TString &job, const TString &title, DataSetInfo &dsi, const TString &option)

Definition at line 62 of file ClassifierFactory.h.

Constructor & Destructor Documentation

§ ClassifierFactory() [1/2]

TMVA::ClassifierFactory::ClassifierFactory ( )
inlineprivate

Definition at line 89 of file ClassifierFactory.h.

Referenced by ~ClassifierFactory().

§ ~ClassifierFactory()

TMVA::ClassifierFactory::~ClassifierFactory ( )
inlineprivate

Definition at line 90 of file ClassifierFactory.h.

§ ClassifierFactory() [2/2]

TMVA::ClassifierFactory::ClassifierFactory ( const ClassifierFactory &  )
private

Member Function Documentation

§ Create() [1/2]

TMVA::IMethod * TMVA::ClassifierFactory::Create ( const std::string &  name,
const TString &  job,
const TString &  title,
DataSetInfo &  dsi,
const TString &  option 
)

creates the method if needed based on the method name using the creator function the factory has stored

Definition at line 84 of file ClassifierFactory.cxx.

Referenced by TMVA::MethodCategory::AddMethod(), TMVA::Factory::BookMethod(), TMVA::Reader::BookMVA(), TMVA::MethodCategory::ReadWeightsFromXML(), TMVA::MethodBoost::Train(), and TMVA::Factory::TrainAllMethods().

§ Create() [2/2]

TMVA::IMethod * TMVA::ClassifierFactory::Create ( const std::string &  name,
DataSetInfo &  dsi,
const TString &  weightfile = "" 
)

creates the method if needed based on the method name using the creator function the factory has stored

Definition at line 108 of file ClassifierFactory.cxx.

§ DestroyInstance()

void TMVA::ClassifierFactory::DestroyInstance ( )
static

destroy the singleton instance

Definition at line 53 of file ClassifierFactory.cxx.

§ Instance()

TMVA::ClassifierFactory & TMVA::ClassifierFactory::Instance ( )
static

§ List()

const std::vector< std::string > TMVA::ClassifierFactory::List ( ) const

returns a vector of the method type names of registered methods

Definition at line 129 of file ClassifierFactory.cxx.

§ operator=()

const ClassifierFactory& TMVA::ClassifierFactory::operator= ( const ClassifierFactory &  )
private

Referenced by ~ClassifierFactory().

§ Print()

void TMVA::ClassifierFactory::Print ( ) const

prints the registered method type names

Definition at line 142 of file ClassifierFactory.cxx.

§ Register()

Bool_t TMVA::ClassifierFactory::Register ( const std::string &  name,
Creator  creator 
)

registers a classifier creator function under the method type name

Definition at line 61 of file ClassifierFactory.cxx.

§ Unregister()

Bool_t TMVA::ClassifierFactory::Unregister ( const std::string &  name)

unregisters a classifier type name

Definition at line 75 of file ClassifierFactory.cxx.

Member Data Documentation

§ fCalls

CallMap TMVA::ClassifierFactory::fCalls
private

Definition at line 102 of file ClassifierFactory.h.

Referenced by Create(), List(), Print(), Register(), and Unregister().

§ fgInstance

TMVA::ClassifierFactory * TMVA::ClassifierFactory::fgInstance = 0
staticprivate

Initialize static singleton pointer.

Definition at line 99 of file ClassifierFactory.h.

Referenced by DestroyInstance(), and Instance().


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