Struct t8_attribute_info

Struct Documentation

struct t8_attribute_info

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 within 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 address yields this array. The attributes themselves are stored in an array directly behind the array of the attribute infos.

Public Members

int package_id

The identifier of the application layer that added this attribute.

int key

The (tree unique) key of the attribute within this AL.

size_t attribute_offset

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

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

size_t attribute_size

The size in bytes of the attribute.