TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
tmk::model::Constraint Struct Reference

One constraint inside a custom rule, e.g. (constraint clearance (min 0.2mm)). More...

#include <model/rules.hpp>

Public Attributes

std::string type
 clearance, track_width, disallow, …
std::optional< Coord > min
std::optional< Coord > opt
std::optional< Coord > max
 lengths in nm (angles/counts are stored ×1e6 as well)
std::vector< std::string > items
 disallow item types, or other bare words

Detailed Description

One constraint inside a custom rule, e.g. (constraint clearance (min 0.2mm)).

Definition at line 48 of file rules.hpp.

Member Data Documentation

◆ items

std::vector<std::string> tmk::model::Constraint::items

disallow item types, or other bare words

Definition at line 51 of file rules.hpp.

◆ max

std::optional<Coord> tmk::model::Constraint::max

lengths in nm (angles/counts are stored ×1e6 as well)

Definition at line 50 of file rules.hpp.

◆ min

std::optional<Coord> tmk::model::Constraint::min

Definition at line 50 of file rules.hpp.

◆ opt

std::optional<Coord> tmk::model::Constraint::opt

Definition at line 50 of file rules.hpp.

◆ type

std::string tmk::model::Constraint::type

clearance, track_width, disallow, …

Definition at line 49 of file rules.hpp.


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