#include <Element_container.hpp>
Public Member Functions | |
virtual int | emplace (int ref_level, std::vector< int > position, Mat<> origin, int aniso_ref_level=0)=0 |
virtual Element & | at (int ref_level, int serial_n)=0 |
access an element by refinement level and serial number | |
virtual Sequence< Element & > & | element_view ()=0 |
virtual std::vector< std::array< int, 2 > > | elem_handles ()=0 |
return the currently valid set of ref_level , serial_n combinations | |
virtual int | purge (std::function< bool(Element &)> predicate=[](Element &elem){return elem.record !=0;})=0 |
An abstract class representing a collection of Element
s which supports basic construction and access facilities.
|
pure virtual |
access an element by refinement level and serial number
Implemented in hexed::Complete_element_container< element_t >, hexed::Complete_element_container< hexed::Deformed_element >, and hexed::Complete_element_container< hexed::Element >.
|
pure virtual |
return the currently valid set of ref_level
, serial_n
combinations
deletes all elements where predicate
evaluates to true and returns the number of elements deleted
Implemented in hexed::Complete_element_container< element_t >, hexed::Complete_element_container< hexed::Deformed_element >, and hexed::Complete_element_container< hexed::Element >.
|
pure virtual |
Construct an element, add it to the container, and return a permanent, arbitrary serial number which is unique among elements of the same refinement level.
Implemented in hexed::Complete_element_container< element_t >, hexed::Complete_element_container< hexed::Deformed_element >, and hexed::Complete_element_container< hexed::Element >.