Defines | Typedefs | Enumerations | Functions
Miscellaneous definitions and functions
CRFSuite C API

Defines

#define CRFSUITE_VERSION   "0.12"
 Version number of CRFSuite library.
#define CRFSUITE_COPYRIGHT   "Copyright (c) 2007-2011 Naoaki Okazaki"
 Copyright string of CRFSuite library.
#define FLOAT_MAX   DBL_MAX
 Maximum value of a float value.

Typedefs

typedef double floatval_t
 Type of a float value.

Enumerations

enum  {
  CRFSUITE_SUCCESS = 0, CRFSUITEERR_UNKNOWN = 0x80000000, CRFSUITEERR_OUTOFMEMORY, CRFSUITEERR_NOTSUPPORTED,
  CRFSUITEERR_INCOMPATIBLE, CRFSUITEERR_INTERNAL_LOGIC, CRFSUITEERR_OVERFLOW, CRFSUITEERR_NOTIMPLEMENTED
}
 Status codes. More...

Functions

int crfsuite_interlocked_increment (int *count)
 Increments the value of the integer variable as an atomic operation.
int crfsuite_interlocked_decrement (int *count)
 Decrements the value of the integer variable as an atomic operation.

Define Documentation

#define CRFSUITE_COPYRIGHT   "Copyright (c) 2007-2011 Naoaki Okazaki"

Copyright string of CRFSuite library.

#define CRFSUITE_VERSION   "0.12"

Version number of CRFSuite library.

#define FLOAT_MAX   DBL_MAX

Maximum value of a float value.


Typedef Documentation

typedef double floatval_t

Type of a float value.


Enumeration Type Documentation

anonymous enum

Status codes.

Enumerator:
CRFSUITE_SUCCESS 

Success.

CRFSUITEERR_UNKNOWN 

Unknown error occurred.

CRFSUITEERR_OUTOFMEMORY 

Insufficient memory.

CRFSUITEERR_NOTSUPPORTED 

Unsupported operation.

CRFSUITEERR_INCOMPATIBLE 

Incompatible data.

CRFSUITEERR_INTERNAL_LOGIC 

Internal error.

CRFSUITEERR_OVERFLOW 

Overflow.

CRFSUITEERR_NOTIMPLEMENTED 

Not implemented.


Function Documentation

int crfsuite_interlocked_decrement ( int *  count)

Decrements the value of the integer variable as an atomic operation.

Parameters:
countThe pointer to the integer variable.
Returns:
The value after this decrement.
int crfsuite_interlocked_increment ( int *  count)

Increments the value of the integer variable as an atomic operation.

Parameters:
countThe pointer to the integer variable.
Returns:
The value after this increment.

Copyright (c) 2002-2011 by Naoaki Okazaki
Thu Aug 11 2011 12:37:05