Macros | Typedefs | Enumerations | Functions | Variables
testqset_r.c File Reference
#include "libqhull_r/user_r.h"
#include "libqhull_r/qset_r.h"
#include "libqhull_r/mem_r.h"
#include "libqhull_r/libqhull_r.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for testqset_r.c:

Go to the source code of this file.

Macros

#define fmax_(a, b)   ( ( a ) < ( b ) ? ( b ) : ( a ) )
 
#define FOREACHint4_(ints)   FOREACHsetelement_( i2T, ints, i4)
 
#define FOREACHint_(ints)   FOREACHsetelement_( i2T, ints, i2)
 
#define FOREACHint_i_(qh, ints)   FOREACHsetelement_i_( qh, i2T, ints, i2)
 
#define FOREACHintreverse12_(ints)   FOREACHsetelementreverse12_( i2T, ints, i2)
 
#define FOREACHintreverse_(qh, ints)   FOREACHsetelementreverse_( qh, i2T, ints, i2)
 
#define MAXerrorCount   100 /* quit after n errors */
 

Typedefs

typedef int i2T
 

Enumerations

enum  { MAXint = 0x7fffffff }
 

Functions

void checkSetContents (qhT *qh, const char *name, setT *set, int count, int rangeA, int rangeB, int rangeC)
 
int log_i (qhT *qh, setT *set, const char *s, int i, int numInts, int checkEvery)
 
int main (int argc, char **argv)
 
void qh_errexit (qhT *qh, int exitcode, facetT *f, ridgeT *r)
 
void qh_exit (int exitcode)
 
void qh_fprintf (qhT *qh, FILE *fp, int msgcode, const char *fmt,...)
 
void qh_fprintf_stderr (int msgcode, const char *fmt,...)
 
void qh_free (void *mem)
 
void * qh_malloc (size_t size)
 
void readOptions (qhT *qh, int argc, char **argv, const char *promptstr, int *numInts, int *checkEvery, int *traceLevel)
 
void setupMemory (qhT *qh, int tracelevel, int numInts, int **intarray)
 
void testSetappendSet (qhT *qh, int numInts, int *intarray, int checkEvery)
 
void testSetappendSettruncate (qhT *qh, int numInts, int *intarray, int checkEvery)
 
void testSetcompactCopy (qhT *qh, int numInts, int *intarray, int checkEvery)
 
void testSetdelSetadd (qhT *qh, int numInts, int *intarray, int checkEvery)
 
void testSetdelsortedEtc (qhT *qh, int numInts, int *intarray, int checkEvery)
 
void testSetequalInEtc (qhT *qh, int numInts, int *intarray, int checkEvery)
 
void testSetlastEtc (qhT *qh, int numInts, int *intarray, int checkEvery)
 
void testSettemp (qhT *qh, int numInts, int *intarray, int checkEvery)
 

Variables

int error_count = 0
 
char prompt []
 

Macro Definition Documentation

◆ fmax_

#define fmax_ (   a,
 
)    ( ( a ) < ( b ) ? ( b ) : ( a ) )

Definition at line 113 of file testqset_r.c.

◆ FOREACHint4_

#define FOREACHint4_ (   ints)    FOREACHsetelement_( i2T, ints, i4)

Definition at line 88 of file testqset_r.c.

◆ FOREACHint_

#define FOREACHint_ (   ints)    FOREACHsetelement_( i2T, ints, i2)

Definition at line 87 of file testqset_r.c.

◆ FOREACHint_i_

#define FOREACHint_i_ (   qh,
  ints 
)    FOREACHsetelement_i_( qh, i2T, ints, i2)

Definition at line 89 of file testqset_r.c.

◆ FOREACHintreverse12_

#define FOREACHintreverse12_ (   ints)    FOREACHsetelementreverse12_( i2T, ints, i2)

Definition at line 91 of file testqset_r.c.

◆ FOREACHintreverse_

#define FOREACHintreverse_ (   qh,
  ints 
)    FOREACHsetelementreverse_( qh, i2T, ints, i2)

Definition at line 90 of file testqset_r.c.

◆ MAXerrorCount

#define MAXerrorCount   100 /* quit after n errors */

