From ebf4767701457f30281aa0ca86159911b0e1edb3 Mon Sep 17 00:00:00 2001 From: MMagueta Date: Sat, 20 Sep 2025 04:42:09 +0000 Subject: deploy: 5ed1406c81044ff73fd919b5aad184aaed0a174b --- attribute_8c.html | 230 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 230 insertions(+) create mode 100644 attribute_8c.html (limited to 'attribute_8c.html') diff --git a/attribute_8c.html b/attribute_8c.html new file mode 100644 index 0000000..0d9101e --- /dev/null +++ b/attribute_8c.html @@ -0,0 +1,230 @@ + + + + + + + +Relational Algebra Engine: src/attribute.c File Reference + + + + + + + + + +
+
+ + + + + + +
+
Relational Algebra Engine +
+
+
+ + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+ +
attribute.c File Reference
+
+
+ +

Attribute implementation for the Relational Algebra Engine. +More...

+
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include "attribute.h"
+#include "set.h"
+
+Include dependency graph for attribute.c:
+
+
+ + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + +

+Functions

Attribute * attribute_create (const char *name, AttributeType type, void *value)
 Create a new Attribute.
 
void attribute_destroy (Attribute *attr)
 Destroy an Attribute and free its memory.
 
void attribute_print (const Attribute *attr)
 Print an Attribute to stdout.
 
+

Detailed Description

+

Attribute implementation for the Relational Algebra Engine.

+

Handles creation, destruction, and printing of attributes, which are name-value pairs used as the basic building blocks of tuples in the relational model.

+

Function Documentation

+ +

◆ attribute_create()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Attribute * attribute_create (const char * name,
AttributeType type,
void * value 
)
+
+ +

Create a new Attribute.

+
Parameters
+ + + + +
nameName of the attribute (copied).
typeType of the attribute (see AttributeType).
valuePointer to the value (ownership is taken).
+
+
+
Returns
Pointer to the new Attribute, or NULL on failure.
+ +
+
+ +

◆ attribute_destroy()

+ +
+
+ + + + + + + + +
void attribute_destroy (Attribute * attr)
+
+ +

Destroy an Attribute and free its memory.

+
Parameters
+ + +
attrPointer to the Attribute to destroy. Safe to pass NULL.
+
+
+ +
+
+ +

◆ attribute_print()

+ +
+
+ + + + + + + + +
void attribute_print (const Attribute * attr)
+
+ +

Print an Attribute to stdout.

+
Parameters
+ + +
attrPointer to the Attribute to print.
+
+
+ +
+
+
+ + + + -- cgit v1.2.3