Wildmeshing Toolkit
Loading...
Searching...
No Matches
AttributeScopeHandle.cpp
Go to the documentation of this file.
3namespace wmtk::attribute {
9
10
12 : m_manager(o.m_manager)
13 , m_failed(o.m_failed)
14 , m_was_moved(o.m_was_moved)
15{
16 o.m_was_moved = true;
17}
18
20{
21 // the dev should know if they moved a handle and then tried to mark it as failed
22 assert(!m_was_moved);
23 if (!m_was_moved) {
24 m_failed = true;
26 }
27}
34} // namespace wmtk::attribute
void pop_scope(bool apply_updates=true)
This handle is a wrapper for the MeshManager scope funtions.
~AttributeScopeHandle()
Destructor of AttributeScopeHandle.
AttributeScopeHandle(AttributeManager &manager)
Constructs an AttributeScopeHandle for the given AttributeManager.