Data Structures | |
struct | _it_object_ |
Defines | |
#define | LIBIT_VERSION(a, b, c) ((a << 16) + ((b) << 8) + (c)) |
#define | LIBIT_VERSION_CODE LIBIT_VERSION(0,2,3) |
#define | INT_MAX 2147483647 |
#define | INT_MIN (-INT_MAX - 1) |
#define | IT_EINVAL 1 |
#define | IT_ENOMEM 2 |
#define | IT_ENOENT 3 |
#define | has_u64() (sizeof(unsigned long) == 8) |
#define | it_function(name) |
#define | it_ifunction(name) |
#define | it_vfunction(name) |
#define | it_function_args(f) struct _##f##_ |
#define | IT_FUNCTION(f) ((it_function_t) f) |
#define | IT_IFUNCTION(f) ((it_ifunction_t) f) |
#define | IT_VFUNCTION(f) ((it_vfunction_t) f) |
#define | IT_MAGIC_it_object_t 0x81e73650 |
#define | IT_MAGIC_it_quantizer_t 0x8807fc6c |
#define | IT_MAGIC_it_scalar_quantizer_t 0x48f58421 |
#define | IT_MAGIC_it_uniform_quantizer_t 0x4a378552 |
#define | IT_MAGIC_it_trellis_coded_quantizer_t 0x0a1d2ed3 |
#define | IT_MAGIC_it_convolutional_code_t 0x93f58bf7 |
#define | IT_MAGIC_it_transform2D_t 0x46e2af32 |
#define | IT_MAGIC_it_wavelet2D_t 0xe5c8ef1a |
#define | IT_MAGIC_it_transform_t 0xaa709ce4 |
#define | IT_MAGIC_it_wavelet_t 0x8ba63118 |
#define | IT_MAGIC_it_separable2D_t 0x299270ff |
#define | IT_MAGIC_it_fourier_t 0xe0caafee |
#define | it_set_magic(object, type_t) do { object->magic = IT_MAGIC_##type_t; IT_OBJECT(object)->type = IT_MAGIC_##type_t; } while(0) |
#define | it_check_magic(object, type_t) (object->magic == IT_MAGIC_##type_t) |
#define | it_check_type(object, type_t) (IT_OBJECT(object)->type == IT_MAGIC_##type_t) |
#define | IT_CAST(type_t, x) ((type_t *) (x)) |
#define | IT_OBJECT(x) IT_CAST(it_object_t, x) |
#define | it_extends(type_t) type_t super; it_magic_t magic |
#define | it_new(type_t) type_t##_instanciate((type_t *) malloc(sizeof(type_t))) |
#define | it_new_va(type_t) type_t##_instanciate((type_t *) malloc(sizeof(type_t)), |
#define | it_va void *)0 |
#define | it_instanciate(type_t) type_t * type_t##_instanciate(type_t *it_this, ...) |
#define | it_construct(type_t) type_t##_instanciate((type_t *) it_this) |
#define | it_construct_va(type_t) type_t##_instanciate((type_t *) it_this, |
#define | it_delete(object) IT_OBJECT(object)->destructor(IT_OBJECT(object)) |
#define | it_overloaded(method) super_##method |
#define | it_overload(object, type, method, function) |
#define | it_new_args_start() |
#define | it_new_args_stop() va_end(args) |
#define | it_new_args_next(type_t) va_arg(args, type_t) |
Typedefs | |
typedef unsigned char | byte |
typedef unsigned char | __it_u8 |
typedef unsigned short | __it_u16 |
typedef unsigned int | __it_u32 |
typedef unsigned long | __it_u64 |
typedef int | idx_t |
typedef void * | it_args_t |
typedef double(* | it_function_t )(double, it_args_t) |
typedef int(* | it_ifunction_t )(int, it_args_t) |
typedef double(* | it_vfunction_t )(double *, it_args_t) |
typedef unsigned int | it_magic_t |
typedef struct _it_object_ | it_object_t |
Functions | |
static idx_t | __vec_idx_warnoff__ (void) |
static | it_instanciate (it_object_t) |
Variables | |
static const idx_t | end = (idx_t) INT_MIN |
static const idx_t | NULL_INDEX = (idx_t) INT_MIN + 1 |
#define INT_MAX 2147483647 |
Definition at line 45 of file types.h.
Referenced by imat_min_index_submatrix(), ivec_cum_sum(), ivec_min(), ivec_min_index(), ivec_sum(), ivec_sum_between(), and vec_distance_kullback_leibler().
#define INT_MIN (-INT_MAX - 1) |
Definition at line 46 of file types.h.
Referenced by imat_max_index_submatrix(), ivec_cum_sum(), ivec_max(), ivec_max_index(), ivec_sum(), and ivec_sum_between().
#define IT_CAST | ( | type_t, | |||
x | ) | ((type_t *) (x)) |
#define it_check_magic | ( | object, | |||
type_t | ) | (object->magic == IT_MAGIC_##type_t) |
#define it_check_type | ( | object, | |||
type_t | ) | (IT_OBJECT(object)->type == IT_MAGIC_##type_t) |
#define it_construct | ( | type_t | ) | type_t##_instanciate((type_t *) it_this) |
#define it_construct_va | ( | type_t | ) | type_t##_instanciate((type_t *) it_this, |
#define it_delete | ( | object | ) | IT_OBJECT(object)->destructor(IT_OBJECT(object)) |
Definition at line 220 of file types.h.
Referenced by it_dwt(), it_dwt2D(), it_idwt(), it_idwt2D(), main(), and trellis_coded_quantizer_destructor().
#define IT_EINVAL 1 |
Definition at line 54 of file types.h.
Referenced by __wavelet2D_merge(), __wavelet2D_split(), __wavelet_flatten(), __wavelet_merge(), __wavelet_split(), and __wavelet_unflatten().
#define it_extends | ( | type_t | ) | type_t super; it_magic_t magic |
#define IT_FUNCTION | ( | f | ) | ((it_function_t) f) |
#define it_function | ( | name | ) |
Value:
it_function_args(name); \ double __##name(double x, it_function_args(name) *it_this); \ it_function_t name = IT_FUNCTION(__##name); \ double __##name(double x, it_function_args(name) *it_this)
#define it_function_args | ( | f | ) | struct _##f##_ |
Definition at line 132 of file types.h.
Referenced by it_differentiate(), it_function(), it_integrate(), lloyd_max(), main(), and poly_eval().
#define IT_IFUNCTION | ( | f | ) | ((it_ifunction_t) f) |
#define it_ifunction | ( | name | ) |
Value:
it_function_args(name); \ int __##name(int x, it_function_args(name) *it_this); \ it_ifunction_t name = IT_IFUNCTION(__##name); \ int __##name(int x, it_function_args(name) *it_this)
#define it_instanciate | ( | type_t | ) | type_t * type_t##_instanciate(type_t *it_this, ...) |
#define IT_MAGIC_it_object_t 0x81e73650 |
#define it_new | ( | type_t | ) | type_t##_instanciate((type_t *) malloc(sizeof(type_t))) |
#define it_new_args_next | ( | type_t | ) | va_arg(args, type_t) |
#define it_new_args_start | ( | ) |
Value:
va_list args; \
va_start(args, it_this); \
(void) va_arg(args, void *)
Definition at line 247 of file types.h.
Referenced by it_instanciate().
#define it_new_args_stop | ( | ) | va_end(args) |
#define it_new_va | ( | type_t | ) | type_t##_instanciate((type_t *) malloc(sizeof(type_t)), |
Definition at line 212 of file types.h.
Referenced by __it_separable2D_new(), __it_trellis_coded_quantizer_new_partition(), it_convolutional_code_new(), it_scalar_quantizer_new_start_index(), it_uniform_quantizer_new_from_center(), it_wavelet2D_new(), and it_wavelet_new().
#define IT_OBJECT | ( | x | ) | IT_CAST(it_object_t, x) |
#define it_overload | ( | object, | |||
type, | |||||
method, | |||||
function | ) |
Value:
do { \ object->it_overloaded(method) = IT_CAST(type, it_this)->method; \ IT_CAST(type, it_this)->method = function; \ } while(0)
Definition at line 224 of file types.h.
Referenced by it_instanciate().
#define it_set_magic | ( | object, | |||
type_t | ) | do { object->magic = IT_MAGIC_##type_t; IT_OBJECT(object)->type = IT_MAGIC_##type_t; } while(0) |
#define it_va void *)0 |
Definition at line 213 of file types.h.
Referenced by __it_separable2D_new(), __it_trellis_coded_quantizer_new_partition(), it_convolutional_code_new(), it_instanciate(), it_scalar_quantizer_new_start_index(), it_uniform_quantizer_new_from_center(), it_wavelet2D_new(), and it_wavelet_new().
#define IT_VFUNCTION | ( | f | ) | ((it_vfunction_t) f) |
#define it_vfunction | ( | name | ) |
Value:
it_function_args(name); \ double __##name(vec v, it_function_args(name) *it_this); \ it_vfunction_t name = IT_VFUNCTION(__##name); \ double __##name(vec v, it_function_args(name) *it_this)
#define LIBIT_VERSION | ( | a, | |||
b, | |||||
c | ) | ((a << 16) + ((b) << 8) + (c)) |
typedef double(* it_function_t)(double, it_args_t) |
typedef int(* it_ifunction_t)(int, it_args_t) |
typedef unsigned int it_magic_t |
typedef struct _it_object_ it_object_t |
typedef double(* it_vfunction_t)(double *, it_args_t) |
static idx_t __vec_idx_warnoff__ | ( | void | ) | [inline, static] |
static it_instanciate | ( | it_object_t | ) | [inline, static] |
const idx_t NULL_INDEX = (idx_t) INT_MIN + 1 [static] |
Definition at line 91 of file types.h.
Referenced by __vec_idx_warnoff__(), bvec_find_first(), cvec_find_first(), it_instanciate(), ivec_find_first(), ivec_max_index(), ivec_min_index(), vec_find_first(), vec_max_index(), and vec_min_index().
|
|