template<typename T>
xmol::proxy::Selection class

Public types

struct EqualComparator
struct LessThanComparator

Constructors, destructors, conversion operators

Selection() defaulted
template<typename Iterator>
Selection(Iterator first, Iterator last, bool sorted_and_unique = false)
template<typename Container>
Selection(Container&& c, bool sorted_and_unique = false) explicit
Selection(std::vector<T>&& data, bool sorted_and_unique = false) explicit

Public functions

auto begin() -> auto
auto end() -> auto
auto size() const -> size_t
auto empty() const -> size_t
auto operator[](size_t i) -> T&
auto contains(const T& proxy) const -> bool

Protected functions

void unite(const Selection& rhs)
void substract(const Selection& rhs)
void intersect(const Selection& rhs)
template<typename Predicate>
auto internal_filter(Predicate&& p) -> std::vector<T>
auto slice_impl(std::optional<size_t> start, std::optional<size_t> stop, std::optional<size_t> step) -> std::vector<T>

Protected variables

std::vector<T> m_data