From ebf4767701457f30281aa0ca86159911b0e1edb3 Mon Sep 17 00:00:00 2001 From: MMagueta Date: Sat, 20 Sep 2025 04:42:09 +0000 Subject: deploy: 5ed1406c81044ff73fd919b5aad184aaed0a174b --- relation_8h.html | 302 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 302 insertions(+) create mode 100644 relation_8h.html (limited to 'relation_8h.html') diff --git a/relation_8h.html b/relation_8h.html new file mode 100644 index 0000000..a3b0e54 --- /dev/null +++ b/relation_8h.html @@ -0,0 +1,302 @@ + + + + + + + +Relational Algebra Engine: include/relation.h File Reference + + + + + + + + + +
+
+ + + + + + +
+
Relational Algebra Engine +
+
+
+ + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+ +
relation.h File Reference
+
+
+
#include "set.h"
+#include "tuple.h"
+
+Include dependency graph for relation.h:
+
+
+ + + + + + + + + + + + + +
+
+This graph shows which files directly or indirectly include this file:
+
+
+ + + + + + + +
+
+

Go to the source code of this file.

+ + + + +

+Classes

struct  Relation
 
+ + + + + + + + + + + + + + + + +

+Functions

Relation * relation_create (const char *name)
 Create a new Relation.
 
int relation_add_tuple (Relation *r, Tuple *t)
 Add a tuple to a relation.
 
void relation_destroy (Relation *r)
 Destroy a Relation and free its memory.
 
void relation_print (const Relation *r)
 Print a Relation to stdout.
 
Tuple * relation_find_tuple (Relation *r, Tuple *t)
 Find a tuple in a relation matching the target.
 
+

Function Documentation

+ +

◆ relation_add_tuple()

+ +
+
+ + + + + + + + + + + + + + + + + + +
int relation_add_tuple (Relation * r,
Tuple * t 
)
+
+ +

Add a tuple to a relation.

+
Parameters
+ + + +
rPointer to the Relation.
tPointer to the Tuple to add.
+
+
+
Returns
1 if added, 0 if already present, -1 on error.
+ +
+
+ +

◆ relation_create()

+ +
+
+ + + + + + + + +
Relation * relation_create (const char * name)
+
+ +

Create a new Relation.

+
Parameters
+ + +
nameName of the relation (copied).
+
+
+
Returns
Pointer to the new Relation, or NULL on failure.
+ +
+
+ +

◆ relation_destroy()

+ +
+
+ + + + + + + + +
void relation_destroy (Relation * r)
+
+ +

Destroy a Relation and free its memory.

+
Parameters
+ + +
rPointer to the Relation to destroy. Safe to pass NULL.
+
+
+ +
+
+ +

◆ relation_find_tuple()

+ +
+
+ + + + + + + + + + + + + + + + + + +
Tuple * relation_find_tuple (Relation * r,
Tuple * target 
)
+
+ +

Find a tuple in a relation matching the target.

+
Parameters
+ + + +
rPointer to the Relation.
targetPointer to the Tuple to find.
+
+
+
Returns
Pointer to the found Tuple, or NULL if not found.
+ +
+
+ +

◆ relation_print()

+ +
+
+ + + + + + + + +
void relation_print (const Relation * r)
+
+ +

Print a Relation to stdout.

+
Parameters
+ + +
rPointer to the Relation to print.
+
+
+ +
+
+
+ + + + -- cgit v1.2.3