MCPcopy Create free account
hub / github.com/KLayout/klayout / _extractor_impl

Function _extractor_impl

src/db/db/dbObjectWithProperties.cc:87–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87template <class T> void _extractor_impl (tl::Extractor &ex, db::object_with_properties<T> &p)
88{
89 if (! test_extractor_impl (ex, p)) {
90 ex.error (tl::to_string (tr ("Expected a shape specification with properties")));
91 }
92}
93
94template <> bool test_extractor_impl (tl::Extractor &ex, db::object_with_properties<db::Box> &p) { return _test_extractor_impl (ex, p); }
95template <> bool test_extractor_impl (tl::Extractor &ex, db::object_with_properties<db::UserObject> &p) { return _test_extractor_impl (ex, p); }

Callers 1

extractor_implFunction · 0.70

Calls 4

test_extractor_implFunction · 0.70
to_stringFunction · 0.70
trFunction · 0.50
errorMethod · 0.45

Tested by

no test coverage detected