60 bool contains(
const double& phase)
const;
61 void append(
const double& pmin,
const double& pmax);
62 void remove(
const int& index);
65 double pmin(
const int& index)
const;
66 double pmax(
const int& index)
const;
104 return (
int)
m_pmin.size();
116 return (
m_pmin.size() == 0);
void clear(void)
Clear phase intervals.
double length(void) const
Returns total length of phase intervals.
void append(const double &pmin, const double &pmax)
Append phase interval.
double pmax(const int &index) const
Returns upper boundary for a given phase interval.
void reserve(const int &num)
Reserve space for phase intervals.
int size(void) const
Return number of phase intervals.
GPhases * clone(void) const
Clone phase intervals.
virtual ~GPhases(void)
Destructor.
bool is_empty(void) const
Signal if there are no phase intervals.
void init_members(void)
Initialise class members.
void insert_interval(const int &index, const double &pmin, const double &pmax)
Insert phase interval.
bool contains(const double &phase) const
Check whether phase is contained in phases.
void copy_members(const GPhases &phases)
Copy class members.
void extend(const GPhases &phases)
Append phase intervals.
std::vector< double > m_pmax
void free_members(void)
Delete class members.
GPhases & operator=(const GPhases &phases)
Assignment operator.
std::vector< double > m_pmin
double pmin(const int &index) const
Returns lower boundary for a given phase interval.
Definition of interface for container classes.
GPhases(void)
Void constructor.
std::string print(const GChatter &chatter=NORMAL) const
Print phase intervals.
std::string classname(void) const
Return class name.
Interface class for container classes.