BitMagic-C++: svsample08.cpp File Reference

BitMagic-C++

Typedefs | Functions
svsample08.cpp File Reference

Example: sparse_vector<> selective de-serialization (gather) and range deserialization. More...

`#include <iostream>`
`#include <vector>`
`#include "bm.h"`
`#include "bmsparsevec.h"`
`#include "bmsparsevec_serial.h"`
Include dependency graph for svsample08.cpp:

Go to the source code of this file.

## Typedefs
typedef bm::sparse_vector< unsigned, bm::bvector<> > | svector_u32

## Functions
template<typename SV >
void | PrintSV (const SV &sv)
| Print sparse vector content. More...
int | main (void)

## Detailed Description

Example: sparse_vector<> selective de-serialization (gather) and range deserialization.

See also
  strsvsample05.cpp

Definition in file svsample08.cpp.

## Typedef Documentation

## ◆ svector_u32

typedef bm::sparse_vector<unsigned, bm::bvector<> > svector_u32

Examples
  svsample08.cpp.

Definition at line 61 of file svsample08.cpp.

## Function Documentation

## ◆ main()

int main | ( | void |  | ) |

Examples
  svsample08.cpp.

Definition at line 63 of file svsample08.cpp.

References BM_DECLARE_TEMP_BLOCK, bm::sparse_vector_serial_layout< SV >::buf(), bm::sparse_vector_deserializer< SV >::deserialize(), bm::sparse_vector_deserializer< SV >::deserialize_range(), bm::sparse_vector< Val, BV >::get_back_inserter(), bm::sparse_vector< Val, BV >::optimize(), PrintSV(), bm::sparse_vector_serializer< SV >::serialize(), bm::bvector< Alloc >::set(), bm::sparse_vector_serializer< SV >::set_bookmarks(), and bm::use_null.

## ◆ PrintSV()

template<typename SV >

void PrintSV | ( | const SV & | sv | ) |

Print sparse vector content.

Examples
  svsample08.cpp.

Definition at line 46 of file svsample08.cpp.

Referenced by main().