1#ifndef FIBERTYPEMAP_HPP
2#define FIBERTYPEMAP_HPP "Created 20.06.2020 12:20:27 by werner"
4#include "FiberTypeBase.hpp"
6#include <memcore/RefPtr.hpp>
18template <
class TypeProperty>
26 if (!Index)
return false;
28 (*this)[ Index->getFiberTypeIndex() ] =
Property;
48 return find(
FTB->getFiberTypeIndex());
61 return theMap().insert( Index,
Property );
67 return theMap().find(
FTB);
75template <
class TypeProperty>
83 if (!Index)
return false;
94 I begin() {
return this->
first; }
95 I end() {
return this->
second; }
111 return find(
FTB->getFiberTypeIndex());
115static FiberTypeMultiMap&theMap()
117 static FiberTypeMultiMap myMap;
124 return theMap().insert( Index, Property );
128 get(
const FiberTypeIndex&FTI)
130 auto [a,b] = theMap().find(FTI);
132 for(
auto r = a; r !=b; r++ )
134 for(
auto r :
std::ranges::iota_view(a,b) )
146 auto R = theMap().find(FTB);
iterator emplace(_Args &&... __args)
std::pair< iterator, iterator > equal_range(const key_type &__x)
const_iterator end() const noexcept
iterator find(const key_type &__x)
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
Definition FiberTypeIndex.hpp:12
https://stackoverflow.com/questions/17614172/c-template-singletons-in-a-dll
Definition FiberTypeMap.hpp:20
Definition FiberTypeMap.hpp:91
https://stackoverflow.com/questions/17614172/c-template-singletons-in-a-dll
Definition FiberTypeMap.hpp:77