IMP  2.4.0
The Integrative Modeling Platform
Public Member Functions | List of all members
IMP::base::Index< Tag > Class Template Reference

#include <IMP/base/Index.h>

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

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

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
 

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