summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/nltypes.h
diff options
context:
space:
mode:
author Couriersud <couriersud@gmx.org>2020-09-05 19:43:54 +0200
committer Couriersud <couriersud@gmx.org>2020-09-05 21:31:49 +0200
commitf3eb6324652fea263972087146fbdde9e32f9a0f (patch)
treef63d352948c3a4fcf62857839cc5c5359804b0f5 /src/lib/netlist/nltypes.h
parent4dd7e21f565b12e8487b884089d769f0b30147c6 (diff)
netlist: code maintenance and performance optimizations.
* rename some misleading type names * remove callback_t and replace by better scalable approach * hide implementations details * move sources classes from putil.h to psources.h * reduce code complexity * improve parsing performance, parsing netlists now is twice as fast. * fix issues around multi-byte string support * moved psplit into pstrutil.h
Diffstat (limited to 'src/lib/netlist/nltypes.h')
-rw-r--r--src/lib/netlist/nltypes.h33
1 files changed, 2 insertions, 31 deletions
diff --git a/src/lib/netlist/nltypes.h b/src/lib/netlist/nltypes.h
index d22c634ab27..422a9ddfac4 100644
--- a/src/lib/netlist/nltypes.h
+++ b/src/lib/netlist/nltypes.h
@@ -32,7 +32,7 @@ namespace plib
struct aligned_arena;
class dynlib_base;
- template<class T, bool debug_enabled>
+ template<bool debug_enabled>
class plog_base;
struct plog_level;
@@ -164,36 +164,7 @@ namespace netlist
plib::aligned_arena>;
using host_arena = plib::aligned_arena;
- /// \brief Interface definition for netlist callbacks into calling code
- ///
- /// A class inheriting from netlist_callbacks_t has to be passed to the netlist_t
- /// constructor. Netlist does processing during construction and thus needs
- /// the object passed completely constructed.
- ///
- class callbacks_t
- {
- public:
-
- callbacks_t() = default;
- virtual ~callbacks_t() = default;
-
- PCOPYASSIGNMOVE(callbacks_t, default)
-
- /// \brief logging callback.
- ///
- virtual void vlog(const plib::plog_level &l, const pstring &ls) const noexcept = 0;
-
- /// \brief provide library with static solver implementations.
- ///
- /// By default no static solvers are provided since these are
- /// determined by the specific use case. It is up to the implementor
- /// of a callbacks_t implementation to optionally provide such a collection
- /// of symbols.
- ///
- virtual std::unique_ptr<plib::dynlib_base> static_solver_lib() const;
- };
-
- using log_type = plib::plog_base<callbacks_t, NL_DEBUG>;
+ using log_type = plib::plog_base<NL_DEBUG>;
//============================================================
// Types needed by various includes