#include <student.h>
Klasse Student, welche nun mehrere SKZ speichert.
Definition at line 10 of file student.h.
◆ Student() [1/5]
Default constructor
Definition at line 8 of file student.cpp.
◆ Student() [2/5]
| Student::Student |
( |
const std::string & |
name, |
|
|
const std::string & |
matrikel, |
|
|
const int |
studium |
|
) |
| |
Constructor for a student with a single study ID
- Parameters
-
| [in] | name | name of student |
| [in] | matrikel | student ID |
| [in] | studium | study ID |
◆ Student() [3/5]
| Student::Student |
( |
const std::string & |
name, |
|
|
const std::string & |
matnr, |
|
|
const std::vector< int > & |
skz |
|
) |
| |
Constructor for a student with a single study ID
- Parameters
-
| [in] | name | name of student |
| [in] | matnr | student ID |
| [in] | skz | vector of study IDs |
◆ Student() [4/5]
| Student::Student |
( |
const Student & |
orig | ) |
|
|
default |
◆ Student() [5/5]
| Student::Student |
( |
Student && |
orig | ) |
|
|
default |
◆ ~Student()
◆ Add_SKZ()
| void Student::Add_SKZ |
( |
const int |
skz | ) |
|
Fuegt eine Studienkennzahl (SKZ) hinzu.
- Parameters
-
- Warning
- Es wird nicht ueberprueft, ob diese SKZ bereits gespeichert ist. Dies wuerde ein find oder ein unique erfordern.
Definition at line 32 of file student.cpp.
◆ Del_SKZ()
| void Student::Del_SKZ |
( |
const int |
skz | ) |
|
Enfernt eine Studienkennzahl (SKZ).
- Parameters
-
| [in] | skz | zu entfernende SKZ |
- Warning
- Es wird nicht ueberprueft, ob diese SKZ mehrfach gespeichert ist.
Definition at line 37 of file student.cpp.
◆ Get_SKZ()
| vector< int > Student::Get_SKZ |
( |
| ) |
const |
Gets the vector of all study IDs
- Returns
- vector of all study IDs
Definition at line 42 of file student.cpp.
◆ Getmatr_nr()
| std::string Student::Getmatr_nr |
( |
| ) |
const |
|
inline |
Access student ID
- Returns
- The current value of matr_nr
Definition at line 62 of file student.h.
◆ Getname()
| std::string Student::Getname |
( |
| ) |
const |
|
inline |
Access name
- Returns
- The current value of name
Definition at line 48 of file student.h.
◆ num_Studies()
| int Student::num_Studies |
( |
| ) |
const |
|
inline |
Asks for the number of enrolled studies
- Returns
- number of enrolled studies
Definition at line 84 of file student.h.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Setname()
| void Student::Setname |
( |
const std::string & |
val | ) |
|
|
inline |
Set name
- Parameters
-
Definition at line 56 of file student.h.
◆ operator<<
| std::ostream& operator<< |
( |
std::ostream & |
s, |
|
|
const Student & |
rhs |
|
) |
| |
|
friend |
Ausgabeoperator fuer die Klasse.
- Parameters
-
| [in] | s | ein beliebiger Ausgabestrom |
| [in] | rhs | die auszugebende Instanz |
◆ operator>>
| std::istream& operator>> |
( |
std::istream & |
s, |
|
|
Student & |
rhs |
|
) |
| |
|
friend |
Eingabeoperator fuer die Klasse.
- Parameters
-
| [in] | s | ein beliebiger Eingabestrom |
| [in] | rhs | die einzugebende Instanz |
- Warning
- Hier wird nur eine SKZ eingegeben.
The documentation for this class was generated from the following files: