SDSL: Succinct Data Structure Library
A C++ template library for succinct data structures
 All Classes Namespaces Files Functions Variables Typedefs Friends
Public Member Functions
sdsl::select_support_dummy Class Reference

A dummy class for select. More...

#include <select_support_dummy.hpp>

Inherits sdsl::select_support.

List of all members.

Public Member Functions

 select_support_dummy (const int_vector< 1 > *v=NULL)
 select_support_dummy (const select_support_dummy &ss)
void init (const int_vector< 1 > *v=NULL)
 Initalization method for select_support.
const size_type select (size_type i) const
 Select function.
const size_type operator() (size_type i) const
 Alias for select(i).
size_type serialize (std::ostream &out, structure_tree_node *v=NULL, std::string name="") const
 Serialize the select_support to an out file stream.
void load (std::istream &in, const int_vector< 1 > *v=NULL)
 Load the select_support from an in file stream.
void set_vector (const int_vector< 1 > *v=NULL)
 This method sets the supported bit_vector.
select_support_dummyoperator= (const select_support_dummy &ss)
void swap (select_support_dummy &ss)
 Swap operator.
bool operator== (const select_support_dummy &ss) const
 Equality Operator.
bool operator!= (const select_support_dummy &ss) const
 Unequality Operator.

Detailed Description

A dummy class for select.


Member Function Documentation

void sdsl::select_support_dummy::init ( const int_vector< 1 > *  v = NULL) [virtual]

Initalization method for select_support.

Init takes no arguments and should be called before the first call to the select method if not

  • load is called to initialize the select_support or
  • the constructor is called with the pointer to the supported bit_vector.
    See also:
    select, load.

Implements sdsl::select_support.

void sdsl::select_support_dummy::load ( std::istream &  in,
const int_vector< 1 > *  v = NULL 
) [virtual]

Load the select_support from an in file stream.

Load an previously serialized select_support from a std::istream. This method could replace the call of init before the first call of the select method.

Parameters:
inThe std::istream to load the select_support.
vThe bit_vector to be supported.
See also:
init, select.

Implements sdsl::select_support.

bool sdsl::select_support_dummy::operator== ( const select_support_dummy ss) const

Equality Operator.

Two select_support_dummys are equal if all member variables are equal. Required for the Equality Comparable Concept of the STL.

See also:
operator!=
const size_type sdsl::select_support_dummy::select ( size_type  i) const [inline, virtual]

Select function.

See also:
select_support.select

Implements sdsl::select_support.

void sdsl::select_support_dummy::set_vector ( const int_vector< 1 > *  v = NULL) [virtual]

This method sets the supported bit_vector.

Note:
Call the init function before you call select the first time after you changed the supported bit_vector.

Implements sdsl::select_support.


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