8#ifndef ADOBE_SELECTION_HPP
9#define ADOBE_SELECTION_HPP
16#include <boost/operators.hpp>
102 bool empty()
const {
return store_m.empty() && start_selected_m ==
false; }
107 assert(store_m.empty() || store_m.back() < x);
109 store_m.push_back(x);
124 void invert() { start_selected_m = !start_selected_m; }
136#ifndef ADOBE_NO_DOCUMENTATION
139 bool start_selected_m;
std::vector< value_type > store_type
store_type for selection_t
const value_type * const_pointer
const_pointer for selection_t
const value_type & operator[](const size_type &i) const
fetches a toggle point at index i of the toggle point sequence
const_iterator begin() const
gets an iterator to the beginning of the toggle point sequence
friend bool operator==(const selection_t &x, const selection_t &y)
store_type::const_iterator iterator
iterator for selection_t
void push_back(const value_type &x)
store_type::size_type size_type
size_type for selection_t
selection_t(I first, I last, bool start_selected=false)
bool start_selected() const
value_type & reference
reference for selection_t
selection_t(bool start_selected=false)
store_type::difference_type difference_type
difference_type for selection_t
const_iterator end() const
gets an iterator to the end of the toggle point sequence
value_type * pointer
pointer for selection_t
std::size_t value_type
value_type for selection_t
store_type::const_iterator const_iterator
const_iterator for selection_t
const value_type & const_reference
const_reference for selection_t