KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ALLEGRO::BLOCK< T > Class Template Reference

#include <allegro_pcb_structs.h>

Inheritance diagram for ALLEGRO::BLOCK< T >:
ALLEGRO::BLOCK_BASE

Public Member Functions

 BLOCK (size_t aOffset)
 Deduce the type code from T::BLOCK_TYPE_CODE (single-code types only)
 
 BLOCK (uint8_t aBlockType, size_t aOffset)
 Explicit type code for multi-code types (e.g. segments 0x15/0x16/0x17)
 
const TGetData () const
 
TGetData ()
 
uint8_t GetBlockType () const
 This is the actual type code as read from the file.
 
size_t GetOffset () const
 
uint32_t GetKey () const
 
uint32_t GetNext () const
 
void SetKey (uint32_t aKey)
 
void SetNext (uint32_t aNext)
 

Private Attributes

T m_data
 
uint8_t m_blockType
 
size_t m_offset
 
uint32_t m_Key
 
uint32_t m_Next
 

Detailed Description

template<typename T>
class ALLEGRO::BLOCK< T >

Definition at line 102 of file allegro_pcb_structs.h.

Constructor & Destructor Documentation

◆ BLOCK() [1/2]

template<typename T>
ALLEGRO::BLOCK< T >::BLOCK ( size_t aOffset)
inlineexplicit

Deduce the type code from T::BLOCK_TYPE_CODE (single-code types only)

Definition at line 106 of file allegro_pcb_structs.h.

◆ BLOCK() [2/2]

template<typename T>
ALLEGRO::BLOCK< T >::BLOCK ( uint8_t aBlockType,
size_t aOffset )
inline

Explicit type code for multi-code types (e.g. segments 0x15/0x16/0x17)

Definition at line 112 of file allegro_pcb_structs.h.

References ALLEGRO::BLOCK_BASE::BLOCK_BASE().

Member Function Documentation

◆ GetBlockType()

◆ GetData() [1/2]

template<typename T>
T & ALLEGRO::BLOCK< T >::GetData ( )
inline

Definition at line 118 of file allegro_pcb_structs.h.

References m_data, and T.

◆ GetData() [2/2]

template<typename T>
const T & ALLEGRO::BLOCK< T >::GetData ( ) const
inline

Definition at line 117 of file allegro_pcb_structs.h.

References m_data, and T.

Referenced by ALLEGRO::BOARD_BUILDER::expectBlockByKey().

◆ GetKey()

uint32_t ALLEGRO::BLOCK_BASE::GetKey ( ) const
inlineinherited

Definition at line 76 of file allegro_pcb_structs.h.

References m_Key.

Referenced by ALLEGRO::BOARD_BUILDER::buildZone(), and PadGetNextInFootprint().

◆ GetNext()

uint32_t ALLEGRO::BLOCK_BASE::GetNext ( ) const
inlineinherited

Definition at line 78 of file allegro_pcb_structs.h.

References m_Next.

Referenced by ALLEGRO::GetPrimaryNext().

◆ GetOffset()

size_t ALLEGRO::BLOCK_BASE::GetOffset ( ) const
inlineinherited

◆ SetKey()

void ALLEGRO::BLOCK_BASE::SetKey ( uint32_t aKey)
inlineinherited

Definition at line 80 of file allegro_pcb_structs.h.

References m_Key.

◆ SetNext()

void ALLEGRO::BLOCK_BASE::SetNext ( uint32_t aNext)
inlineinherited

Definition at line 81 of file allegro_pcb_structs.h.

References m_Next.

Member Data Documentation

◆ m_blockType

uint8_t ALLEGRO::BLOCK_BASE::m_blockType
privateinherited

Definition at line 84 of file allegro_pcb_structs.h.

Referenced by BLOCK_BASE(), and GetBlockType().

◆ m_data

template<typename T>
T ALLEGRO::BLOCK< T >::m_data
private

Definition at line 121 of file allegro_pcb_structs.h.

Referenced by GetData(), and GetData().

◆ m_Key

uint32_t ALLEGRO::BLOCK_BASE::m_Key
privateinherited

Definition at line 86 of file allegro_pcb_structs.h.

Referenced by BLOCK_BASE(), GetKey(), and SetKey().

◆ m_Next

uint32_t ALLEGRO::BLOCK_BASE::m_Next
privateinherited

Definition at line 87 of file allegro_pcb_structs.h.

Referenced by BLOCK_BASE(), GetNext(), and SetNext().

◆ m_offset

size_t ALLEGRO::BLOCK_BASE::m_offset
privateinherited

Definition at line 85 of file allegro_pcb_structs.h.

Referenced by BLOCK_BASE(), and GetOffset().


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