IMP Reference Guide
2.21.0
The Integrative Modeling Platform
|
A typed index. More...
#include <IMP/Index.h>
A typed index.
This can help disambiguate different integer based indexes floating around to help avoid bugs caused by mixing them up. Care has been taken so that it can be replaced by an integer everywhere, if needed.
Public Member Functions | |
Index (int i) | |
int | get_index () const |
IMP_COMPARISONS_1 (Index, i_) | |
IMP_HASHABLE_INLINE (Index,{IMP_INTERNAL_CHECK(i_!=-2,"Uninitialized index");return i_;}) | |
void | show (std::ostream &out=std::cout) const |