Transform a TypeTree.
More...
#include <dune/typetree/transformation.hh>
|
static transformed_type | transform (const SourceTree &s, const Transformation &t=Transformation()) |
| Apply transformation to an existing tree s. More...
|
|
static transformed_type | transform (const SourceTree &s, Transformation &t) |
| Apply transformation to an existing tree s. More...
|
|
static transformed_type | transform (std::shared_ptr< const SourceTree > sp, const Transformation &t=Transformation()) |
| Apply transformation to an existing tree s. More...
|
|
static transformed_type | transform (std::shared_ptr< const SourceTree > sp, Transformation &t) |
| Apply transformation to an existing tree s. More...
|
|
static transformed_storage_type | transform_storage (std::shared_ptr< const SourceTree > sp, const Transformation &t=Transformation()) |
|
static transformed_storage_type | transform_storage (std::shared_ptr< const SourceTree > sp, Transformation &t) |
|
template<typename SourceTree, typename Transformation, typename Tag = StartTag, bool recursive = true>
struct Dune::TypeTree::TransformTree< SourceTree, Transformation, Tag, recursive >
Transform a TypeTree.
This struct can be used to apply a transformation to a given TypeTree. It exports the type of the resulting (transformed) tree and contains methods to actually transform tree instances.
- Template Parameters
-
SourceTree | = The TypeTree that should be transformed. |
Transformation | = The Transformation to apply to the TypeTree. |
Tag | = This parameter is an implementation detail and must always be set to its default value. |
recursive | = This parameter is an implementation detail and must always be set to its default value. |
§ type
template<typename SourceTree, typename Transformation, typename Tag = StartTag, bool recursive = true>
The type of the transformed tree.
§ Type
template<typename SourceTree, typename Transformation, typename Tag = StartTag, bool recursive = true>
§ transform() [1/4]
template<typename SourceTree, typename Transformation, typename Tag = StartTag, bool recursive = true>
static transformed_type Dune::TypeTree::TransformTree< SourceTree, Transformation, Tag, recursive >::transform |
( |
const SourceTree & |
s, |
|
|
const Transformation & |
t = Transformation() |
|
) |
| |
|
inlinestatic |
Apply transformation to an existing tree s.
§ transform() [2/4]
template<typename SourceTree, typename Transformation, typename Tag = StartTag, bool recursive = true>
static transformed_type Dune::TypeTree::TransformTree< SourceTree, Transformation, Tag, recursive >::transform |
( |
const SourceTree & |
s, |
|
|
Transformation & |
t |
|
) |
| |
|
inlinestatic |
Apply transformation to an existing tree s.
§ transform() [3/4]
template<typename SourceTree, typename Transformation, typename Tag = StartTag, bool recursive = true>
static transformed_type Dune::TypeTree::TransformTree< SourceTree, Transformation, Tag, recursive >::transform |
( |
std::shared_ptr< const SourceTree > |
sp, |
|
|
const Transformation & |
t = Transformation() |
|
) |
| |
|
inlinestatic |
Apply transformation to an existing tree s.
§ transform() [4/4]
template<typename SourceTree, typename Transformation, typename Tag = StartTag, bool recursive = true>
static transformed_type Dune::TypeTree::TransformTree< SourceTree, Transformation, Tag, recursive >::transform |
( |
std::shared_ptr< const SourceTree > |
sp, |
|
|
Transformation & |
t |
|
) |
| |
|
inlinestatic |
Apply transformation to an existing tree s.
§ transform_storage() [1/2]
template<typename SourceTree, typename Transformation, typename Tag = StartTag, bool recursive = true>
static transformed_storage_type Dune::TypeTree::TransformTree< SourceTree, Transformation, Tag, recursive >::transform_storage |
( |
std::shared_ptr< const SourceTree > |
sp, |
|
|
const Transformation & |
t = Transformation() |
|
) |
| |
|
inlinestatic |
Apply transformation to storage type of an existing tree, returning a heap-allocated storage type instance of the transformed tree.
§ transform_storage() [2/2]
template<typename SourceTree, typename Transformation, typename Tag = StartTag, bool recursive = true>
static transformed_storage_type Dune::TypeTree::TransformTree< SourceTree, Transformation, Tag, recursive >::transform_storage |
( |
std::shared_ptr< const SourceTree > |
sp, |
|
|
Transformation & |
t |
|
) |
| |
|
inlinestatic |
Apply transformation to storage type of an existing tree, returning a heap-allocated storage type instance of the transformed tree.
The documentation for this struct was generated from the following file: