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

#include <from_to_cache.h>

Classes

struct  FT_ENDPOINT
 
struct  FT_PATH
 

Public Member Functions

 FROM_TO_CACHE (BOARD *aBoard=nullptr)
 
 ~FROM_TO_CACHE ()
 
void Rebuild (BOARD *aBoard)
 
bool IsOnFromToPath (BOARD_CONNECTED_ITEM *aItem, const wxString &aFrom, const wxString &aTo)
 
FT_PATHQueryFromToPath (const std::set< BOARD_CONNECTED_ITEM * > &aItems)
 

Private Member Functions

int cacheFromToPaths (const wxString &aFrom, const wxString &aTo)
 
void buildEndpointList ()
 

Private Attributes

std::vector< FT_ENDPOINTm_ftEndpoints
 
std::vector< FT_PATHm_ftPaths
 
BOARDm_board
 

Detailed Description

Definition at line 28 of file from_to_cache.h.

Constructor & Destructor Documentation

◆ FROM_TO_CACHE()

FROM_TO_CACHE::FROM_TO_CACHE ( BOARD aBoard = nullptr)
inline

Definition at line 49 of file from_to_cache.h.

◆ ~FROM_TO_CACHE()

FROM_TO_CACHE::~FROM_TO_CACHE ( )
inline

Definition at line 54 of file from_to_cache.h.

Member Function Documentation

◆ buildEndpointList()

void FROM_TO_CACHE::buildEndpointList ( )
private

◆ cacheFromToPaths()

int FROM_TO_CACHE::cacheFromToPaths ( const wxString &  aFrom,
const wxString &  aTo 
)
private

◆ IsOnFromToPath()

bool FROM_TO_CACHE::IsOnFromToPath ( BOARD_CONNECTED_ITEM aItem,
const wxString &  aFrom,
const wxString &  aTo 
)

Definition at line 226 of file from_to_cache.cpp.

References cacheFromToPaths(), m_board, and m_ftPaths.

◆ QueryFromToPath()

FROM_TO_CACHE::FT_PATH * FROM_TO_CACHE::QueryFromToPath ( const std::set< BOARD_CONNECTED_ITEM * > &  aItems)

Definition at line 265 of file from_to_cache.cpp.

References m_ftPaths.

◆ Rebuild()

void FROM_TO_CACHE::Rebuild ( BOARD aBoard)

Definition at line 257 of file from_to_cache.cpp.

References buildEndpointList(), m_board, and m_ftPaths.

Member Data Documentation

◆ m_board

BOARD* FROM_TO_CACHE::m_board
private

Definition at line 71 of file from_to_cache.h.

Referenced by buildEndpointList(), cacheFromToPaths(), IsOnFromToPath(), and Rebuild().

◆ m_ftEndpoints

std::vector<FT_ENDPOINT> FROM_TO_CACHE::m_ftEndpoints
private

Definition at line 68 of file from_to_cache.h.

Referenced by buildEndpointList(), and cacheFromToPaths().

◆ m_ftPaths

std::vector<FT_PATH> FROM_TO_CACHE::m_ftPaths
private

Definition at line 69 of file from_to_cache.h.

Referenced by cacheFromToPaths(), IsOnFromToPath(), QueryFromToPath(), and Rebuild().


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