taskrambler
0.1.8
Web server and task management solution.
|
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "class.h"
#include "utils/hash.h"
#include "utils/memory.h"
#include "commons.h"
#include "hash/value.h"
#include "hash/interface/hashable.h"
Go to the source code of this file.
Functions | |
static int | hashValueCtor (void *_this, va_list *params) |
static void | hashValueDtor (void *_this) |
static unsigned long | hashValueGetHash (void *_this) |
static void | hashValueHandleDouble (void *_this, void *_double) |
INIT_IFACE (Class, hashValueCtor, hashValueDtor, NULL) | |
INIT_IFACE (Hashable, hashValueGetHash, hashValueHandleDouble) | |
CREATE_CLASS (HashValue, NULL, IFACE(Class), IFACE(Hashable)) | |
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 hash/value.c.
|
static |
Definition at line 38 of file hash/value.c.
References memMalloc(), and sdbm().
|
static |
|
static |
Definition at line 75 of file hash/value.c.
|
static |
here we swap the internal data of both objects, effectively overwriting the old entry. We need not to free anything here as _double will be deleted afterwards anyway (
Definition at line 84 of file hash/value.c.
INIT_IFACE | ( | Class | , |
hashValueCtor | , | ||
hashValueDtor | , | ||
NULL | |||
) |
INIT_IFACE | ( | Hashable | , |
hashValueGetHash | , | ||
hashValueHandleDouble | |||
) |