restructure and add ipi texs

This commit is contained in:
2019-11-06 18:24:04 +01:00
parent e21da561fc
commit 8fd8d2a485
155 changed files with 129 additions and 0 deletions
@@ -0,0 +1,27 @@
template <class T, int m>
class SimpleArrayCS {
public:
SimpleArrayCS (T f);
// Erzeuge ein neues Feld mit m Elementen, I=[0,m-1]
// Copy-Konstruktor, Zuweisung, Destruktor: Default ist OK!
T& operator[](int i);
// Indizierter Zugriff auf Feldelemente
// keine Ueberpruefung ob Index erlaubt
int numIndices ();
// Anzahl der Indizes in der Indexmenge
int minIndex ();
// kleinster Index
int maxIndex ();
// größter Index
bool isMember (int i);
// Ist der Index in der Indexmenge?
private:
T p[m]; // built-in array fester Groesse
} ;