KiCad PCB EDA Suite
DRC_TEST_PROVIDER_REGISTRY Class Reference

#include <drc_test_provider.h>

Public Member Functions

 DRC_TEST_PROVIDER_REGISTRY ()
 
 ~DRC_TEST_PROVIDER_REGISTRY ()
 
void RegisterTestProvider (DRC_TEST_PROVIDER *provider)
 
std::vector< DRC_TEST_PROVIDER * > GetTestProviders () const
 

Static Public Member Functions

static DRC_TEST_PROVIDER_REGISTRYInstance ()
 

Private Attributes

std::vector< DRC_TEST_PROVIDER * > m_providers
 

Detailed Description

Definition at line 37 of file drc_test_provider.h.

Constructor & Destructor Documentation

◆ DRC_TEST_PROVIDER_REGISTRY()

DRC_TEST_PROVIDER_REGISTRY::DRC_TEST_PROVIDER_REGISTRY ( )
inline

Definition at line 40 of file drc_test_provider.h.

40 {}

◆ ~DRC_TEST_PROVIDER_REGISTRY()

DRC_TEST_PROVIDER_REGISTRY::~DRC_TEST_PROVIDER_REGISTRY ( )

Definition at line 39 of file drc_test_provider.cpp.

40 {
41  for( DRC_TEST_PROVIDER* provider : m_providers )
42  delete provider;
43 }
std::vector< DRC_TEST_PROVIDER * > m_providers
DRC_TEST_PROVIDER is a base class that represents a DRC "provider" which runs some DRC functions over...

References m_providers.

Member Function Documentation

◆ GetTestProviders()

std::vector<DRC_TEST_PROVIDER*> DRC_TEST_PROVIDER_REGISTRY::GetTestProviders ( ) const
inline

Definition at line 51 of file drc_test_provider.h.

51 { return m_providers; }
std::vector< DRC_TEST_PROVIDER * > m_providers

References m_providers.

Referenced by DRC_ENGINE::InitEngine().

◆ Instance()

static DRC_TEST_PROVIDER_REGISTRY& DRC_TEST_PROVIDER_REGISTRY::Instance ( )
inlinestatic

◆ RegisterTestProvider()

void DRC_TEST_PROVIDER_REGISTRY::RegisterTestProvider ( DRC_TEST_PROVIDER provider)
inline

Definition at line 50 of file drc_test_provider.h.

50 { m_providers.push_back( provider ); }
std::vector< DRC_TEST_PROVIDER * > m_providers

References m_providers.

Referenced by DRC_REGISTER_TEST_PROVIDER< T >::DRC_REGISTER_TEST_PROVIDER().

Member Data Documentation

◆ m_providers

std::vector<DRC_TEST_PROVIDER*> DRC_TEST_PROVIDER_REGISTRY::m_providers
private

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