IMP logo
IMP Reference Guide  2.22.0
The Integrative Modeling Platform
IMP::Index< Tag > Class Template Reference

A typed index. More...

#include <IMP/Index.h>

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

Detailed Description

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

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 27 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: