Struct Trace::Connection

Nested Relationships

This struct is a nested type of Class Trace.

Struct Documentation

struct Connection

Inner class of Trace, contains information about last append and a pointer to the Connection before.

Public Functions

Connection(const Edge &edge, const double &heur, const bool &loopClosed, std::shared_ptr<Connection> before)

Construct a new Connection object.

Parameters:
  • edge[in]

  • heur[in]

  • loopClosed[in]

  • before[in]

bool containsEdge(const Edge &_edge) const

Returns if there is _edge in the Connection chain.

Parameters:

_edge[in]

Public Members

const Edge edge

A pointer to the Edge it represents.

const std::shared_ptr<Connection> before

A shared pointer to the Connection that goes before this.

const size_t size

Size of the Trace, i.e. how long (number of midpoints) is the Connection chain.

const double len

Length of the Trace, i.e. cumulative distance between midpoints.

const double heur

The heuristic of this append.

const double sumHeur

The sum of heuristics of the Connection chain.

const double avgTrackWidth

The average track width of all the Trace.

const bool loopClosed

Whether or not the Trace has closed the loop (and thus it contains (or may contain) repeated Edge(s)).

const uint32_t connectionsSinceLoopClosed

Number of Connections since the loop was closed.

Friends

inline friend std::ostream &operator<<(std::ostream &os, const Connection &conn)

Cout operator.

Parameters:
  • os[inout]

  • conn[in]