CorrelatorSet encapsulates a set of correlators to facilitate management of addition and removal of correlators to a subarray.
More...
#include <carma/util/CorrelatorSet.h>
CorrelatorSet encapsulates a set of correlators to facilitate management of addition and removal of correlators to a subarray.
The class provides methods to discover what kinds of correlators are in the set (SL, WB, C3GMAX8, C3GMAX23), without having to know the detailed bitmask/enum.
Definition at line 33 of file CorrelatorSet.h.
carma::util::CorrelatorSet::CorrelatorSet |
( |
| ) |
|
carma::util::CorrelatorSet::CorrelatorSet |
( |
carma::util::CorrelatorType |
corr | ) |
|
Constructor.
- Parameters
-
correlator | designation enum |
virtual carma::util::CorrelatorSet::~CorrelatorSet |
( |
| ) |
|
|
virtual |
Constructor.
- Parameters
-
corr | monitor namespace correlator designation enum CorrelatorSet(MonitorCorrelatorDesignation corr); Destructor. |
void carma::util::CorrelatorSet::addC3gMax23 |
( |
| ) |
|
Add the C3GMAX23 correlator to this set.
void carma::util::CorrelatorSet::addC3gMax8 |
( |
| ) |
|
Add the C3GMAX8 correlator to this set.
void carma::util::CorrelatorSet::addCorrelator |
( |
carma::util::CorrelatorType |
corr | ) |
|
Initialize this correlator set.
- Parameters
-
corr | monitor namespace correlator designation enum void initialize(MonitorCorrelatorDesignation corr); Add a correlator to this set |
corr | correlator designation enum |
void carma::util::CorrelatorSet::addSpectral |
( |
| ) |
|
Add the spectral correlator to this set.
void carma::util::CorrelatorSet::addWideband |
( |
| ) |
|
Add the wideband correlator to this set.
CorrelatorType carma::util::CorrelatorSet::corrType |
( |
| ) |
const |
- Returns
- the underlying correlator type value
std::string carma::util::CorrelatorSet::corrTypeString |
( |
| ) |
const |
- Returns
- string representation of enum this correlator set
bool carma::util::CorrelatorSet::firstCorrelatorIs |
( |
carma::util::CorrelatorType |
corr | ) |
const |
- Returns
- true if the passed correlator is the first one (in bit order) in the set
- Parameters
-
corr | correlator designation enum |
carma::util::CorrelatorType carma::util::CorrelatorSet::getControlCorrelatorDesignation |
( |
| ) |
const |
- Returns
- correlator designation enum for this set
std::vector<carma::util::CorrelatorType> carma::util::CorrelatorSet::getControlCorrelatorDesignations |
( |
| ) |
const |
- Returns
- vector of correlator Designations that this set includes
carma::util::CorrelatorType carma::util::CorrelatorSet::getFirstControlCorrelatorDesignation |
( |
| ) |
const |
- Returns
- correlator designation enum of the first (in bit order) correlator in this set
bool carma::util::CorrelatorSet::includes |
( |
const carma::util::CorrelatorType |
corr | ) |
const |
- Returns
- true if this set includes the specified correlator set
- Parameters
-
corr | correlator designation enum |
bool carma::util::CorrelatorSet::includes |
( |
const CorrelatorSet & |
set | ) |
const |
- Returns
- true if this set includes the specified correlator set
- Parameters
-
bool carma::util::CorrelatorSet::includesC3gMax23 |
( |
| ) |
const |
- Returns
- true if this set contains the C3G Max23 correlator.
bool carma::util::CorrelatorSet::includesC3gMax8 |
( |
| ) |
const |
- Returns
- true if this set contains the C3G Max8 correlator.
bool carma::util::CorrelatorSet::includesSpectral |
( |
| ) |
const |
- Returns
- true if this set contains the spectral correlator.
bool carma::util::CorrelatorSet::includesWideband |
( |
| ) |
const |
- Returns
- true if this set contains the wideband correlator.
void carma::util::CorrelatorSet::initialize |
( |
carma::util::CorrelatorType |
corr | ) |
|
Initialize this correlator set.
- Parameters
-
corr | correlator designation enum |
bool carma::util::CorrelatorSet::isAll |
( |
| ) |
const |
- Returns
- true if this set contains all correlators
bool carma::util::CorrelatorSet::isC3g |
( |
| ) |
const |
- Returns
- true if this set contains any the C3G band.
bool carma::util::CorrelatorSet::isC3gMax23 |
( |
| ) |
const |
- Returns
- true if this set contains ONLY the C3G Max23 correlator.
bool carma::util::CorrelatorSet::isC3gMax8 |
( |
| ) |
const |
- Returns
- true if this set contains ONLY the C3G Max8 correlator.
bool carma::util::CorrelatorSet::isEmpty |
( |
| ) |
const |
- Returns
- true if this set is empty
bool carma::util::CorrelatorSet::isSingleCorrelator |
( |
| ) |
const |
- Returns
- true if this set represents a single correlator
bool carma::util::CorrelatorSet::isSpectral |
( |
| ) |
const |
- Returns
- true if this set contains ONLY the spectral correlator.
bool carma::util::CorrelatorSet::isWideband |
( |
| ) |
const |
- Returns
- true if this set contains ONLY the wideband correlator.
std::string carma::util::CorrelatorSet::mpString |
( |
| ) |
const |
- Returns
- string representation of monitor namespace enum this correlator set
unsigned carma::util::CorrelatorSet::nCorrelator |
( |
| ) |
const |
- Returns
- the number of correlators contained in this set
void carma::util::CorrelatorSet::operator= |
( |
carma::util::CorrelatorType |
corr | ) |
|
Assignment operator.
- Parameters
-
corr | correlator designation enum |
bool carma::util::CorrelatorSet::operator== |
( |
carma::util::CorrelatorType |
corr | ) |
|
Equality operator.
- Parameters
-
corr | correlator designation enum |
bool carma::util::CorrelatorSet::operator== |
( |
const CorrelatorSet & |
set | ) |
const |
Equality operators.
- Parameters
-
void carma::util::CorrelatorSet::removeCorrelator |
( |
carma::util::CorrelatorType |
corr | ) |
|
Remove a correlator from this set.
- Parameters
-
corr | correlator designation enum |
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const CorrelatorSet & |
set |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: