Wildmeshing Toolkit
AttributeScopeHandle.cpp
Go to the documentation of this file.
2 #include "AttributeManager.hpp"
3 namespace wmtk::attribute {
5  : m_manager(manager)
6 {
8 }
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 }
29 {
30  if (!m_was_moved) {
32  }
33 }
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.