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

Method LayerPropertiesNodeRef

src/laybasic/laybasic/layLayerProperties.cc:1989–2005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1987// LayerPropertiesNodeRef implementation
1988
1989LayerPropertiesNodeRef::LayerPropertiesNodeRef (LayerPropertiesNode *node)
1990 : m_iter (node), m_synched_gen_id (0)
1991{
1992 if (node) {
1993
1994 // NOTE: we do assignment before we set the iterator reference - hence there won't be
1995 // updates triggered.
1996 LayerPropertiesNode::operator= (*node);
1997
1998 // Makes ourself a perfect copy of the original (including reference into the view)
1999 attach_view (node->view (), node->list_index ());
2000 set_parent (node->parent ());
2001
2002 mp_node.reset (node);
2003
2004 }
2005}
2006
2007LayerPropertiesNodeRef::LayerPropertiesNodeRef (const LayerPropertiesConstIterator &iter)
2008 : m_iter (iter), m_synched_gen_id (0)

Callers

nothing calls this directly

Calls 8

list_indexMethod · 0.80
set_parentFunction · 0.50
viewMethod · 0.45
parentMethod · 0.45
resetMethod · 0.45
at_endMethod · 0.45
is_nullMethod · 0.45
operator->Method · 0.45

Tested by

no test coverage detected