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

#include <netlist_exporter_spice.h>

Public Member Functions

std::string Generate (const std::string &aProposedName)
 
void Clear ()
 Forget every previously generated name so a reused exporter starts each netlist clean.
 

Private Attributes

std::unordered_set< std::string > m_names
 

Detailed Description

Definition at line 41 of file netlist_exporter_spice.h.

Member Function Documentation

◆ Clear()

void NAME_GENERATOR::Clear ( )
inline

Forget every previously generated name so a reused exporter starts each netlist clean.

Definition at line 47 of file netlist_exporter_spice.h.

References m_names.

◆ Generate()

std::string NAME_GENERATOR::Generate ( const std::string & aProposedName)

Definition at line 50 of file netlist_exporter_spice.cpp.

References m_names, and name.

Member Data Documentation

◆ m_names

std::unordered_set<std::string> NAME_GENERATOR::m_names
private

Definition at line 50 of file netlist_exporter_spice.h.

Referenced by Clear(), and Generate().


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