Mir 1.0
Mir application programming interface

Functions

mirkl_error_tmir_ivc_instance_create (mirkl_object_t **obj, mirkl_size_t nVals, mirkl_int64_t *vals, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool)
 
mirkl_error_tmir_ivc_set_data (mirkl_object_t *obj, mirkl_size_t nVals, mirkl_int64_t *vals)
 
mirkl_error_tmir_ivc_get_data (mirkl_object_t *obj, mirkl_size_t *nVals, mirkl_int64_t **vals)
 
mirkl_error_tmir_ivc_get_data_ptr (mirkl_object_t *obj, mirkl_size_t *nVals, mirkl_int64_t **vals)
 
mirkl_error_tmir_ivc_append_number (mirkl_object_t *obj, mirkl_int64_t val)
 
mirkl_error_tmir_ivc_resize (mirkl_object_t *obj, mirkl_size_t newsize)
 

Variables

mirkl_object_t * MirIVectorClass
 Integer Vector class.
 

Detailed Description

Function Documentation

◆ mir_ivc_append_number()

mirkl_error_t * mir_ivc_append_number ( mirkl_object_t *  obj,
mirkl_int64_t  val 
)

Appends number to the IVector object..

Parameters
objObject to which the number should be appended.
valNumber to append.

◆ mir_ivc_get_data()

mirkl_error_t * mir_ivc_get_data ( mirkl_object_t *  obj,
mirkl_size_t *  nVals,
mirkl_int64_t **  vals 
)

Getting data from IVector object..

Parameters
objObject from which the data to be retrieved.
nValsNumber of elements in vector on the output.
valsarray of values on the output. Warning: this buffer must be freed by user!
Note
This function can be used to query only the length of the vector by sending NULL as the last parameter.

◆ mir_ivc_get_data_ptr()

mirkl_error_t * mir_ivc_get_data_ptr ( mirkl_object_t *  obj,
mirkl_size_t *  nVals,
mirkl_int64_t **  vals 
)

Getting pointer to the data of IVector instance for fast access.

Parameters
objObject from which the data to be retrieved.
nValsNumber of elements in vector on the output.
valsarray of values on the output.
Note
This function can be used to query only the length of the vector by sending NULL as the last parameter.

◆ mir_ivc_instance_create()

mirkl_error_t * mir_ivc_instance_create ( mirkl_object_t **  obj,
mirkl_size_t  nVals,
mirkl_int64_t *  vals,
mirkl_uint32_t  flags,
mir_prsdata_t *  pp,
apr_pool_t *  pool,
apr_pool_t *  tmp_pool 
)

Creation of IVector object.

Parameters
[out]objReference to the created object.
nValsNumber of values for initialization.
valsvector of values for initialization.
flagsFlags of the object.
ppReference to the parser data structure.
poolThe pool to use for allocations of object structures. Should be valid as long as the created object lives.
tmp_poolThe pool for temporary allocations. Can be deleted after calling this function.

◆ mir_ivc_resize()

mirkl_error_t * mir_ivc_resize ( mirkl_object_t *  obj,
mirkl_size_t  newsize 
)

Resizes ivec.