Loading...
Searching...
No Matches
meshkit::detail::StandardStorage Struct Reference

Storage policy that instantiates BasicConstrainedDelaunay on standard C++ types. More...

#include <meshkit/detail/storage.hpp>

Collaboration diagram for meshkit::detail::StandardStorage:

Public Types

using Point = Point2
 Vertex and input point type (XY units).
 
using Box = Box2
 Axis-aligned box type.
 
using String = std::string
 Error message type (errorMsg()).
 
using PointInput = std::vector<Point2>
 Input point array type taken by build().
 
template<class T>
using Vector = detail::Vector<T>
 Sequence container.
 
template<class K, class V>
using Hash = Map<K, V>
 Hash map.
 
template<class K, class V>
using MultiHash = MultiMap<K, V>
 Multi-valued hash map.
 
template<class K>
using Set = detail::Set<K>
 Hash set.
 

Static Public Member Functions

static String message (const char *s)
 Convert a fixed message to String.
 
static String invalidPointMessage (int i)
 Error text for a non-finite input point.
 

Detailed Description

Storage policy that instantiates BasicConstrainedDelaunay on standard C++ types.

meshkit::ConstrainedDelaunay is BasicConstrainedDelaunay<StandardStorage>. The Qt build supplies detail::QtStorage (include/mesh/qtcdtstorage.h) with the same members mapped to QPointF, QRectF, QString and the Qt containers.

Member Typedef Documentation

◆ Box

Axis-aligned box type.

◆ Hash

template<class K, class V>
using meshkit::detail::StandardStorage::Hash = Map<K, V>

Hash map.

◆ MultiHash

template<class K, class V>
using meshkit::detail::StandardStorage::MultiHash = MultiMap<K, V>

Multi-valued hash map.

◆ Point

Vertex and input point type (XY units).

◆ PointInput

Input point array type taken by build().

◆ Set

template<class K>
using meshkit::detail::StandardStorage::Set = detail::Set<K>

Hash set.

◆ String

Error message type (errorMsg()).

◆ Vector

Sequence container.

Member Function Documentation

◆ invalidPointMessage()

static String meshkit::detail::StandardStorage::invalidPointMessage ( int i)
inlinestatic

Error text for a non-finite input point.

Parameters
[in]iZero-based index of the first input point whose x or y is not finite.
Returns
"cdt: non-finite input point " followed by i in decimal.

◆ message()

static String meshkit::detail::StandardStorage::message ( const char * s)
inlinestatic

Convert a fixed message to String.

Parameters
[in]sNUL-terminated text; must not be null. Copied, not retained.
Returns
Copy of s.

The documentation for this struct was generated from the following file: