t8  1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
Data Fields
t8_attribute_info Struct Reference

This structure holds the information associated to an attribute of a tree. More...

#include <t8_cmesh_types.h>

Data Fields

int package_id
 The identifier of the application layer that added this attribute.
 
int key
 The (tree unique) key of the attribute whithin this AL.
 
size_t attribute_offset
 The offset of the attribute data from the first attribute info of the tree. More...
 
size_t attribute_size
 The size in bytes of the attribute.
 

Detailed Description

This structure holds the information associated to an attribute of a tree.

The attributes of each are stored in a key-value storage, where the key consists of the two entries (package_id,key) both being integers. The package_id serves to identify the application layer that added the attribute and the key identifies the attribute whithin that application layer.

All attribute info objects of one tree are stored in an array and adding a tree's att_offset entry to the tree's adress yields this array. The attributes themselfes are stored in an array directly behind the array of the attribute infos.

Field Documentation

◆ attribute_offset

size_t t8_attribute_info::attribute_offset

The offset of the attribute data from the first attribute info of the tree.

(Thus, the attribute is stored at adress tree + tree->att_offset + attribute_offset)


The documentation for this struct was generated from the following file: