28 #ifndef __ESYSUTILS_INDEXLIST_H__ 29 #define __ESYSUTILS_INDEXLIST_H__ 35 #define ESYS_INDEXLIST_LENGTH 85 50 for (
dim_t i=0; i<
n; i++) {
51 if (m_list[i] == index)
57 if (extension == NULL)
67 for (
dim_t i=0; i <
n; i++) {
68 if (m_list[i] >= range_min && range_max > m_list[i])
72 out += extension->
count(range_min, range_max);
81 for (
dim_t i=0; i <
n; i++) {
82 if (m_list[i] >= range_min && range_max > m_list[i]) {
83 array[idx] = m_list[i]+index_offset;
88 extension->
toArray(&array[idx], range_min, range_max, index_offset);
94 #endif // __ESYSUTILS_INDEXLIST_H__
IndexList * extension
Definition: esysUtils/src/IndexList.h:45
dim_t n
Definition: esysUtils/src/IndexList.h:44
#define ESYS_INDEXLIST_LENGTH
Definition: esysUtils/src/IndexList.h:35
dim_t count(index_t range_min, index_t range_max) const
counts the number of row indices in the IndexList in
Definition: esysUtils/src/IndexList.h:64
index_t m_list[85]
Definition: esysUtils/src/IndexList.h:43
Definition: esysUtils/src/IndexList.h:39
void insertIndex(index_t index)
inserts row index into the IndexList in if it does not exist
Definition: esysUtils/src/IndexList.h:48
Definition: Esys_MPI.cpp:32
int index_t
Definition: types.h:24
void toArray(index_t *array, index_t range_min, index_t range_max, index_t index_offset) const
index list to array
Definition: esysUtils/src/IndexList.h:77
IndexList()
Definition: esysUtils/src/IndexList.h:40
index_t dim_t
Definition: types.h:27
~IndexList()
Definition: esysUtils/src/IndexList.h:41