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

Method put

src/db/db/dbTilingProcessor.cc:853–870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851}
852
853void
854TilingProcessor::put (size_t ix, size_t iy, const db::Box &tile, const std::vector<tl::Variant> &args)
855{
856 tl::MutexLocker locker (&s_output_lock);
857
858 if (args.size () < 2 || args.size () > 3) {
859 throw tl::Exception (tl::to_string (tr ("_output function requires two or three arguments: handle and object and a clip flag (optional)")));
860 }
861
862 bool clip = ((args.size () <= 2 || args [2].to_bool ()) && ! tile.empty ());
863
864 size_t index = args[0].to<size_t> ();
865 if (index >= m_outputs.size ()) {
866 throw tl::Exception (tl::to_string (tr ("Invalid handle (first argument) in _output function call")));
867 }
868
869 m_outputs[index].receiver->put (ix, iy, tile, m_outputs[index].id, args[1], dbu (), m_outputs[index].trans, clip);
870}
871
872void
873TilingProcessor::execute (const std::string &desc)

Callers 15

add_in_placeMethod · 0.45
snappedMethod · 0.45
sizedMethod · 0.45
sizedMethod · 0.45
putFunction · 0.45
executeMethod · 0.45
putFunction · 0.45
processMethod · 0.45
end_coincidentMethod · 0.45
select_edgeMethod · 0.45

Calls 7

to_boolMethod · 0.80
to_stringFunction · 0.70
dbuFunction · 0.70
ExceptionFunction · 0.50
trFunction · 0.50
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected