#include "attribute.h"
#include "set.h"
Go to the source code of this file.
◆ Tuple
◆ tuple_add_attribute()
Add an Attribute to a Tuple.
- Parameters
-
| t | Pointer to the Tuple. |
| attr | Pointer to the Attribute to add. |
- Returns
- 1 if added, 0 if already present, -1 on error.
◆ tuple_create()
| Tuple * tuple_create |
( |
void |
| ) |
|
Create a new Tuple.
- Returns
- Pointer to new Tuple, or NULL on failure.
◆ tuple_destroy()
| void tuple_destroy |
( |
Tuple * |
t | ) |
|
Destroy a Tuple and free its memory.
- Parameters
-
| t | Pointer to the Tuple to destroy. |
◆ tuple_equals()
Check if two Tuples are equal (all attributes match).
- Parameters
-
| a | Pointer to first Tuple. |
| b | Pointer to second Tuple. |
- Returns
- 1 if equal, 0 otherwise.
◆ tuple_find_attribute()
Find an Attribute in a Tuple by name.
- Parameters
-
| t | Pointer to the Tuple. |
| name | Name of the Attribute to find. |
- Returns
- Pointer to the found Attribute, or NULL if not found.
◆ tuple_print()
| void tuple_print |
( |
const Tuple * |
t | ) |
|
Print a Tuple to stdout.
- Parameters
-
| t | Pointer to the Tuple to print. |