Definition at line 85 of file testqset_r.c.

Typedef Documentation

◆ i2T

typedef int i2T

Definition at line 84 of file testqset_r.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAXint 

Definition at line 93 of file testqset_r.c.

Function Documentation

◆ checkSetContents()

void checkSetContents ( qhT qh,
const char *  name,
setT set,
int  count,
int  rangeA,
int  rangeB,
int  rangeC 
)

Definition at line 767 of file testqset_r.c.

◆ log_i()

int log_i ( qhT qh,
setT set,
const char *  s,
int  i,
int  numInts,
int  checkEvery 
)

Definition at line 724 of file testqset_r.c.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 186 of file testqset_r.c.

◆ qh_errexit()

void qh_errexit ( qhT qh,
int  exitcode,
facetT f,
ridgeT r 
)

Definition at line 126 of file testqset_r.c.

◆ qh_exit()

void qh_exit ( int  exitcode)

Definition at line 38 of file usermem.c.

◆ qh_fprintf()

void qh_fprintf ( qhT qh,
FILE *  fp,
int  msgcode,
const char *  fmt,
  ... 
)

Definition at line 136 of file testqset_r.c.

◆ qh_fprintf_stderr()

void qh_fprintf_stderr ( int  msgcode,
const char *  fmt,
  ... 
)

Definition at line 57 of file usermem.c.

◆ qh_free()

void qh_free ( void *  mem)

Definition at line 77 of file usermem.c.

◆ qh_malloc()

void* qh_malloc ( size_t  size)

Definition at line 90 of file usermem.c.

◆ readOptions()

void readOptions ( qhT qh,
int  argc,
char **  argv,
const char *  promptstr,
int *  numInts,
int *  checkEvery,
int *  traceLevel 
)

Definition at line 229 of file testqset_r.c.

◆ setupMemory()

void setupMemory ( qhT qh,
int  tracelevel,
int  numInts,
int **  intarray 
)

Definition at line 278 of file testqset_r.c.

◆ testSetappendSet()

void testSetappendSet ( qhT qh,
int  numInts,
int *  intarray,
int  checkEvery 
)

Definition at line 380 of file testqset_r.c.

◆ testSetappendSettruncate()

void testSetappendSettruncate ( qhT qh,
int  numInts,
int *  intarray,
int  checkEvery 
)

Definition at line 305 of file testqset_r.c.

◆ testSetcompactCopy()

void testSetcompactCopy ( qhT qh,
int  numInts,
int *  intarray,
int  checkEvery 
)

Definition at line 418 of file testqset_r.c.

◆ testSetdelSetadd()

void testSetdelSetadd ( qhT qh,
int  numInts,
int *  intarray,
int  checkEvery 
)

Definition at line 353 of file testqset_r.c.

◆ testSetdelsortedEtc()

void testSetdelsortedEtc ( qhT qh,
int  numInts,
int *  intarray,
int  checkEvery 
)

Definition at line 447 of file testqset_r.c.

◆ testSetequalInEtc()

void testSetequalInEtc ( qhT qh,
int  numInts,
int *  intarray,
int  checkEvery 
)

Definition at line 502 of file testqset_r.c.

◆ testSetlastEtc()

void testSetlastEtc ( qhT qh,
int  numInts,
int *  intarray,
int  checkEvery 
)

Definition at line 612 of file testqset_r.c.

◆ testSettemp()

void testSettemp ( qhT qh,
int  numInts,
int *  intarray,
int  checkEvery 
)

Definition at line 682 of file testqset_r.c.

Variable Documentation

◆ error_count

int error_count = 0

Definition at line 110 of file testqset_r.c.

◆ prompt

char prompt[]
Initial value:
= "testqset_r N [M] [T5] -- Test reentrant qset_r.c and mem_r.c\n\
\n\
If this test fails then reentrant Qhull will not work.\n\
\n\
Test qsets of 0..N integers with a check every M iterations (default ~log10)\n\
Additional checking and logging if M is 1\n\
\n\
T5 turns on memory logging (qset does not log)\n\
\n\
For example:\n\
testqset_r 10000\n\
"

Definition at line 97 of file testqset_r.c.



hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:16