OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::IndexListContainer Class Reference

#include <LocalIndexManager.hpp>

Public Types

using IndexListContainerIterator = std::list<std::pair<int, int>>::iterator
 

Public Member Functions

 IndexListContainer (int minIndex=0, int maxIndex=MAX_INTEGER)
 
int pop ()
 
void insert (int index)
 
void insert (int beginIndex, int endIndex)
 Reclaims an index range.
 
void insert (std::vector< int > &indices)
 Reclaims an index array.
 
std::vector< int > getIndicesBefore (int index)
 
int getMaxIndex ()
 

Static Public Attributes

static const int MAX_INTEGER = 2147483647
 

Detailed Description

Todo
documentation

Definition at line 68 of file LocalIndexManager.hpp.

Member Typedef Documentation

◆ IndexListContainerIterator

using OpenMD::IndexListContainer::IndexListContainerIterator = std::list<std::pair<int, int>>::iterator

Definition at line 72 of file LocalIndexManager.hpp.

Constructor & Destructor Documentation

◆ IndexListContainer()

OpenMD::IndexListContainer::IndexListContainer ( int minIndex = 0,
int maxIndex = MAX_INTEGER )
inline

Definition at line 74 of file LocalIndexManager.hpp.

Member Function Documentation

◆ getIndicesBefore()

std::vector< int > OpenMD::IndexListContainer::getIndicesBefore ( int index)
inline

Definition at line 141 of file LocalIndexManager.hpp.

◆ getMaxIndex()

int OpenMD::IndexListContainer::getMaxIndex ( )
inline

Definition at line 173 of file LocalIndexManager.hpp.

◆ insert() [1/3]

void OpenMD::IndexListContainer::insert ( int beginIndex,
int endIndex )
inline

Reclaims an index range.

Parameters
beginIndex
endIndex

Definition at line 111 of file LocalIndexManager.hpp.

◆ insert() [2/3]

void OpenMD::IndexListContainer::insert ( int index)
inline

Definition at line 101 of file LocalIndexManager.hpp.

◆ insert() [3/3]

void OpenMD::IndexListContainer::insert ( std::vector< int > & indices)
inline

Reclaims an index array.

Parameters
indices

Definition at line 121 of file LocalIndexManager.hpp.

◆ pop()

int OpenMD::IndexListContainer::pop ( )
inline

Definition at line 79 of file LocalIndexManager.hpp.

Member Data Documentation

◆ MAX_INTEGER

const int OpenMD::IndexListContainer::MAX_INTEGER = 2147483647
static

Definition at line 70 of file LocalIndexManager.hpp.


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