Commit 36fb9081 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

Merge branch 'feature/improve-layer-example' into 'master'

Feature/improve layer example

See merge request DennisGlaeser/frackit!42
parents f384192c 110595e8
This diff is collapsed.
......@@ -211,6 +211,28 @@ public:
std::apply([&](auto& ...x){(..., addSets(x));}, entitySets_);
}
/*!
* \brief Export all entity sets into the provided
* entity network builder.
* \param builder An instance of a builder class.
* \note This overload works with builders that create
* uncontained network, i.e. only the network is built
* independent of the embedding domain.
*/
template<class NetworkBuilder>
void exportEntitySets(NetworkBuilder& builder) const
{
// lambda to add sets of a specific geometry type
auto addSets = [&] (const auto& geomVectorIdPairVector) -> void
{
for (const auto& vectorIdPair : geomVectorIdPairVector)
builder.addEntities(vectorIdPair.first);
};
// find the id and apply function
std::apply([&](auto& ...x){(..., addSets(x));}, entitySets_);
}
/*!
* \brief Export various entity sets into the
* provided entity network builder.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment