TTK
Loading...
Searching...
No Matches
ttk::dcg::VPath Struct Reference

#include <DiscreteGradient.h>

Public Member Functions

 VPath ()=default
 
 VPath (const bool isValid, const SimplexId segmentId, const SimplexId source, const SimplexId destination, const SimplexId sourceSlot, const SimplexId destinationSlot, const double persistence)
 
 VPath (const bool isValid, const std::vector< char > &states, const std::vector< SimplexId > &segments, const SimplexId source, const SimplexId destination, const SimplexId sourceSlot, const SimplexId destinationSlot, const double persistence)
 
 VPath (const bool isValid, std::vector< char > &&states, std::vector< SimplexId > &&segments, const SimplexId source, const SimplexId destination, const SimplexId sourceSlot, const SimplexId destinationSlot, const double persistence)
 
int invalidate ()
 
int clear ()
 

Public Attributes

bool isValid_ {}
 
std::vector< char > states_ {}
 
std::vector< SimplexIdsegments_ {}
 
SimplexId source_ {-1}
 
SimplexId destination_ {-1}
 
SimplexId sourceSlot_ {-1}
 
SimplexId destinationSlot_ {-1}
 
double persistence_ {}
 

Detailed Description

Sequence of cells such that two consecutive cells differ in dimension by one.

Definition at line 87 of file DiscreteGradient.h.

Constructor & Destructor Documentation

◆ VPath() [1/4]

ttk::dcg::VPath::VPath ( )
explicitdefault

◆ VPath() [2/4]

ttk::dcg::VPath::VPath ( const bool isValid,
const SimplexId segmentId,
const SimplexId source,
const SimplexId destination,
const SimplexId sourceSlot,
const SimplexId destinationSlot,
const double persistence )
inlineexplicit

Definition at line 90 of file DiscreteGradient.h.

◆ VPath() [3/4]

ttk::dcg::VPath::VPath ( const bool isValid,
const std::vector< char > & states,
const std::vector< SimplexId > & segments,
const SimplexId source,
const SimplexId destination,
const SimplexId sourceSlot,
const SimplexId destinationSlot,
const double persistence )
inlineexplicit

Definition at line 102 of file DiscreteGradient.h.

◆ VPath() [4/4]

ttk::dcg::VPath::VPath ( const bool isValid,
std::vector< char > && states,
std::vector< SimplexId > && segments,
const SimplexId source,
const SimplexId destination,
const SimplexId sourceSlot,
const SimplexId destinationSlot,
const double persistence )
inlineexplicit

Definition at line 115 of file DiscreteGradient.h.

Member Function Documentation

◆ clear()

int ttk::dcg::VPath::clear ( )
inline

Free internal segments' memory.

Definition at line 145 of file DiscreteGradient.h.

◆ invalidate()

int ttk::dcg::VPath::invalidate ( )
inline

Invalidate this vpath so that it is ignored in the simplification process, free memory for economy reasons.

Definition at line 132 of file DiscreteGradient.h.

Member Data Documentation

◆ destination_

SimplexId ttk::dcg::VPath::destination_ {-1}

Definition at line 156 of file DiscreteGradient.h.

◆ destinationSlot_

SimplexId ttk::dcg::VPath::destinationSlot_ {-1}

Definition at line 158 of file DiscreteGradient.h.

◆ isValid_

bool ttk::dcg::VPath::isValid_ {}

Definition at line 152 of file DiscreteGradient.h.

◆ persistence_

double ttk::dcg::VPath::persistence_ {}

Definition at line 159 of file DiscreteGradient.h.

◆ segments_

std::vector<SimplexId> ttk::dcg::VPath::segments_ {}

Definition at line 154 of file DiscreteGradient.h.

◆ source_

SimplexId ttk::dcg::VPath::source_ {-1}

Definition at line 155 of file DiscreteGradient.h.

◆ sourceSlot_

SimplexId ttk::dcg::VPath::sourceSlot_ {-1}

Definition at line 157 of file DiscreteGradient.h.

◆ states_

std::vector<char> ttk::dcg::VPath::states_ {}

Definition at line 153 of file DiscreteGradient.h.


The documentation for this struct was generated from the following file: