Wildmeshing Toolkit
Loading...
Searching...
No Matches
attribute_ambiguous_error.hpp
Go to the documentation of this file.
1
#pragma once
2
#include "
attribute_error.hpp
"
3
namespace
wmtk::components::multimesh::utils
{
4
struct
AttributeDescription;
5
}
6
7
namespace
wmtk::components::multimesh::utils::detail
{
8
9
class
attribute_ambiguous_error
:
public
attribute_error
10
{
11
public
:
12
static
std::string
make_message
(
13
const
AttributeDescription
&
description
,
14
const
std::vector<AttributeDescription>& possibilities);
15
attribute_ambiguous_error
(
16
const
AttributeDescription
& d,
17
const
std::vector<AttributeDescription>& possibilities)
18
:
attribute_error
(
make_message
(d, possibilities), d)
19
{}
20
template
<
typename
... Args>
21
static
attribute_ambiguous_error
make
(
22
const
std::vector<AttributeDescription>& possiblities,
23
Args&&... args)
24
{
25
return
attribute_ambiguous_error
(
26
AttributeDescription
{std::forward<Args>(args)...},
27
possiblities);
28
}
29
};
30
31
32
}
// namespace wmtk::components::multimesh::utils::detail
attribute_error.hpp
wmtk::components::multimesh::utils::detail::attribute_ambiguous_error
Definition
attribute_ambiguous_error.hpp:10
wmtk::components::multimesh::utils::detail::attribute_ambiguous_error::attribute_ambiguous_error
attribute_ambiguous_error(const AttributeDescription &d, const std::vector< AttributeDescription > &possibilities)
Definition
attribute_ambiguous_error.hpp:15
wmtk::components::multimesh::utils::detail::attribute_ambiguous_error::make_message
static std::string make_message(const AttributeDescription &description, const std::vector< AttributeDescription > &possibilities)
Definition
attribute_ambiguous_error.cpp:10
wmtk::components::multimesh::utils::detail::attribute_ambiguous_error::make
static attribute_ambiguous_error make(const std::vector< AttributeDescription > &possiblities, Args &&... args)
Definition
attribute_ambiguous_error.hpp:21
wmtk::components::multimesh::utils::detail::attribute_error
Definition
attribute_error.hpp:11
wmtk::components::multimesh::utils::detail::attribute_error::description
AttributeDescription description
Definition
attribute_error.hpp:18
wmtk::components::multimesh::utils::detail
Definition
attribute_ambiguous_error.cpp:8
wmtk::components::multimesh::utils
Definition
AttributeDescription.cpp:18
wmtk::components::multimesh::utils::AttributeDescription
Definition
AttributeDescription.hpp:17
components
multimesh
src
wmtk
components
multimesh
utils
detail
attribute_ambiguous_error.hpp
Generated by
1.9.8