TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
tmk::route::RouteResult::Unrouted Struct Reference

One unrouted connection of the state returned, structured for the stuck report (doc 17 §3): where it is, why the last attempt failed (a code, and the search's own words), how often it was ripped or failed, and which nets stood in the way. More...

#include <route/router.hpp>

Public Attributes

std::string net
std::string a
std::string b
 "REF.NUM" (b = "zone" for plane connections)
std::string reason
 code: boxed_in, exact_check, rip_limit, ripped_not_rerouted, layer_limit, out_of_budget, rolled_back, not_attempted, no_legal_path
std::string why
 the last explanation as the router wrote it (net and pad names are the board's)
int rips = 0
int fails = 0
int pad_a = -1
int pad_b = -1
 board pad indices (pad_b = -1: a zone fill)
geom::Point pos_a {}
geom::Point pos_b {}
 pad centres (pos_b = pos_a for a zone)
std::vector< std::string > blockers
 nets whose routed copper the last rejected route would have had to rip (at most 6)

Detailed Description

One unrouted connection of the state returned, structured for the stuck report (doc 17 §3): where it is, why the last attempt failed (a code, and the search's own words), how often it was ripped or failed, and which nets stood in the way.

Definition at line 333 of file router.hpp.

Member Data Documentation

◆ a

std::string tmk::route::RouteResult::Unrouted::a

Definition at line 334 of file router.hpp.

◆ b

std::string tmk::route::RouteResult::Unrouted::b

"REF.NUM" (b = "zone" for plane connections)

Definition at line 334 of file router.hpp.

◆ blockers

std::vector<std::string> tmk::route::RouteResult::Unrouted::blockers

nets whose routed copper the last rejected route would have had to rip (at most 6)

Definition at line 340 of file router.hpp.

◆ fails

int tmk::route::RouteResult::Unrouted::fails = 0

Definition at line 337 of file router.hpp.

◆ net

std::string tmk::route::RouteResult::Unrouted::net

Definition at line 334 of file router.hpp.

◆ pad_a

int tmk::route::RouteResult::Unrouted::pad_a = -1

Definition at line 338 of file router.hpp.

◆ pad_b

int tmk::route::RouteResult::Unrouted::pad_b = -1

board pad indices (pad_b = -1: a zone fill)

Definition at line 338 of file router.hpp.

◆ pos_a

geom::Point tmk::route::RouteResult::Unrouted::pos_a {}

Definition at line 339 of file router.hpp.

◆ pos_b

geom::Point tmk::route::RouteResult::Unrouted::pos_b {}

pad centres (pos_b = pos_a for a zone)

Definition at line 339 of file router.hpp.

◆ reason

std::string tmk::route::RouteResult::Unrouted::reason

code: boxed_in, exact_check, rip_limit, ripped_not_rerouted, layer_limit, out_of_budget, rolled_back, not_attempted, no_legal_path

Definition at line 335 of file router.hpp.

◆ rips

int tmk::route::RouteResult::Unrouted::rips = 0

Definition at line 337 of file router.hpp.

◆ why

std::string tmk::route::RouteResult::Unrouted::why

the last explanation as the router wrote it (net and pad names are the board's)

Definition at line 336 of file router.hpp.


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