PandaRoot
PndMvaClass.h
Go to the documentation of this file.
1 /*************************************
2  * The structure of the classes. *
3  * Author: M.Babai@rug.nl *
4  * Version: *
5  * License: *
6  *************************************/
7 //#pragma once
8 #ifndef PND_MVA_CLASS_H
9 #define PND_MVA_CLASS_H
10 
15 struct PndMvaClass {
17 
20  explicit PndMvaClass(std::string const &name);
21 
23  virtual ~PndMvaClass();
24 
26  PndMvaClass(PndMvaClass const &oth);
27 
29  PndMvaClass &operator=(PndMvaClass const &oth);
30 
31  std::string Name;
32  size_t NExamples;
33  size_t StartIdx;
34  size_t EndIdx;
35  size_t NTrainEx;
37  private:
38  bool operator==(PndMvaClass const &oth) const;
39  bool operator>(PndMvaClass const &oth) const;
40  bool operator<(PndMvaClass const &oth) const;
41 }; // End of interface.
42 
43 //_________________________ Implement. __________________
48 inline PndMvaClass::PndMvaClass(std::string const &name) : Name(name), NExamples(0), StartIdx(0), EndIdx(0), NTrainEx(0){};
49 
52 
55 {
56  // check for self-assignment
57  if (this != &oth) // Not self-assign
58  {
59  this->Name = oth.Name;
60  this->NExamples = oth.NExamples;
61  this->StartIdx = oth.StartIdx;
62  this->EndIdx = oth.EndIdx;
63  this->NTrainEx = oth.NTrainEx;
64  }
65  return (*this);
66 };
67 
70 #endif
PndMvaClass & operator=(PndMvaClass const &oth)
= Operator
Definition: PndMvaClass.h:54
std::string Name
Definition: PndMvaClass.h:31
virtual ~PndMvaClass()
Destructor.
Definition: PndMvaClass.h:69
size_t EndIdx
Definition: PndMvaClass.h:34
size_t NTrainEx
Definition: PndMvaClass.h:35
PndMvaClass(std::string const &name)
Constructor.
Definition: PndMvaClass.h:48
size_t NExamples
Definition: PndMvaClass.h:32
size_t StartIdx
Definition: PndMvaClass.h:33