TTK
Loading...
Searching...
No Matches
DeprecatedDataTypes.h
Go to the documentation of this file.
1
19
20#pragma once
21
22#include <DataTypes.h>
23#include <limits>
24#include <tuple>
25
26namespace ttk {
27 namespace cf {
28
29 // Types
30 // --------
31
33 using idSuperArc = long unsigned int;
35 using idNode = unsigned int;
36
38 // Warning, in long long int the max super arc is -1, might not be able to
39 // deal with too large data
40 using idCorresp = long long int;
41
45
51
53 using ufDataType = long int;
54
55 // Special values for types
56 // --------------------------
57
58 // QUESTION impact on performance using max (0 would be faster alloacted)
59 static const idSuperArc nullSuperArc
60 = std::numeric_limits<idSuperArc>::max();
61 static const idNode nullNodes = std::numeric_limits<idNode>::max();
62 static const SimplexId nullVertex = std::numeric_limits<SimplexId>::max();
63 static const idCorresp nullCorresp = std::numeric_limits<idCorresp>::max();
64 static const idSegment nullSegment = std::numeric_limits<idSegment>::max();
65 static const idInterface nullInterface
66 = std::numeric_limits<idInterface>::max();
67 static const idPartition nullPartition
68 = std::numeric_limits<idPartition>::max();
69 static const ufDataType nullUfData = std::numeric_limits<ufDataType>::max();
70 static constexpr ufDataType specialUfData
71 = std::numeric_limits<ufDataType>::max() - 1;
72
73 // Enum data
74 // ----------
75
76 enum TreeType : char { Join = 0, Split = 1, Contour = 2, JoinAndSplit = 3 };
77
78 enum SimplifMethod : char { Persist = 0, Span = 1, NbVert = 2, NbArc = 3 };
79
81
89
97 } // namespace cf
98} // namespace ttk
long long int idCorresp
type used to recover Node/Arc in vert2tree SIGNED ONLY
numThread idPartition
idSuperArc idSegment
for the segmentation, we have an array of segment containing area of the mesh
long unsigned int idSuperArc
SuperArc index in vect_superArcs_.
unsigned int idNode
Node index in vect_nodes_.
long int ufDataType
type stored by UnionFind
ThreadId numThread
type use to store threads related numbers
numThread idInterface
index of the interface/partition in vect_interfaces_
TTK base package defining the standard types.
int SimplexId
Identifier type for simplices of any dimension.
Definition DataTypes.h:22
int ThreadId
Identifier type for threads (i.e. with OpenMP).
Definition DataTypes.h:26