casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
casa::PageHeaderItems Class Reference

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< HeaderItemitems_
 
map< HeaderItem, size_t > item2index_
 

Detailed Description

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.

Member Typedef Documentation

Definition at line 137 of file PlotMSPageHeaderParam.h.

Constructor & Destructor Documentation

casa::PageHeaderItems::PageHeaderItems ( const String items = String(),
const char  sep = ',' 
)

Member Function Documentation

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==().

bool casa::PageHeaderItems::operator!= ( const PageHeaderItems other) const
inline

Definition at line 152 of file PlotMSPageHeaderParam.h.

References casacore::operator==().

bool casa::PageHeaderItems::operator== ( const PageHeaderItems other) const
inline

Definition at line 150 of file PlotMSPageHeaderParam.h.

References items().

bool casa::PageHeaderItems::remove ( HeaderItem  item)
bool casa::PageHeaderItems::selected ( HeaderItem  item) const
void casa::PageHeaderItems::setItems ( const String items = String(),
const char  sep = ',' 
)

Member Data Documentation

map<HeaderItem,size_t> casa::PageHeaderItems::item2index_
private

Definition at line 157 of file PlotMSPageHeaderParam.h.

std::vector<HeaderItem> casa::PageHeaderItems::items_
private

Definition at line 156 of file PlotMSPageHeaderParam.h.

constexpr size_t casa::PageHeaderItems::kMaxItems
static

Definition at line 136 of file PlotMSPageHeaderParam.h.


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