SimpleValVector

template<typename type_defs>
class SimpleValVector : public sps::AbstractIndex

A simple vector implementation for benchmarking.

Template Parameters:

type_defs – An instance of TypeDefs, that defines all compiletime parameters

Public Functions

inline SimpleValVector(std::string sPrefix = "", bool bWrite = false)

Construct a new SimpleValVector object.

Parameters:
  • sPrefix – Prefix path of the vector on the filesystem (a file with the ending .vals will be created), defaults to “”.

  • bWrite – Open the vector in write mode (if this is set to False no changes can be made to the vector), defaults to false.

inline void add(val_t uiV)

Append a value.

Parameters:

uiV – The value to append.

inline val_t get(size_t uiX) const

query a value.

Parameters:

uiX – position to query.