casa
5.7.0-16
|
Ordered selection of distinct (no duplicates) page header items. More...
#include <PlotMSPageHeaderParam.h>
Public Types | |
using | HeaderItem = PageHeaderItemsDef::Item |
Public Member Functions | |
PageHeaderItems (const String &items=String(), const char sep=',') | |
const std::vector< HeaderItem > & | items () const |
void | setItems (const String &items=String(), const char sep=',') |
void | clear () |
bool | append (const String &item) |
bool | append (HeaderItem item) |
bool | remove (HeaderItem item) |
bool | full () const |
bool | selected (HeaderItem item) const |
pair< bool, size_t > | index (HeaderItem item) const |
bool | operator== (const PageHeaderItems &other) const |
bool | operator!= (const PageHeaderItems &other) const |
Static Public Attributes | |
static constexpr size_t | kMaxItems |
Private Attributes | |
std::vector< HeaderItem > | items_ |
map< HeaderItem, size_t > | item2index_ |
Ordered selection of distinct (no duplicates) page header items.
Enforce a maximum of 10 header items per plot.
Definition at line 134 of file PlotMSPageHeaderParam.h.
Definition at line 137 of file PlotMSPageHeaderParam.h.
bool casa::PageHeaderItems::append | ( | const String & | item | ) |
bool casa::PageHeaderItems::append | ( | HeaderItem | item | ) |
void casa::PageHeaderItems::clear | ( | ) |
bool casa::PageHeaderItems::full | ( | ) | const |
pair<bool,size_t> casa::PageHeaderItems::index | ( | HeaderItem | item | ) | const |
const std::vector<HeaderItem>& casa::PageHeaderItems::items | ( | ) | const |
Referenced by operator==().
|
inline |
Definition at line 152 of file PlotMSPageHeaderParam.h.
References casacore::operator==().
|
inline |
Definition at line 150 of file PlotMSPageHeaderParam.h.
References items().
bool casa::PageHeaderItems::remove | ( | HeaderItem | item | ) |
bool casa::PageHeaderItems::selected | ( | HeaderItem | item | ) | const |
|
private |
Definition at line 157 of file PlotMSPageHeaderParam.h.
|
private |
Definition at line 156 of file PlotMSPageHeaderParam.h.
|
static |
Definition at line 136 of file PlotMSPageHeaderParam.h.