Yet Another eXchange Tool 0.11.4
Loading...
Searching...
No Matches
xt_xmap_dist_dir_bucket_gen.c File Reference

Implements class hiding different bucket generators. More...

Include dependency graph for xt_xmap_dist_dir_bucket_gen.c:

Go to the source code of this file.

Functions

Xt_xmdd_bucket_gen xt_xmdd_bucket_gen_new (void)
 
void xt_xmdd_bucket_gen_delete (Xt_xmdd_bucket_gen gen)
 
void xt_xmdd_bucket_gen_define_interface (Xt_xmdd_bucket_gen gen, Xt_xmdd_bucket_gen_init_state init, Xt_xmdd_bucket_gen_destroy_state destroy, Xt_xmdd_bucket_gen_get_intersect_max_num get_intersect_max_num, Xt_xmdd_bucket_gen_next next, size_t gen_state_size, void *init_params)
 

Detailed Description

Implements class hiding different bucket generators.

Author
Jörg Behrens behre.nosp@m.ns@d.nosp@m.krz.d.nosp@m.e Moritz Hanke hanke.nosp@m.@dkr.nosp@m.z.de Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de

Definition in file xt_xmap_dist_dir_bucket_gen.c.

Function Documentation

◆ xt_xmdd_bucket_gen_define_interface()

void xt_xmdd_bucket_gen_define_interface ( Xt_xmdd_bucket_gen gen,
Xt_xmdd_bucket_gen_init_state init,
Xt_xmdd_bucket_gen_destroy_state destroy,
Xt_xmdd_bucket_gen_get_intersect_max_num get_intersect_max_num,
Xt_xmdd_bucket_gen_next next,
size_t gen_state_size,
void * init_params )

Define interface of bucket generator

Essentially, the generator needs to be able to enumerate all buckets used to form intersections. Conversely, this also means the generator only needs to produce buckets that actually can intersect and is permitted to skip buckets that won't intersect the requested type of list.

Parameters
[in,out]gengenerator interface object
[in]initThis function is called to set up the generator state.
[in]destroyThe destroy function cleans up the generator state. Can be zero, if no cleaning is needed.
[in]nextThe next function returns the next bucket and corresponding rank (ranks can be skipped when the intersection will be empty anyway). Any previously returned buckets become invalid.
[in]get_intersect_max_numThis function returns, for a given state the maximal number of buckets that will be generated
gen_state_sizenumber of bytes to allocate for each generator state
init_paramsglobal parameters passed to each invocation of the init function

Definition at line 71 of file xt_xmap_dist_dir_bucket_gen.c.

Here is the caller graph for this function:

◆ xt_xmdd_bucket_gen_delete()

void xt_xmdd_bucket_gen_delete ( Xt_xmdd_bucket_gen gen)

Definition at line 65 of file xt_xmap_dist_dir_bucket_gen.c.

Here is the caller graph for this function:

◆ xt_xmdd_bucket_gen_new()

Xt_xmdd_bucket_gen xt_xmdd_bucket_gen_new ( void )

Creates new, user-definable, bucket generator object

Returns
incomplete bucket generator interface object

Definition at line 59 of file xt_xmap_dist_dir_bucket_gen.c.