IMP
2.2.1
The Integrative Modeling Platform
|
#include <IMP/base/Index.h>
Public Member Functions | |
Index (int i) | |
int | get_index () const |
IMP_COMPARISONS_1 (Index, i_) | |
IMP_HASHABLE_INLINE (Index,{IMP_USAGE_CHECK(i_!=-2,"Uninitialized index");return i_;}) | |
void | show (std::ostream &out=std::cout) const |
Define 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.
Definition at line 26 of file base/Index.h.