|
dune-functions 2.8.0
|
Loading...
Searching...
No Matches
treedata.hh
Go to the documentation of this file.
void applyToTree(Tree &&tree, Visitor &&visitor)
static Type apply(T &t)
std::ptrdiff_t index() const
Mixin for visitors that should apply the same action on all nodes.
Definition treedata.hh:33
void pre(Node &node, TreePath treePath)
Definition treedata.hh:39
void leaf(Node &node, TreePath treePath)
Definition treedata.hh:50
Container allowing to attach data to each node of a tree.
Definition treedata.hh:84
TreeData(const TreeData &other)
Copy constructor.
Definition treedata.hh:194
void init(const Tree &tree)
Initialize from tree.
Definition treedata.hh:185
static const bool leafOnly
Set if data should only be associated to the leafs.
Definition treedata.hh:95
T Tree
Type of tree the data is associated with.
Definition treedata.hh:89
const NodeData< Node > & operator[](const Node &node) const
Get reference to data associated to given node.
Definition treedata.hh:235
TreeData & operator=(const TreeData &other)
Copy assignment.
Definition treedata.hh:202
ND< Node > NodeData
Template to determine the data type for given node type.
Definition treedata.hh:99
NodeData< Node > & operator[](const Node &node)
Get mutable reference to data associated to given node.
Definition treedata.hh:228
typename Tree::size_type size_type
Type used for indices and size information.
Definition treedata.hh:92
Definition treedata.hh:116
InitVisitor(RawContainer &data)
Definition treedata.hh:117
void apply(Node &node, TreePath treePath)
Definition treedata.hh:122
Definition treedata.hh:136
DestroyVisitor(RawContainer &data)
Definition treedata.hh:137
void apply(Node &node, TreePath treePath)
Definition treedata.hh:142
Definition treedata.hh:155
CopyVisitor(TreeData &thisTD, const TreeData &otherTD)
Definition treedata.hh:156
void apply(Node &node, TreePath treePath)
Definition treedata.hh:162
T resize(T... args)
T size(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8