astra-uu-se / atlantis

CBLS solver
2 stars 1 forks source link

Feature/id array #17

Closed GustavBjordal closed 3 years ago

GustavBjordal commented 4 years ago

We keep using vectors that map from some Id sub-type to something else, and we keep having to deal with some null-index.

This is a wrapper class that uses templates and allows for static type checking of the id type.

I am using a weird convention for the accessor function:

For bool specialization, we have to worry about the fact that std::vector is not an STL container, and we cannot using operator[] for mutating values. Instead we then use the following interface: