Dokument
libseng · Programmiermodell · Klasse variable · Anwendbarkeit der Methoden
Beschreibung
Die Klasse variable ist eine Container-Klasse für elementare Datentypen (Zahl, Zeichenkette) und Datenstrukturen (Geordnete Liste, Namensliste).
Die (sinnvolle) Anwendbarkeit der von variable bereitgestellten Methoden ist vom Typ des enthaltenen Datums abhängig. Nachfolgende Tabelle zeigt eine Übersicht.
Datentypen tnumber  tstring  tlist  tnamedlist  tundefined
  type()      x      x     x        x        x
  isof()      x      x     x        x        x
  isnumber()      x      x     x        x        x
  isstring()      x      x     x        x        x
  islist()      x      x     x        x        x
  isnamedlist()      x      x     x        x        x
Attribute tnumber  tstring  tlist  tnamedlist  tundefined
  isinvalid()      x      x     x        x        x
  ischanged()      x      x     x        x        x
  haserror()      x      x     x        x        x
  setinvalid()      x      x     x        x        x
  setchanged()      x      x     x        x        x
  seterror()      x      x     x        x        x
Zugriff tnumber  tstring  tlist  tnamedlist  tundefined
  number()      x
  string()      x
  count()     x        x
  index()     x        x
  first()     x
  first(vartype)     x
  first(char**)        x
  first(char**, vartype)        x
  next()     x
  next(vartype)     x
  next(char**)        x
  next(char**, vartype)        x
  add(variable*)     x
  add(double)     x
  add(char*)     x
  add(vartype)     x
  add(variable*, char*)        x
  add(double, char*)        x
  add(char*, char*)        x
  add(vartype, char*)        x
Siehe auch
Variablen: Alle Methoden und Operatoren