<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Relational Algebra Engine: src/attribute.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Relational Algebra Engine
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">attribute.c File Reference</div></div>
</div><!--header-->
<div class="contents">
<p><a class="el" href="structAttribute.html">Attribute</a> implementation for the Relational Algebra Engine.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include <stdio.h></code><br />
<code>#include <stdlib.h></code><br />
<code>#include <string.h></code><br />
<code>#include "<a class="el" href="attribute_8h_source.html">attribute.h</a>"</code><br />
<code>#include "<a class="el" href="set_8h_source.html">set.h</a>"</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for attribute.c:</div>
<div class="dyncontent">
<div class="center"><img src="attribute_8c__incl.png" border="0" usemap="#asrc_2attribute_8c" alt=""/></div>
<map name="asrc_2attribute_8c" id="asrc_2attribute_8c">
<area shape="rect" title="Attribute implementation for the Relational Algebra Engine." alt="" coords="171,5,283,31"/>
<area shape="rect" title=" " alt="" coords="5,79,72,104"/>
<area shape="poly" title=" " alt="" coords="197,33,83,76,81,71,196,28"/>
<area shape="rect" title=" " alt="" coords="97,79,167,104"/>
<area shape="poly" title=" " alt="" coords="213,33,160,72,157,68,210,29"/>
<area shape="rect" title=" " alt="" coords="191,79,262,104"/>
<area shape="poly" title=" " alt="" coords="229,31,229,65,224,65,224,31"/>
<area shape="rect" href="attribute_8h.html" title=" " alt="" coords="287,79,377,104"/>
<area shape="poly" title=" " alt="" coords="245,28,305,69,302,73,242,33"/>
<area shape="rect" href="set_8h.html" title=" " alt="" coords="402,79,457,104"/>
<area shape="poly" title=" " alt="" coords="260,28,390,73,388,78,258,33"/>
<area shape="rect" title=" " alt="" coords="343,152,417,177"/>
<area shape="poly" title=" " alt="" coords="342,103,367,139,362,142,338,106"/>
<area shape="poly" title=" " alt="" coords="423,106,398,142,394,139,419,103"/>
</map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a90566af01d8bb56b95be836bc00d60c5" id="r_a90566af01d8bb56b95be836bc00d60c5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structAttribute.html">Attribute</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="attribute_8c.html#a90566af01d8bb56b95be836bc00d60c5">attribute_create</a> (const char *name, <a class="el" href="attribute_8h.html#a349a9cde14be8097df865ba0469c0ab2">AttributeType</a> type, void *value)</td></tr>
<tr class="memdesc:a90566af01d8bb56b95be836bc00d60c5"><td class="mdescLeft"> </td><td class="mdescRight">Create a new <a class="el" href="structAttribute.html">Attribute</a>. <br /></td></tr>
<tr class="separator:a90566af01d8bb56b95be836bc00d60c5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6124728ac9f45169d48d4ad0a2734e8e" id="r_a6124728ac9f45169d48d4ad0a2734e8e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="attribute_8c.html#a6124728ac9f45169d48d4ad0a2734e8e">attribute_destroy</a> (<a class="el" href="structAttribute.html">Attribute</a> *attr)</td></tr>
<tr class="memdesc:a6124728ac9f45169d48d4ad0a2734e8e"><td class="mdescLeft"> </td><td class="mdescRight">Destroy an <a class="el" href="structAttribute.html">Attribute</a> and free its memory. <br /></td></tr>
<tr class="separator:a6124728ac9f45169d48d4ad0a2734e8e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abf605ec06c2893a3ec8069359146a2fd" id="r_abf605ec06c2893a3ec8069359146a2fd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="attribute_8c.html#abf605ec06c2893a3ec8069359146a2fd">attribute_print</a> (const <a class="el" href="structAttribute.html">Attribute</a> *attr)</td></tr>
<tr class="memdesc:abf605ec06c2893a3ec8069359146a2fd"><td class="mdescLeft"> </td><td class="mdescRight">Print an <a class="el" href="structAttribute.html">Attribute</a> to stdout. <br /></td></tr>
<tr class="separator:abf605ec06c2893a3ec8069359146a2fd"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="structAttribute.html">Attribute</a> implementation for the Relational Algebra Engine. </p>
<p>Handles creation, destruction, and printing of attributes, which are name-value pairs used as the basic building blocks of tuples in the relational model. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a90566af01d8bb56b95be836bc00d60c5" name="a90566af01d8bb56b95be836bc00d60c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90566af01d8bb56b95be836bc00d60c5">◆ </a></span>attribute_create()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structAttribute.html">Attribute</a> * attribute_create </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="attribute_8h.html#a349a9cde14be8097df865ba0469c0ab2">AttributeType</a> </td>
<td class="paramname"><em>type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>value</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new <a class="el" href="structAttribute.html">Attribute</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>Name of the attribute (copied). </td></tr>
<tr><td class="paramname">type</td><td>Type of the attribute (see AttributeType). </td></tr>
<tr><td class="paramname">value</td><td>Pointer to the value (ownership is taken). </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Pointer to the new <a class="el" href="structAttribute.html">Attribute</a>, or NULL on failure. </dd></dl>
</div>
</div>
<a id="a6124728ac9f45169d48d4ad0a2734e8e" name="a6124728ac9f45169d48d4ad0a2734e8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6124728ac9f45169d48d4ad0a2734e8e">◆ </a></span>attribute_destroy()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void attribute_destroy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structAttribute.html">Attribute</a> * </td>
<td class="paramname"><em>attr</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Destroy an <a class="el" href="structAttribute.html">Attribute</a> and free its memory. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">attr</td><td>Pointer to the <a class="el" href="structAttribute.html">Attribute</a> to destroy. Safe to pass NULL. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="abf605ec06c2893a3ec8069359146a2fd" name="abf605ec06c2893a3ec8069359146a2fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf605ec06c2893a3ec8069359146a2fd">◆ </a></span>attribute_print()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void attribute_print </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structAttribute.html">Attribute</a> * </td>
<td class="paramname"><em>attr</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Print an <a class="el" href="structAttribute.html">Attribute</a> to stdout. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">attr</td><td>Pointer to the <a class="el" href="structAttribute.html">Attribute</a> to print. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>