ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
Loading...
Searching...
No Matches
zlayout::components::PassiveComponentFactory Class Reference

Passive component factory. More...

#include <passive_components.hpp>

Static Public Member Functions

static std::shared_ptr< ResistorcreateResistor (const std::string &name, double resistance, double tolerance=5.0)
static std::shared_ptr< CapacitorcreateCapacitor (const std::string &name, double capacitance, Capacitor::DielectricType dielectric=Capacitor::DielectricType::Ceramic)
static std::shared_ptr< InductorcreateInductor (const std::string &name, double inductance, Inductor::CoreType core=Inductor::CoreType::Air)
static std::shared_ptr< CrystalcreateCrystal (const std::string &name, double frequency, Crystal::CrystalType type=Crystal::CrystalType::Quartz)
static std::shared_ptr< TransformercreateTransformer (const std::string &name, double turns_ratio, Transformer::TransformerType type=Transformer::TransformerType::Signal)
static std::shared_ptr< ComponentcreateFromSpecs (const std::string &component_type, const std::string &name, const std::map< std::string, std::string > &specs)
static void registerStandardComponents (ComponentLibrary &library)

Detailed Description

Passive component factory.

Definition at line 322 of file passive_components.hpp.

Member Function Documentation

◆ createCapacitor()

std::shared_ptr< Capacitor > zlayout::components::PassiveComponentFactory::createCapacitor ( const std::string & name,
double capacitance,
Capacitor::DielectricType dielectric = Capacitor::DielectricType::Ceramic )
static
Here is the caller graph for this function:

◆ createCrystal()

std::shared_ptr< Crystal > zlayout::components::PassiveComponentFactory::createCrystal ( const std::string & name,
double frequency,
Crystal::CrystalType type = Crystal::CrystalType::Quartz )
static

◆ createFromSpecs()

std::shared_ptr< Component > zlayout::components::PassiveComponentFactory::createFromSpecs ( const std::string & component_type,
const std::string & name,
const std::map< std::string, std::string > & specs )
static

◆ createInductor()

std::shared_ptr< Inductor > zlayout::components::PassiveComponentFactory::createInductor ( const std::string & name,
double inductance,
Inductor::CoreType core = Inductor::CoreType::Air )
static
Here is the caller graph for this function:

◆ createResistor()

std::shared_ptr< Resistor > zlayout::components::PassiveComponentFactory::createResistor ( const std::string & name,
double resistance,
double tolerance = 5.0 )
static
Here is the caller graph for this function:

◆ createTransformer()

std::shared_ptr< Transformer > zlayout::components::PassiveComponentFactory::createTransformer ( const std::string & name,
double turns_ratio,
Transformer::TransformerType type = Transformer::TransformerType::Signal )
static

◆ registerStandardComponents()

void zlayout::components::PassiveComponentFactory::registerStandardComponents ( ComponentLibrary & library)
static

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