Skip to content
Snippets Groups Projects
Commit 31103118 authored by Adrian Burri's avatar Adrian Burri
Browse files

Added leaf{begin,end} with no level arguments (methods with level arguments...

Added leaf{begin,end} with no level arguments (methods with level arguments shall be removed later to allow for an easy transition)

[[Imported from SVN: r2419]]
parent 7dfe7a36
No related branches found
No related tags found
No related merge requests found
......@@ -201,6 +201,22 @@ namespace Dune {
//! one past the end on this leaf level (codim 0 and All_Partition)
LeafIteratorType leafend (int level) const;
//! General definiton for a leaf iterator
template <int codim, PartitionIteratorType pitype>
Traits::template Codim<codim>::template Partition<pitype>::LeafIterator
leafbegin() const;
//! General definition for an end iterator on leaf level
template <int codim, PartitionIteratorType pitype>
Traits::template Codim<codim>::template Partition<pitype>::LeafIterator
leafend() const;
//! Iterator to first entity of codim 0 on leaf level (All_Partition)
LeafIteratorType leafbegin () const;
//! one past the end on this leaf level (codim 0 and All_Partition)
LeafIteratorType leafend () const;
//! number of grid entities per level and codim
int size (int level, int cd) const;
......
......@@ -256,6 +256,13 @@ namespace Dune {
);
}
template <int dim, int dimworld, ALU3dGridElementType elType>
template <int codim, PartitionIteratorType pitype>
inline typename ALU3dGrid<dim, dimworld, elType>::Traits::template Codim<codim>::template Partition<pitype>::LeafIterator
ALU3dGrid<dim, dimworld, elType>::leafbegin() const {
return leafbegin<codim, pitype>(maxlevel_);
}
template <int dim, int dimworld, ALU3dGridElementType elType>
template <int codim, PartitionIteratorType pitype>
inline typename ALU3dGrid<dim, dimworld, elType>::Traits::template Codim<codim>::template Partition<pitype>::LeafIterator
......@@ -273,6 +280,13 @@ namespace Dune {
);
}
template <int dim, int dimworld, ALU3dGridElementType elType>
template <int codim, PartitionIteratorType pitype>
inline typename ALU3dGrid<dim, dimworld, elType>::Traits::template Codim<codim>::template Partition<pitype>::LeafIterator
ALU3dGrid<dim, dimworld, elType>::leafend() const {
return leafend<codim, pitype>(maxlevel_);
}
template <int dim, int dimworld, ALU3dGridElementType elType>
ALU3dGrid<dim, dimworld, elType>::LeafIteratorType
ALU3dGrid<dim, dimworld, elType>::leafbegin(int level) const {
......@@ -285,6 +299,18 @@ namespace Dune {
return leafend<0, All_Partition>(level);
}
template <int dim, int dimworld, ALU3dGridElementType elType>
ALU3dGrid<dim, dimworld, elType>::LeafIteratorType
ALU3dGrid<dim, dimworld, elType>::leafbegin() const {
return leafbegin<0, All_Partition>(maxlevel_);
}
template <int dim, int dimworld, ALU3dGridElementType elType>
ALU3dGrid<dim, dimworld, elType>::LeafIteratorType
ALU3dGrid<dim, dimworld, elType>::leafend() const {
return leafend<0, All_Partition>(maxlevel_);
}
// global refine
template <int dim, int dimworld, ALU3dGridElementType elType>
inline bool ALU3dGrid<dim,dimworld, elType>::
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment