TTK
Loading...
Searching...
No Matches
FTRSegmentation.cpp
Go to the documentation of this file.
1
8
9#ifndef TTK_ENABLE_KAMIKAZE
10#include <iostream>
11#endif
12
13#include <algorithm>
14#include <iterator>
15
16#include "FTRSegmentation.h"
17
18using namespace std;
19using namespace ttk;
20using namespace ftr;
21
22// -------
23// Segment
24// -------
25
26Segment::Segment(idVertex size) : vertices_(size, nullVertex) {
27}
28
29Segment::Segment() = default;
30
32 return vertices_.begin();
33}
34
36 return vertices_.begin();
37}
38
40 return vertices_.end();
41}
42
44 return vertices_.end();
45}
46
48 return vertices_.size();
49}
50
51void Segment::reserve(const idVertex size) {
52 vertices_.reserve(size);
53}
54
56 vertices_.emplace_back(v);
57}
58
59idVertex Segment::operator[](const size_t &idx) const {
60 return vertices_[idx];
61}
62
63idVertex &Segment::operator[](const size_t &idx) {
64 return vertices_[idx];
65}
idVertex operator[](const size_t &idx) const
segm_const_it begin() const
idVertex size() const
segm_const_it end() const
void emplace_back(const idVertex v)
void reserve(const idVertex size)
std::vector< idVertex >::const_iterator segm_const_it
std::vector< idVertex >::iterator segm_it
SimplexId idVertex
Vertex index in scalars_.
The Topology ToolKit.