taskrambler  0.1.9
Web server and task management solution.
tree.c File Reference
#include <stdarg.h>
#include "tree.h"
#include "class.h"
+ Include dependency graph for tree.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

Functions

static int treeCtor (void *_this, va_list *params)
 
static void treeDtor (void *_this)
 
 INIT_IFACE (Class, treeCtor, treeDtor, NULL)
 
 CREATE_CLASS (Tree, NULL, IFACE(Class))
 

Detailed Description

Author
Georg Hopp

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file tree.c.

Macro Definition Documentation

#define _GNU_SOURCE

Definition at line 23 of file tree.c.

Function Documentation

CREATE_CLASS ( Tree  ,
NULL  ,
IFACE(Class)   
)
INIT_IFACE ( Class  ,
treeCtor  ,
treeDtor  ,
NULL   
)
static int treeCtor ( void *  _this,
va_list *  params 
)
static

Definition at line 32 of file tree.c.

References rbRed.

33 {
34  Tree this = _this;
35 
36  this->data = va_arg(*params, void *);
37  this->color = rbRed;
38  this->parent = NULL;
39  this->left = NULL;
40  this->right = NULL;
41 
42  return 0;
43 }
Definition: tree.h:115
static void treeDtor ( void *  _this)
static

Definition at line 47 of file tree.c.

48 {
49 }