CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
PhysicsTools::MVATrainerLooper::TrainerContainer Class Reference

#include <MVATrainerLooper.h>

Public Types

typedef std::vector< Trainer * >::const_iterator const_iterator
 

Public Member Functions

void add (Trainer *trainer)
 
const_iterator begin () const
 
void clear ()
 
bool empty () const
 
const_iterator end () const
 
 ~TrainerContainer ()
 

Private Attributes

std::vector< Trainer * > content
 

Detailed Description

Definition at line 52 of file MVATrainerLooper.h.

Member Typedef Documentation

Definition at line 57 of file MVATrainerLooper.h.

Constructor & Destructor Documentation

PhysicsTools::MVATrainerLooper::TrainerContainer::~TrainerContainer ( )

Definition at line 56 of file MVATrainerLooper.cc.

References hitfit::clear().

Member Function Documentation

void PhysicsTools::MVATrainerLooper::TrainerContainer::add ( Trainer trainer)
inline

Definition at line 63 of file MVATrainerLooper.h.

References ws_sso_content_reader::content.

Referenced by PhysicsTools::MVATrainerLooper::addTrainer(), and counter.Counter::register().

64  { content.push_back(trainer); }
const_iterator PhysicsTools::MVATrainerLooper::TrainerContainer::begin ( void  ) const
inline
void PhysicsTools::MVATrainerLooper::TrainerContainer::clear ( void  )

Definition at line 61 of file MVATrainerLooper.cc.

References begin, ws_sso_content_reader::content, and end.

Referenced by PhysicsTools::MVATrainerLooper::duringLoop().

62 {
63  std::for_each(begin(), end(), deleter<Trainer>);
64  content.clear();
65 }
bool PhysicsTools::MVATrainerLooper::TrainerContainer::empty ( void  ) const
inline
const_iterator PhysicsTools::MVATrainerLooper::TrainerContainer::end ( void  ) const
inline

Member Data Documentation

std::vector<Trainer*> PhysicsTools::MVATrainerLooper::TrainerContainer::content
private