BitMagic-C++: rscsample03.cpp File Reference

BitMagic-C++

Typedefs | Functions
rscsample03.cpp File Reference

Example: bm::rsc_sparse_vector<>::const_iterator. More...

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

Go to the source code of this file.

## Typedefs
typedef bm::sparse_vector< unsigned, bm::bvector<> > | sparse_vector_u32
typedef bm::rsc_sparse_vector< unsigned, sparse_vector_u32 > | rsc_sparse_vector_u32

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

## Detailed Description

Example: bm::rsc_sparse_vector<>::const_iterator.

See also
  rscsample02.cpp

Definition in file rscsample03.cpp.

## Typedef Documentation

## ◆ rsc_sparse_vector_u32

typedef bm::rsc_sparse_vector<unsigned, sparse_vector_u32 > rsc_sparse_vector_u32

Examples
  rscsample03.cpp.

Definition at line 61 of file rscsample03.cpp.

## ◆ sparse_vector_u32

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

Examples
  rscsample03.cpp.

Definition at line 60 of file rscsample03.cpp.

## Function Documentation

## ◆ main()

int main | ( | void |  | ) |

Examples
  rscsample03.cpp.

Definition at line 64 of file rscsample03.cpp.

References bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::add_null(), bm::rsc_sparse_vector< Val, SV >::const_iterator::advance(), bm::rsc_sparse_vector< Val, SV >::get_back_inserter(), bm::rsc_sparse_vector< Val, SV >::get_const_iterator(), bm::rsc_sparse_vector< Val, SV >::const_iterator::go_to(), bm::rsc_sparse_vector< Val, SV >::const_iterator::is_null(), PrintSV(), bm::rsc_sparse_vector< Val, SV >::sync(), bm::rsc_sparse_vector< Val, SV >::const_iterator::valid(), and bm::rsc_sparse_vector< Val, SV >::const_iterator::value().

## ◆ PrintSV()

template<typename SV >

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

Print sparse vector content.

Examples
  rscsample03.cpp.

Definition at line 44 of file rscsample03.cpp.

Referenced by main().