SimpleVector
-
template<typename type_defs>
class SimpleVector : public sps::AbstractIndex A naive, iteration-based index implementation for benchmarking.
Ignores the number of orthotope dimensions ( always sets type_defs::ORTHOTOPE_DIMS = type_defs:D ).
- Template Parameters:
type_defs – An instance of TypeDefs, that defines all compiletime parameters
Public Functions
-
inline SimpleVector(std::string sPrefix = "", bool bWrite = false)
Construct a new SimpleVector object.
- Parameters:
sPrefix – Prefix path of the vector on the filesystem (a file with the ending .orthos 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 addPoint(pos_t vStart, pos_t vEnd, val_t uiVal = 1)
Append an orthotope to the data structure.
- Parameters:
vStart – The bottom-left of the orthotope.
vEnd – The top-right of the orthotope.
uiVal – Value of the points, default to 1.
-
inline val_t count(pos_t vStart, pos_t vEnd) const
Count the number of orthotopes within the given area.
- Parameters:
vStart – The bottom-left of the queried area.
vEnd – The top-right of the queried area.