|
OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
|
RAII handle for a batched graph mutation scope. Mirrors occtl_batch_t.
More...
#include <topo.hpp>
Public Member Functions | |
| Batch (const Batch &)=delete | |
| Batch & | operator= (const Batch &)=delete |
| Batch (Batch &&theOther) noexcept | |
Move constructor — takes ownership from theOther. | |
| Batch & | operator= (Batch &&theOther) noexcept |
| Move assignment — releases any previously-owned batch. | |
| ~Batch () noexcept | |
| Calls abort on destruction if the batch has not been committed. Swallows the abort status so the destructor never throws. | |
| ::occtl_graph_t * | graph () noexcept |
| Returns a borrowed pointer to the graph this batch is scoped over. | |
| void | commit () |
| Commits all deferred mutations in the batch to the graph. After this call the batch handle is freed; further calls are no-ops. | |
| void | abort () |
| Aborts the batch, discarding all deferred mutations. NULL-tolerant; idempotent. | |
Friends | |
| class | Graph |
RAII handle for a batched graph mutation scope. Mirrors occtl_batch_t.
Created by Graph::begin_batch(). Mutations performed on the graph while a Batch is alive are deferred; commit() applies them, abort() discards them. The destructor calls occtl_batch_abort if the batch has not been committed or moved-from. Move-only.
|
inline |
Commits all deferred mutations in the batch to the graph. After this call the batch handle is freed; further calls are no-ops.
| Error | on failure. |