|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
RAII guards for graph node/arc cookies. More...
Go to the source code of this file.
Classes | |
| class | Aleph::Cookie_Guard< GT > |
| RAII guard that clears graph cookies on destruction. More... | |
| class | Aleph::Cookie_Saver< GT > |
| RAII guard that saves and restores graph cookies. More... | |
| class | Aleph::Scope_Guard< GT, Cleanup > |
| Generic RAII scope guard for cleanup operations on graphs. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
Functions | |
| template<class GT , class Func > | |
| auto | Aleph::with_clean_cookies (GT &g, Func &&func) -> decltype(func()) |
| Convenience function to run an algorithm with automatic cookie cleanup. | |
| template<class GT , class Func > | |
| auto | Aleph::with_saved_cookies (GT &g, Func &&func) -> decltype(func()) |
| Convenience function to run an algorithm preserving existing cookies. | |
| template<class GT , class Cleanup > | |
| Aleph::Scope_Guard (const GT &, Cleanup) -> Scope_Guard< GT, Cleanup > | |
| Deduction guide for Scope_Guard. | |
RAII guards for graph node/arc cookies.
This file provides RAII-style guards for managing cookies in graph algorithms. Cookies are temporary void* fields in nodes and arcs used by algorithms to store intermediate data.
Two main utilities are provided:
Definition in file cookie_guard.H.