template<typename Position, typename
Tree>
class quetzal::coalescence::container::Forest< Position, Tree >
Collection of geo-localized coalescing trees.
- Template Parameters
-
Position | Type of the geographic coordinate of the associated tree. |
Tree | Type of the coalescence tree. |
|
| Forest () |
| Default constructor.
|
|
| Forest (const Forest< Position, Tree > &other) |
| Copy constructor.
|
|
| Forest (Forest< Position, Tree > &&other) noexcept |
| Move constructor.
|
|
Forest< Position, Tree > & | operator= (const Forest< Position, Tree > &other) |
| Copy assignment operator.
|
|
Forest< Position, Tree > & | operator= (Forest< Position, Tree > &&other) noexcept |
| Move assignment operator.
|
|
iterator | begin () |
| returns iterator to the begin
|
|
iterator | end () |
| returns iterator to the end
|
|
const_iterator | begin () const |
| returns iterator to the begining
|
|
const_iterator | end () const |
| returns iterator to the begining
|
|
const_iterator | cbegin () const |
| returns iterator to the begin
|
|
const_iterator | cend () const |
| returns iterator to the begin
|
|
unsigned int | nb_trees () const |
| number of trees in the forest
|
|
unsigned int | nb_trees (Position const &position) const |
| number of trees in the forest at a given position
|
|
std::pair< const_iterator, const_iterator > | trees_at_same_position (const Position &position) const |
| non-modifying access to trees in the forest at a given position
|
|
std::pair< iterator, iterator > | trees_at_same_position (const Position &position) |
| access to trees in the forest at a given position
|
|
iterator | insert (Position const &position, Tree const &tree) |
| insert a new tree at a given position
|
|
iterator | insert (Position const &position, Tree &&tree) noexcept |
| insert a new tree at a given position
|
|
Forest< Position, Tree > & | insert (Position const &position, std::vector< Tree > const &trees) |
| insert a vector of trees at a given position
|
|
Forest< Position, Tree > & | insert (Position const &position, std::vector< Tree > &&trees) noexcept |
| insert a vector of trees at a given position
|
|
size_type | erase (Position const &x) |
| erase a position from the Forest.
|
|
void | erase (iterator first, iterator last) |
| remove elements from the Forest.
|
|
std::set< Position > | positions () const |
| positions in the forest
|
|
std::vector< Tree > | get_all_trees () const |
| copies all trees in the forest
|
|