BitMagic-C++
Data Structures | Public Types | Public Member Functions | Static Protected Member Functions | Protected Attributes
bm::sv_serialization_plan_builder< SV > Class Template Reference

Parallel plan builder for succinct sparse vector serialization. More...

#include <bmsparsevec_parallel.h>

Collaboration diagram for bm::sv_serialization_plan_builder< SV >:
Collaboration graph
[legend]

Data Structures

struct  serialization_params
 
struct  task_batch
 

Public Types

typedef SV sparse_vector_type
 
typedef SV::bvector_type bvector_type
 
typedef SV::size_type size_type
 
typedef bvector_type::allocator_type allocator_type
 
typedef bm::bv_ref_vector< bvector_typebv_ref_vector_type
 
typedef bm::xor_sim_model< bvector_typexor_sim_model_type
 

Public Member Functions

 sv_serialization_plan_builder ()
 
void set_bookmarks (bool enable, unsigned bm_interval=256) BMNOEXCEPT
  More...
 
void set_xor_ref (const bv_ref_vector_type *bv_ref_ptr) BMNOEXCEPT
  More...
 
void set_sim_model (const xor_sim_model_type *sim_model) BMNOEXCEPT
  More...
 
void build_plan (task_batch &batch, sparse_vector_serial_layout< SV > &sv_layout, const sparse_vector_type &sv)
  More...
 

Static Protected Member Functions

static void * task_run (void *argp)
 Task execution Entry Point. More...
 
static void * task_run_final (void *argp)
 

Protected Attributes

serialization_params s_params_
  More...
 

Detailed Description

template<typename SV>
class bm::sv_serialization_plan_builder< SV >

Parallel plan builder for succinct sparse vector serialization.

See also
sparse_vector_serializer

Definition at line 158 of file bmsparsevec_parallel.h.

Member Function Documentation

◆ build_plan()

template<typename SV >
void bm::sv_serialization_plan_builder< SV >::build_plan ( task_batch batch,
sparse_vector_serial_layout< SV > &  sv_layout,
const sparse_vector_type sv 
)
inline

◆ set_bookmarks()

template<typename SV >
void bm::sv_serialization_plan_builder< SV >::set_bookmarks ( bool  enable,
unsigned  bm_interval = 256 
)
inline

◆ set_sim_model()

template<typename SV >
void bm::sv_serialization_plan_builder< SV >::set_sim_model ( const xor_sim_model_type sim_model)
inline

◆ set_xor_ref()

template<typename SV >
void bm::sv_serialization_plan_builder< SV >::set_xor_ref ( const bv_ref_vector_type bv_ref_ptr)
inline

◆ task_run()

template<typename SV >
static void* bm::sv_serialization_plan_builder< SV >::task_run ( void *  argp)
inlinestaticprotected

Task execution Entry Point.

Definition at line 275 of file bmsparsevec_parallel.h.


The documentation for this class was generated from the following file: