|
dune-typetree 2.11
|
Base class for nodes acting as a proxy for an existing node. More...
#include <dune/typetree/proxynode.hh>

Public Types | |
| typedef Node | ProxiedNode |
| typedef Dune::TypeTree::NodeTag< Node > | NodeTag |
Public Member Functions | |
| template<class N = Node, std::enable_if_t< not hasStaticDegree< N >, int > = 0> | |
| auto | degree () const |
Static Public Member Functions | |
| template<class N = Node, std::enable_if_t< hasStaticDegree< N >, int > = 0> | |
| static constexpr auto | degree () |
Static Public Attributes | |
| static const bool | isLeaf = Node::isLeaf |
| Mark this class as non leaf in the dune-typetree. | |
| static const bool | isPower = Node::isPower |
| Mark this class as a non power in the dune-typetree. | |
| static const bool | isComposite = Node::isComposite |
| Mark this class as a composite in the dune-typetree. | |
Protected Member Functions | |
Access to the proxied node | |
| template<bool enabled = !proxiedNodeIsConst> | |
| std::enable_if< enabled, Node & >::type | proxiedNode () |
| Returns the proxied node. | |
| const Node & | proxiedNode () const |
| Returns the proxied node (const version). | |
| template<bool enabled = !proxiedNodeIsConst> | |
| std::enable_if< enabled, std::shared_ptr< Node > >::type | proxiedNodeStorage () |
| Returns the storage of the proxied node. | |
| std::shared_ptr< const Node > | proxiedNodeStorage () const |
| Returns the storage of the proxied node (const version). | |
Constructors | |
| ProxyNode (Node &node) | |
| ProxyNode (std::shared_ptr< Node > node) | |
Friends | |
| class | StaticChildAccessors< Node > |
| class | DynamicChildAccessors< Node > |
Base class for nodes acting as a proxy for an existing node.
ProxyNode is a utility class for implementing proxy classes that need to provide the TypeTree node functionality of the proxied class. It exactly mirrors the TypeTree node characteristics of the proxied node.
| typedef Dune::TypeTree::NodeTag<Node> Dune::TypeTree::ProxyNode< Node >::NodeTag |
| typedef Node Dune::TypeTree::ProxyNode< Node >::ProxiedNode |
|
inlineprotected |
|
inlineprotected |
|
inlinestaticconstexpr |
|
inline |
|
inlineprotected |
Returns the proxied node.
|
inlineprotected |
Returns the proxied node (const version).
|
inlineprotected |
Returns the storage of the proxied node.
|
inlineprotected |
Returns the storage of the proxied node (const version).
|
friend |
|
friend |
|
static |
Mark this class as a composite in the dune-typetree.
|
static |
Mark this class as non leaf in the dune-typetree.
|
static |
Mark this class as a non power in the dune-typetree.