You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The underlying data structure of the *Table classes is now a std::vector (instead of a std::map). This means that the IDs of the input database tables must be contiguous and should start at 0.
If the IDs don't start at 0, an artificial shift can be introduced between the database ID and the vector index, e.g. through the function idToVectorIndex:
classDBTable {
public:// ...private:/// The vector of database rows.
std::vector<T> Vector_;
/// Helper function to convert database ID's to vector indices.virtualconst size_type idToVectorIndex(const index_type& id) const;
};
So far the ID shift is hard-coded, so it would be much easier if all the table IDs started at 0.
The text was updated successfully, but these errors were encountered:
The underlying data structure of the
*Table
classes is now astd::vector
(instead of astd::map
). This means that the IDs of the input database tables must be contiguous and should start at 0.If the IDs don't start at 0, an artificial shift can be introduced between the database ID and the vector index, e.g. through the function
idToVectorIndex
:So far the ID shift is hard-coded, so it would be much easier if all the table IDs started at 0.
The text was updated successfully, but these errors were encountered: