PAASS
Software suite to Acquire and Analyze Data from Pixie16
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. More...
 
PlotsRegisteroperator= (PlotsRegister const &)
 the copy constructor More...
 

Private Attributes

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

Static Private Attributes

static PlotsRegisterinstance = NULL
 static instance of the class More...
 

Detailed Description

Holds ranges and offsets of all plots. Singleton class.

Definition at line 14 of file PlotsRegister.hpp.

Constructor & Destructor Documentation

§ ~PlotsRegister()

PlotsRegister::~PlotsRegister ( )

Default destructor

Definition at line 23 of file PlotsRegister.cpp.

§ PlotsRegister() [1/2]

PlotsRegister::PlotsRegister ( )
inlineprivate

Default constructor

Definition at line 37 of file PlotsRegister.hpp.

Here is the call graph for this function:

§ PlotsRegister() [2/2]

PlotsRegister::PlotsRegister ( const PlotsRegister )
private

Overload of the constructor.

Member Function Documentation

§ Add()

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

Definition at line 44 of file PlotsRegister.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ CheckRange()

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

Definition at line 28 of file PlotsRegister.cpp.

§ get()

PlotsRegister * PlotsRegister::get ( )
static
Returns
pointer to only instance of PlotsRegister

Definition at line 16 of file PlotsRegister.cpp.

Here is the caller graph for this function:

§ operator=()

PlotsRegister& PlotsRegister::operator= ( PlotsRegister const &  )
private

the copy constructor

Here is the caller graph for this function:

Field Documentation

§ instance

PlotsRegister * PlotsRegister::instance = NULL
staticprivate

static instance of the class

Definition at line 40 of file PlotsRegister.hpp.

§ reg

std::vector< std::pair<int, int> > PlotsRegister::reg
private

Vector of min, max of histogram numbers.

Definition at line 42 of file PlotsRegister.hpp.


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