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

#include <model/stackup.hpp>

Public Member Functions

int position_of_copper (int copper_index) const
 Stack position of copper layer copper_index in layers, -1 if the stackup does not list it.
DielectricGap between (int a, int b) const
 Dielectric between copper layers a and b (stack indices, a < b, any distance apart; copper layers in between are not counted).
Coord copper_thickness (int copper_index) const
 Copper thickness of copper layer copper_index, 0 if unknown.
const StackupLayer * mask (bool front) const
 Solder mask over the given outer side (front = true), nullptr if the stackup has none.

Public Attributes

bool present = false
 the board has a (stackup ...) block
std::vector< StackupLayer > layers
 file order (top to bottom)
std::string copper_finish
bool dielectric_constraints = false

Detailed Description

Definition at line 39 of file stackup.hpp.

Member Function Documentation

◆ between()

DielectricGap tmk::model::Stackup::between ( int a,
int b ) const

Dielectric between copper layers a and b (stack indices, a < b, any distance apart; copper layers in between are not counted).

complete = false if either copper layer is missing from the stackup.

◆ copper_thickness()

Coord tmk::model::Stackup::copper_thickness ( int copper_index) const

Copper thickness of copper layer copper_index, 0 if unknown.

◆ mask()

const StackupLayer * tmk::model::Stackup::mask ( bool front) const

Solder mask over the given outer side (front = true), nullptr if the stackup has none.

◆ position_of_copper()

int tmk::model::Stackup::position_of_copper ( int copper_index) const

Stack position of copper layer copper_index in layers, -1 if the stackup does not list it.

Member Data Documentation

◆ copper_finish

std::string tmk::model::Stackup::copper_finish

Definition at line 42 of file stackup.hpp.

◆ dielectric_constraints

bool tmk::model::Stackup::dielectric_constraints = false

Definition at line 43 of file stackup.hpp.

◆ layers

std::vector<StackupLayer> tmk::model::Stackup::layers

file order (top to bottom)

Definition at line 41 of file stackup.hpp.

◆ present

bool tmk::model::Stackup::present = false

the board has a (stackup ...) block

Definition at line 40 of file stackup.hpp.


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