27 #ifndef T8_DEFAULT_COMMON_CXX_HXX
28 #define T8_DEFAULT_COMMON_CXX_HXX
34 #define T8_COMMON_IS_TYPE(VAR, TYPE) ((dynamic_cast<TYPE> (VAR)) != NULL)
124 double *out_coords)
const
Definition: t8_default_common_cxx.hxx:36
virtual t8_gloidx_t t8_element_count_leafs(const t8_element_t *t, int level) const
Count how many leaf descendants of a given uniform level an element would produce.
Definition: t8_default_common_cxx.cxx:121
virtual void t8_element_reference_coords(const t8_element_t *elem, const double *ref_coords, const size_t num_coords, double *out_coords) const =0
Convert points in the reference space of an element to points in the reference space of the tree.
virtual void t8_element_vertex_coords(const t8_element_t *elem, int vertex, int coords[]) const =0
Compute the integer coordinates of a given element vertex.
virtual int t8_element_num_siblings(const t8_element_t *elem) const
Compute the number of siblings of an element.
Definition: t8_default_common_cxx.cxx:139
virtual t8_element_shape_t t8_element_shape(const t8_element_t *elem) const
Return the shape of an element.
Definition: t8_default_common_cxx.cxx:107
virtual int t8_element_num_corners(const t8_element_t *elem) const
Compute the number of corners of a given element.
Definition: t8_default_common_cxx.cxx:59
virtual void t8_element_destroy(int length, t8_element_t **elem) const
Deallocate space for a bunch of elements.
Definition: t8_default_common_cxx.cxx:73
virtual void t8_element_debug_print(const t8_element_t *elem) const
Print a given element.
Definition: t8_default_common_cxx.cxx:165
virtual t8_gloidx_t t8_element_count_leafs_from_root(int level) const
Count how many leaf descendants of a given uniform level the root element will produce.
Definition: t8_default_common_cxx.cxx:147
virtual ~t8_default_scheme_common_c()
Destructor for all default schemes.
Definition: t8_default_common_cxx.cxx:50
virtual void t8_element_anchor(const t8_element_t *elem, int anchor[3]) const =0
Get the integer coordinates of the anchor node of an element.
virtual void t8_element_general_function(const t8_element_t *elem, const void *indata, void *outdata) const
The common implementation of the general function for the default scheme has no effect.
Definition: t8_default_common_cxx.cxx:157
virtual void t8_element_new(int length, t8_element_t **elem) const
Allocate space for a bunch of elements.
Definition: t8_default_common_cxx.cxx:67
This struct holds virtual functions for a particular element class.
Definition: t8_element_cxx.hxx:47
int64_t t8_gloidx_t
A type for global indexing that holds really big numbers.
Definition: t8.h:98
struct t8_element t8_element_t
Opaque structure for a generic element, only used as pointer.
Definition: t8_element.h:42
This file defines basic operations on an element in a refinement tree.
t8_eclass_t t8_element_shape_t
Type definition for the geometric shape of an element.
Definition: t8_element_shape.h:38