IMP  2.0.1
The Integrative Modeling Platform
IMP::base::Index< Tag > Class Template Reference

#include <IMP/base/Index.h>

+ Inheritance diagram for IMP::base::Index< Tag >:

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
 

Detailed Description

template<class Tag>
class IMP::base::Index< Tag >

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 24 of file Index.h.


The documentation for this class was generated from the following file: