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

Method to_string_file_format

src/db/db/dbStreamLayers.cc:908–918  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

906}
907
908std::string
909LayerMap::to_string_file_format () const
910{
911 std::vector<unsigned int> layers = get_layers ();
912 std::ostringstream os;
913 for (std::vector<unsigned int>::const_iterator l = layers.begin (); l != layers.end (); ++l) {
914 os << mapping_str (*l);
915 os << "\n";
916 }
917 return os.str ();
918}
919
920void
921LayerMap::add_expr (const std::string &expr, unsigned int l)

Callers 4

set_layer_mapMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected