Home Libraries Author Links

dsettst.c File Reference


Detailed Description

Implementation of a console program demonstrating the usage and testing the implementation of abstract set, multiset, map and multimap types modelling associative containers for objects of configurable element types.

Version:
1.12-r341
Date:
2007-12-04 08:40:24 (Tom)
Author:
Tom Michaelis
SysToMath
Wittelsbacherstr. 7
D-80469 Munich
Contact:
http://www.SysToMath.com
mailto:Tom.Michaelis@SysToMath.com
This C program file contains the implementation of data types and functions realizing tests of abstract set, multiset, map and multimap types modelling associative containers for objects of configurable element types. They are specified in the C header file dset.h belonging to the SysToMath base library libstmbase.

Definition in file dsettst.c.

Go to the source code of this file.

Defines

#define dsetAssert(cond)
 Terminate the program if a condition is violated.

Functions

static void dsetPrintf (const char *format,...)
 Print formatted on stdout and/or an an additional stream.
static void dsetShowf (const char *format,...)
 Print formatted on stdout and reset the cursor.
static int randomInt (int minval, int maxval)
 Random number generation.
int main (int argc, char **argv)
 Main function implementing the command dsettst.
static int elemCmp (const int *pEl1, const int *pEl2)
 Element comparison function for the abstract container types intStmSet and intStmMultiSet.
static int keyCmp (int key1, int key2)
 Key comparison function for the abstract container types NrStmMap and MultiNrStmMultiMap.

Variables

static const char * man []
 Man page.
static StmBool silent = StmFalse
 Silent flag.
static FILE * os = NULL
 Output file stream.


© Copyright Tom Michaelis 2002-2007

Distributed under the SysToMath Software License (See the accompanying file license.txt or a copy at www.SysToMath.com).