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,34 @@
class SimpleFloatArray {
public:
// Neues Feld mit s Elementen, I=[0,s-1]
SimpleFloatArray (int s, float f);
// Copy-Konstruktor
SimpleFloatArray (const SimpleFloatArray&);
// Zuweisung von Feldern
SimpleFloatArray& operator= (const SimpleFloatArray&);
// Destruktor: Gebe Speicher frei
~SimpleFloatArray();
// Indizierter Zugriff auf Feldelemente
// keine Ueberpruefung ob Index erlaubt
virtual float& operator[](int i);
// Anzahl der Indizes in der Indexmenge
int numIndices ();
// kleinster Index
int minIndex ();
// größter Index
int maxIndex ();
// Ist der Index in der Indexmenge?
bool isMember (int i);
private:
int n; // Anzahl Elemente
float *p; // Zeiger auf built-in array
} ;