3D Forest
Software for analysis of Lidar data from forest environment.
QueryFilterSet Class Reference

#include <QueryFilterSet.hpp>

Public Member Functions

 QueryFilterSet ()
 
 QueryFilterSet (const std::unordered_set< size_t > &list, bool enabled=true)
 
 ~QueryFilterSet ()
 
void clear ()
 
void setEnabled (bool enabled)
 
bool enabled () const
 
void setEnabled (size_t id, bool enabled)
 
bool enabled (size_t id) const
 
bool contains (size_t value) const
 
const std::unordered_set< size_t > & filter () const
 
void setFilter (const std::unordered_set< size_t > &list)
 
void setValues (const std::unordered_set< size_t > &list)
 
void none ()
 
void all ()
 
void invert ()
 
void erase (size_t id)
 

Private Attributes

std::unordered_set< size_t > filter_
 
std::unordered_set< size_t > values_
 
bool enabled_
 

Constructor & Destructor Documentation

◆ QueryFilterSet() [1/2]

QueryFilterSet::QueryFilterSet ( )

◆ QueryFilterSet() [2/2]

QueryFilterSet::QueryFilterSet ( const std::unordered_set< size_t > & list,
bool enabled = true )

◆ ~QueryFilterSet()

QueryFilterSet::~QueryFilterSet ( )

Member Function Documentation

◆ all()

void QueryFilterSet::all ( )

◆ clear()

◆ contains()

bool QueryFilterSet::contains ( size_t value) const
inline

◆ enabled() [1/2]

◆ enabled() [2/2]

bool QueryFilterSet::enabled ( size_t id) const
inline

◆ erase()

void QueryFilterSet::erase ( size_t id)

◆ filter()

const std::unordered_set< size_t > & QueryFilterSet::filter ( ) const
inline

◆ invert()

void QueryFilterSet::invert ( )

◆ none()

void QueryFilterSet::none ( )

◆ setEnabled() [1/2]

◆ setEnabled() [2/2]

void QueryFilterSet::setEnabled ( size_t id,
bool enabled )

◆ setFilter()

void QueryFilterSet::setFilter ( const std::unordered_set< size_t > & list)

◆ setValues()

void QueryFilterSet::setValues ( const std::unordered_set< size_t > & list)

Member Data Documentation

◆ enabled_

bool QueryFilterSet::enabled_
private

Referenced by clear().

◆ filter_

std::unordered_set<size_t> QueryFilterSet::filter_
private

◆ values_

std::unordered_set<size_t> QueryFilterSet::values_
private

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