OKlibrary  0.2.1.6
ubcsat-types.h File Reference

Corrected definition of fundamental types for UBCSAT. More...

#include <stdbool.h>
#include <float.h>
#include <stdint.h>

Go to the source code of this file.

Classes

struct  typeITEM
struct  typeITEMLIST
struct  typeTRIGGER
union  typePARAMETERDEFAULT
struct  typeALGPARM
struct  ALGPARAMETERS
struct  typeALGORITHM
struct  typeREPORT
struct  typeREPORTCOL
struct  typeREPORTSTAT

Defines

#define BOOL   bool
#define TRUE   true
#define FALSE   false
#define FLOAT   double
#define FLOATMAX   (1E+300)
#define UINT32   uint32_t
#define SINT32   int32_t
#define PROBABILITY   UINT32

Typedefs

typedef void(* FXNPTR )()
typedef void(* CALLBACKPTR )(UINT32, const char *sItem)
typedef UINT32(* FXNRAND32 )()
typedef struct typeITEM ITEM
typedef struct typeITEMLIST ITEMLIST
typedef struct typeTRIGGER TRIGGER
typedef union typePARAMETERDEFAULT PARAMETERDEFAULT
typedef struct typeALGPARM ALGPARM
typedef struct ALGPARAMETERS ALGPARMLIST
typedef struct typeALGORITHM ALGORITHM
typedef struct typeREPORT REPORT
typedef struct typeREPORTCOL REPORTCOL
typedef struct typeREPORTSTAT REPORTSTAT

Enumerations

enum  EVENTPOINT {
  PostParameters, ReadInInstance, CreateData, CreateStateInfo,
  PreStart, PreRun, CheckRestart, InitData,
  InitStateInfo, PostInit, PreStep, ChooseCandidate,
  PreFlip, FlipCandidate, UpdateStateInfo, PostFlip,
  PostStep, StepCalculations, CheckTerminate, RunCalculations,
  PostRun, FinalCalculations, FinalReports, NUMEVENTPOINTS
}
enum  PARMTYPE {
  PTypeUInt, PTypeSInt, PTypeBool, PTypeString,
  PTypeProbability, PTypeFloat, PTypeReport
}
enum  CDATATYPE { DTypeUInt, DTypeSInt, DTypeFloat }
enum  COLTYPE {
  ColTypeFinal, ColTypeMean, ColTypeStddev, ColTypeCV,
  ColTypeMin, ColTypeMax, ColTypeFinalDivStep, ColTypeFinalDivStep100
}

Detailed Description

Corrected definition of fundamental types for UBCSAT.

Definition in file ubcsat-types.h.


Define Documentation

#define BOOL   bool

Definition at line 41 of file ubcsat-types.h.

Referenced by ActivateTrigger(), and ParseParameters().

#define FLOATMAX   (1E+300)

Definition at line 50 of file ubcsat-types.h.

Referenced by ColumnInit().

#define PROBABILITY   UINT32

Definition at line 62 of file ubcsat-types.h.

Referenced by FloatToProb(), ParseParameters(), PrintAlgParmSettings(), and SetDefaultParms().


Typedef Documentation

typedef struct typeALGORITHM ALGORITHM
typedef struct typeALGPARM ALGPARM
typedef struct ALGPARAMETERS ALGPARMLIST
typedef void(* CALLBACKPTR)(UINT32, const char *sItem)

Definition at line 124 of file ubcsat-types.h.

typedef void(* FXNPTR)()

Definition at line 123 of file ubcsat-types.h.

typedef UINT32(* FXNRAND32)()

Definition at line 125 of file ubcsat-types.h.

typedef struct typeITEM ITEM
typedef struct typeITEMLIST ITEMLIST
typedef struct typeREPORT REPORT
typedef struct typeREPORTCOL REPORTCOL
typedef struct typeREPORTSTAT REPORTSTAT
typedef struct typeTRIGGER TRIGGER

Enumeration Type Documentation

enum CDATATYPE
Enumerator:
DTypeUInt 
DTypeSInt 
DTypeFloat 

Definition at line 106 of file ubcsat-types.h.

enum COLTYPE
Enumerator:
ColTypeFinal 
ColTypeMean 
ColTypeStddev 
ColTypeCV 
ColTypeMin 
ColTypeMax 
ColTypeFinalDivStep 
ColTypeFinalDivStep100 

Definition at line 112 of file ubcsat-types.h.

enum EVENTPOINT
Enumerator:
PostParameters 
ReadInInstance 
CreateData 
CreateStateInfo 
PreStart 
PreRun 
CheckRestart 
InitData 
InitStateInfo 
PostInit 
PreStep 
ChooseCandidate 
PreFlip 
FlipCandidate 
UpdateStateInfo 
PostFlip 
PostStep 
StepCalculations 
CheckTerminate 
RunCalculations 
PostRun 
FinalCalculations 
FinalReports 
NUMEVENTPOINTS 

Definition at line 68 of file ubcsat-types.h.

enum PARMTYPE
Enumerator:
PTypeUInt 
PTypeSInt 
PTypeBool 
PTypeString 
PTypeProbability 
PTypeFloat 
PTypeReport 

Definition at line 96 of file ubcsat-types.h.