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

One pass of rebuilding tables. More...

#include <generated_table_refresh.h>

Public Member Functions

 GENERATED_TABLE_REFRESH (BOARD &aBoard)
 
 GENERATED_TABLE_REFRESH (const GENERATED_TABLE_REFRESH &)=delete
 
GENERATED_TABLE_REFRESH & operator= (const GENERATED_TABLE_REFRESH &)=delete
 
template<typename T>
T & Pending ()
 The pass's T, created from the board on first use.
 
void Commit ()
 Write every pending state back to the board, in the order it was first asked for.
 

Private Attributes

BOARD & m_board
 
std::vector< std::pair< std::type_index, std::unique_ptr< GENERATED_TABLE_PENDING > > > m_pending
 

Detailed Description

One pass of rebuilding tables.

Board state they accumulate reaches the board only on Commit.

Each kind of pending state exists once per pass, so several tables sharing it build on each other's changes rather than each keeping only its own.

Definition at line 51 of file generated_table_refresh.h.

Constructor & Destructor Documentation

◆ GENERATED_TABLE_REFRESH() [1/2]

GENERATED_TABLE_REFRESH::GENERATED_TABLE_REFRESH ( BOARD & aBoard)
explicit

Definition at line 26 of file generated_table_refresh.cpp.

References m_board.

Referenced by GENERATED_TABLE_REFRESH(), and operator=().

◆ GENERATED_TABLE_REFRESH() [2/2]

GENERATED_TABLE_REFRESH::GENERATED_TABLE_REFRESH ( const GENERATED_TABLE_REFRESH & )
delete

Member Function Documentation

◆ Commit()

void GENERATED_TABLE_REFRESH::Commit ( )

Write every pending state back to the board, in the order it was first asked for.

Definition at line 32 of file generated_table_refresh.cpp.

References m_board, and m_pending.

◆ operator=()

GENERATED_TABLE_REFRESH & GENERATED_TABLE_REFRESH::operator= ( const GENERATED_TABLE_REFRESH & )
delete

◆ Pending()

template<typename T>
T & GENERATED_TABLE_REFRESH::Pending ( )
inline

The pass's T, created from the board on first use.

Definition at line 63 of file generated_table_refresh.h.

References m_board, m_pending, and T.

Referenced by PCB_DRILL_CHART::generate(), and PANEL_DRILL_CHART_OPTIONS::TransferFromWindow().

Member Data Documentation

◆ m_board

BOARD& GENERATED_TABLE_REFRESH::m_board
private

Definition at line 87 of file generated_table_refresh.h.

Referenced by Commit(), GENERATED_TABLE_REFRESH(), and Pending().

◆ m_pending

std::vector<std::pair<std::type_index, std::unique_ptr<GENERATED_TABLE_PENDING> > > GENERATED_TABLE_REFRESH::m_pending
private

Definition at line 89 of file generated_table_refresh.h.

Referenced by Commit(), and Pending().


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