CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 58 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 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 63 of file MVATrainerLooper.cc.

References begin, ws_sso_content_reader::content, and end.

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

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

Definition at line 61 of file MVATrainerLooper.h.

References content.

Referenced by PhysicsTools::MVATrainerLooper::duringLoop(), and PhysicsTools::MVATrainerLooper::endOfLoop().

61 { return content.empty(); }
const_iterator PhysicsTools::MVATrainerLooper::TrainerContainer::end ( void  ) const
inline

Member Data Documentation

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