Class to encapsulate the records that make up a "merge table". More...
#include <MergeTable.h>

Public Member Functions | |
| MergeTable (int aNumPb, const std::string &aFileName) | |
| Constructs a merge table from the contents of a given binary file. | |
| ~MergeTable () | |
| Destructor deletes merge table. | |
| int | getNumPassbands () const |
| Return the number of entries (ie passbands) per merge record. | |
| int | getNumRecords () const |
| Return the total number of merged records. | |
| int | getEntry (int aRecNo, int aPbNo) const |
Private Member Functions | |
| void | read (const std::string &aFileName) |
| Read the merge table from the given binary file. | |
Private Attributes | |
| int * | mPbDetectionAry |
| Put merge table in this array of ints. | |
| int | mNumPb |
| Number of entries (passbands) per merge record. | |
| int | mNumRecords |
| Number of merge records. | |
Class to encapsulate the records that make up a "merge table".
Each record of a merge table gives the records for input passband data which all correspond to the same object as determined from the pairing procedure.
| MergeTable::MergeTable | ( | int | aNumPb, | |
| const std::string & | aFileName | |||
| ) |
Constructs a merge table from the contents of a given binary file.
| aNumPb | Number of passbands | |
| aFileName | Name of binary file containing merge table records |
References read().
| MergeTable::~MergeTable | ( | ) | [inline] |
Destructor deletes merge table.
References mPbDetectionAry.
| int MergeTable::getEntry | ( | int | aRecNo, | |
| int | aPbNo | |||
| ) | const [inline] |
Return the input passband record number for the given merged record number and passband number
References mNumPb, and mPbDetectionAry.
Referenced by SourceTable::copyPassband(), and SourceTable::insertAstrometricData().
| int MergeTable::getNumPassbands | ( | ) | const [inline] |
Return the number of entries (ie passbands) per merge record.
References mNumPb.
| int MergeTable::getNumRecords | ( | ) | const [inline] |
Return the total number of merged records.
References mNumRecords.
| void MergeTable::read | ( | const std::string & | aFileName | ) | [private] |
Read the merge table from the given binary file.
References Logger::addMessage(), mNumPb, mNumRecords, mPbDetectionAry, and StringOps::NumToString().
Referenced by MergeTable().
int MergeTable::mNumPb [private] |
Number of entries (passbands) per merge record.
Referenced by getEntry(), getNumPassbands(), and read().
int MergeTable::mNumRecords [private] |
Number of merge records.
Referenced by getNumRecords(), and read().
int* MergeTable::mPbDetectionAry [private] |
Put merge table in this array of ints.
Referenced by getEntry(), read(), and ~MergeTable().
1.6.3