Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
PlotsRegister Class Reference

Holds ranges and offsets of all plots. Singleton class. More...

#include <PlotsRegister.hpp>

Collaboration diagram for PlotsRegister:

Public Member Functions

bool CheckRange (int offset, int range) const
 
bool Add (int offset, int range, std::string name_)
 
 ~PlotsRegister ()
 

Static Public Member Functions

static PlotsRegisterget ()
 

Private Member Functions

 PlotsRegister ()
 
 PlotsRegister (const PlotsRegister &)
 Overload of the constructor.
 
PlotsRegisteroperator= (PlotsRegister const &)
 the copy constructor
 

Private Attributes

std::vector< std::pair< int, int > > reg
 Vector of min, max of histogram numbers.
 

Static Private Attributes

static PlotsRegisterinstance
 static instance of the class
 

Detailed Description

Holds ranges and offsets of all plots. Singleton class.

Constructor & Destructor Documentation

PlotsRegister::~PlotsRegister ( )

Default destructor

PlotsRegister::PlotsRegister ( )
inlineprivate

Default constructor

Member Function Documentation

bool PlotsRegister::Add ( int  offset,
int  range,
std::string  name_ 
)

Add an offset, range, and name to known list

Parameters
[in]offset: the offset to add
[in]range: the associated range to add
[in]name_: the name to add
Returns
true if everything is good
bool PlotsRegister::CheckRange ( int  offset,
int  range 
) const

Check if the range provided is legit

Parameters
[in]offset: the offset that needs checked
[in]range: the range that needs checked
Returns
true if the range is legit
static PlotsRegister* PlotsRegister::get ( )
static
Returns
pointer to only instance of PlotsRegister

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