KiCad PCB EDA Suite
Loading...
Searching...
No Matches
TRACK_BUFFER Class Reference

#include <teardrop.h>

Public Member Functions

 TRACK_BUFFER ()
 
void AddTrack (PCB_TRACK *aTrack, int aLayer, int aNetcode)
 Add a track in buffer, in space grouping tracks having the same netcode and the same layer.
 
std::vector< PCB_TRACK * > * GetTrackList (int aLayer, int aNetcode) const
 
const std::map< int, std::vector< PCB_TRACK * > * > & GetBuffer () const
 

Static Public Member Functions

static void GetNetcodeAndLayerFromIndex (int aIdx, int *aLayer, int *aNetcode)
 

Private Member Functions

int idxFromLayNet (int aLayer, int aNetcode) const
 

Private Attributes

std::map< int, std::vector< PCB_TRACK * > * > m_map_tracks
 

Detailed Description

Definition at line 41 of file teardrop.h.

Constructor & Destructor Documentation

◆ TRACK_BUFFER()

TRACK_BUFFER::TRACK_BUFFER ( )
inline

Definition at line 44 of file teardrop.h.

Member Function Documentation

◆ AddTrack()

void TRACK_BUFFER::AddTrack ( PCB_TRACK aTrack,
int  aLayer,
int  aNetcode 
)

Add a track in buffer, in space grouping tracks having the same netcode and the same layer.

Definition at line 46 of file teardrop_utils.cpp.

References idxFromLayNet(), and m_map_tracks.

Referenced by TEARDROP_MANAGER::buildTrackCaches().

◆ GetBuffer()

const std::map< int, std::vector< PCB_TRACK * > * > & TRACK_BUFFER::GetBuffer ( ) const
inline
Returns
a reference to the internal buffer

Definition at line 62 of file teardrop.h.

References m_map_tracks.

Referenced by TEARDROP_MANAGER::AddTeardropsOnTracks().

◆ GetNetcodeAndLayerFromIndex()

static void TRACK_BUFFER::GetNetcodeAndLayerFromIndex ( int  aIdx,
int *  aLayer,
int *  aNetcode 
)
inlinestatic

Definition at line 64 of file teardrop.h.

Referenced by TEARDROP_MANAGER::AddTeardropsOnTracks().

◆ GetTrackList()

std::vector< PCB_TRACK * > * TRACK_BUFFER::GetTrackList ( int  aLayer,
int  aNetcode 
) const
inline
Returns
the buffer that stores tracks having the same layer and the same netcode

Definition at line 54 of file teardrop.h.

References idxFromLayNet(), and m_map_tracks.

◆ idxFromLayNet()

int TRACK_BUFFER::idxFromLayNet ( int  aLayer,
int  aNetcode 
) const
inlineprivate

Definition at line 72 of file teardrop.h.

Referenced by AddTrack(), and GetTrackList().

Member Data Documentation

◆ m_map_tracks

std::map< int, std::vector<PCB_TRACK*>* > TRACK_BUFFER::m_map_tracks
private

Definition at line 78 of file teardrop.h.

Referenced by AddTrack(), GetBuffer(), and GetTrackList().


The documentation for this class was generated from the following files: