Go to the documentation of this file.
4 #ifndef DUNE_TYPETREE_GENERICTRANSFORMATIONDESCRIPTORS_HH
5 #define DUNE_TYPETREE_GENERICTRANSFORMATIONDESCRIPTORS_HH
13 #include <dune/common/exceptions.hh>
24 template<
typename SourceNode,
typename Transformation,
typename TransformedNode>
45 return std::make_shared<transformed_type>(s,t);
51 template<
typename SourceNode,
typename Transformation,
template<
typename Child>
class TransformedNodeTemplate>
60 typedef typename TransformedNodeTemplate<TC>::type
type;
80 return std::make_shared<typename result<TC>::type>(s,t,children);
86 template<
typename SourceNode,
typename Transformation,
template<
typename,
typename,std::
size_t>
class TransformedNode>
90 GenericPowerNodeTransformationTemplate<SourceNode,
92 TransformedNode>::template result
97 template<
typename SourceNode,
typename Transformation,
template<
typename...>
class TransformedNodeTemplate>
103 template<
typename... TC>
110 template<
typename... TC>
111 static typename result<TC...>::type
transform(
const SourceNode& s,
const Transformation& t, std::shared_ptr<TC>... children)
116 template<
typename... TC>
117 static typename result<TC...>::type
transform(std::shared_ptr<const SourceNode> s,
const Transformation& t, std::shared_ptr<TC>... children)
122 template<
typename... TC>
123 static typename result<TC...>::storage_type
transform_storage(std::shared_ptr<const SourceNode> s,
const Transformation& t, std::shared_ptr<TC>... children)
125 return std::make_shared<
typename result<TC...>::type>(s,t,children...);
131 template<
typename SourceNode,
typename Transformation,
template<
typename,
typename...>
class TransformedNode>
135 GenericCompositeNodeTransformationTemplate<SourceNode,
137 TransformedNode>::template result
146 #endif // DUNE_TYPETREE_GENERICTRANSFORMATIONDESCRIPTORS_HH
std::shared_ptr< type > storage_type
Definition: generictransformationdescriptors.hh:61
Definition: generictransformationdescriptors.hh:52
TransformedNodeTemplate< TC... >::type type
Definition: generictransformationdescriptors.hh:106
std::shared_ptr< type > storage_type
Definition: generictransformationdescriptors.hh:107
TransformedNodeTemplate< TC >::type type
Definition: generictransformationdescriptors.hh:60
std::shared_ptr< transformed_type > transformed_storage_type
Definition: generictransformationdescriptors.hh:31
Definition: generictransformationdescriptors.hh:104
static result< TC... >::storage_type transform_storage(std::shared_ptr< const SourceNode > s, const Transformation &t, std::shared_ptr< TC >... children)
Definition: generictransformationdescriptors.hh:123
Definition: generictransformationdescriptors.hh:87
static transformed_type transform(const SourceNode &s, const Transformation &t)
Definition: generictransformationdescriptors.hh:33
static result< TC... >::type transform(const SourceNode &s, const Transformation &t, std::shared_ptr< TC >... children)
Definition: generictransformationdescriptors.hh:111
static const bool recursive
Definition: generictransformationdescriptors.hh:55
static transformed_type transform(std::shared_ptr< const SourceNode > s, const Transformation &t)
Definition: generictransformationdescriptors.hh:38
static const result_type result
Definition: accumulate_static.hh:110
static result< TC >::type transform(std::shared_ptr< const SourceNode > s, const Transformation &t, const std::array< std::shared_ptr< TC >, result< TC >::degree > &children)
Definition: generictransformationdescriptors.hh:72
TransformedNode transformed_type
Definition: generictransformationdescriptors.hh:30
Definition: generictransformationdescriptors.hh:25
static result< TC... >::type transform(std::shared_ptr< const SourceNode > s, const Transformation &t, std::shared_ptr< TC >... children)
Definition: generictransformationdescriptors.hh:117
Definition: generictransformationdescriptors.hh:132
Definition: accumulate_static.hh:13
std::integral_constant< std::size_t, degree(static_cast< std::decay_t< Node > * >(nullptr), NodeTag< std::decay_t< Node > >()) > StaticDegree
Returns the statically known degree of the given Node type as a std::integral_constant.
Definition: nodeinterface.hh:105
static const std::size_t degree
Definition: generictransformationdescriptors.hh:62
Definition: generictransformationdescriptors.hh:98
static result< TC >::type transform(const SourceNode &s, const Transformation &t, const std::array< std::shared_ptr< TC >, result< TC >::degree > &children)
Definition: generictransformationdescriptors.hh:66
static result< TC >::storage_type transform_storage(std::shared_ptr< const SourceNode > s, const Transformation &t, const std::array< std::shared_ptr< TC >, result< TC >::degree > &children)
Definition: generictransformationdescriptors.hh:78
static const bool recursive
Definition: generictransformationdescriptors.hh:101
static const bool recursive
Definition: generictransformationdescriptors.hh:28
Definition: generictransformationdescriptors.hh:58
static transformed_storage_type transform_storage(std::shared_ptr< const SourceNode > s, const Transformation &t)
Definition: generictransformationdescriptors.hh:43