Relational Algebra Engine
Loading...
Searching...
No Matches
tuple.h
Go to the documentation of this file.
1#ifndef TUPLE_H
2#define TUPLE_H
3
4#include "attribute.h"
5#include "set.h"
6
7typedef Set Tuple;
8
10void tuple_destroy(Tuple *t);
12void tuple_print(const Tuple *t);
13Attribute *tuple_find_attribute(Tuple *t, const char *name);
14int tuple_equals(Tuple *a, Tuple *b);
15#endif // TUPLE_H
Definition attribute.h:8
Definition set.c:17
Set Tuple
Definition tuple.h:7
void tuple_print(const Tuple *t)
Print a Tuple to stdout.
Definition tuple.c:75
Tuple * tuple_create(void)
Create a new Tuple.
Definition tuple.c:40
int tuple_add_attribute(Tuple *t, Attribute *attr)
Add an Attribute to a Tuple.
Definition tuple.c:56
int tuple_equals(Tuple *a, Tuple *b)
Check if two Tuples are equal (all attributes match).
Definition tuple.c:168
Attribute * tuple_find_attribute(Tuple *t, const char *name)
Find an Attribute in a Tuple by name.
Definition tuple.c:107
void tuple_destroy(Tuple *t)
Destroy a Tuple and free its memory.
Definition tuple.c:47