Loading...
Searching...
No Matches
meshkit::detail Namespace Reference

Storage policies and containers for the constrained Delaunay kernel and the plan model: StandardStorage (standard containers) and QtStorage (Qt containers). More...

Classes

struct  Hash
 Hash functor of Map, MultiMap and Set; the primary template is std::hash<K>. More...
 
struct  Hash< std::pair< A, B > >
 Hash for std::pair keys that combines Hash<A> and Hash<B> of the two members. More...
 
class  Map
 Hash map with the QHash-style API the CDT kernel uses, over std::unordered_map<K, V, Hash<K>>. More...
 
class  MultiMap
 Multi-valued hash map with the QMultiHash subset the CDT kernel uses. More...
 
struct  QtStorage
 Storage policy that instantiates meshkit::BasicConstrainedDelaunay with Qt types (mesh::ConstrainedDelaunay). More...
 
class  ScopeExit
 Scope guard that calls a callable when it is destroyed. More...
 
class  Set
 std::unordered_set<K, Hash<K>> with the QSet-style names the CDT kernel uses. More...
 
struct  StandardStorage
 Storage policy that instantiates BasicConstrainedDelaunay on standard C++ types. More...
 
class  Timer
 Minimal std::chrono::steady_clock stopwatch with QElapsedTimer-style names. More...
 
class  Vector
 std::vector<T> with the QVector-style member names the CDT kernel and plan model use. More...
 

Functions

template<class F>
ScopeExit< F > scopeExit (F f)
 Make a ScopeExit guard for f.
 

Detailed Description

Storage policies and containers for the constrained Delaunay kernel and the plan model: StandardStorage (standard containers) and QtStorage (Qt containers).

Not part of the supported API.

Function Documentation

◆ scopeExit()

template<class F>
ScopeExit< F > meshkit::detail::scopeExit ( F f)

Make a ScopeExit guard for f.

Bind the result to a named local (auto guard = scopeExit(...)); C++17 guaranteed copy elision lets the non-movable guard be returned. An unnamed temporary would call f at the end of the full-expression.

Parameters
[in]fCallable, moved into the guard.
Returns
Guard that calls f when destroyed.
Here is the caller graph for this function: