Classes | Defines | Typedefs | Functions

vset.h File Reference

Class Vset: a dynamic set object. More...

#include <maloc/maloc_base.h>
#include <maloc/vnm.h>
#include <maloc/vmem.h>
Include dependency graph for vset.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sVset
 Contains public data members for Vset class. More...

Defines

#define Vset_num(thee)   ((thee)->numT)
 the global "T" counter -- how many "T"s in list
#define Vset_access(thee, i)
 Access an object in an arbitrary place in the list.
#define Vset_create(thee)
 Create an object on the end of the list.
#define Vset_first(thee)
 Return the first object in the set.
#define Vset_last(thee)
 Return the last object in the set.
#define Vset_next(thee)
 Return the next object in the set.
#define Vset_prev(thee)
 Return the prev object in the set.
#define Vset_peekFirst(thee)
 Return the first object in the set.
#define Vset_peekLast(thee)
 Return the last object in the set.
#define Vset_destroy(thee)
 Free up the object currently on the end of the list.

Typedefs

typedef struct sVset Vset
 Declaration of the Vset class as the Vset structure.

Functions

VsetVset_ctor (Vmem *vmem, const char *tname, int tsize, int tmaxNum, int ioKey)
 Construct the set object.
void Vset_dtor (Vset **thee)
 Destroy the set object.
char * Vset_createLast (Vset *thee)
 Create an object on the end of the list.
void Vset_destroyLast (Vset *thee)
 Free up the object currently on the end of the list.
void Vset_initData (Vset *thee)
 Initialize the Vset data (thee).
void Vset_reset (Vset *thee)
 Release all Ram controlled by this (thee) and re-initialize.
void Vset_check (Vset *thee, int *tnum, int *tsize, int *tVecUse, int *tVecMal, int *tVecOhd)
 Get and return the RAM Control Block (thee) information.
void Vset_memChk (Vset *thee)
 Print the exact current malloc usage.

Detailed Description

Class Vset: a dynamic set object.

Author:
Michael Holst
Note:
None
Version:
Id:
vset.h,v 1.20 2010/08/12 05:40:37 fetk Exp
Attention:
 *
 * MALOC = < Minimal Abstraction Layer for Object-oriented C >
 * Copyright (C) 1994-- Michael Holst
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 * 
 *