dune-typetree
3.0-dev
|
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 |
Static Public Member Functions | |
static constexpr std::size_t | degree () |
Static Public Attributes | |
static const bool | isLeaf = Node::isLeaf |
Mark this class as non leaf in the dune-typetree. More... | |
static const bool | isPower = Node::isPower |
Mark this class as a non power in the dune-typetree. More... | |
static const bool | isComposite = Node::isComposite |
Mark this class as a composite in the dune-typetree. More... | |
static const std::size_t | CHILDREN = StaticDegree<Node>::value |
The number of children. More... | |
Protected Member Functions | |
Access to the proxied node | |
template<bool enabled = !proxiedNodeIsConst> | |
std::enable_if< enabled, Node & >::type | proxiedNode () |
Returns the proxied node. More... | |
const Node & | proxiedNode () const |
Returns the proxied node (const version). More... | |
template<bool enabled = !proxiedNodeIsConst> | |
std::enable_if< enabled, shared_ptr< Node > >::type | proxiedNodeStorage () |
Returns the storage of the proxied node. More... | |
shared_ptr< const Node > | proxiedNodeStorage () const |
Returns the storage of the proxied node (const version). More... | |
Constructors | |
ProxyNode (Node &node) | |
ProxyNode (shared_ptr< Node > 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 |
|
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).
|
static |
The number of children.
|
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.