|
First Class
|
#include <student.h>
Public Member Functions | |
| Student () | |
| Default constructor. More... | |
| Student (const std::string &fname, const std::string &matrikel, const int studium) | |
| Parameter constructor. More... | |
| Student (const std::string &fname, const std::string &matrikel, const std::vector< int > &studium) | |
| Parameter constructor. More... | |
| Student (const Student &orig)=default | |
| Student & | operator= (const Student &rhs)=default |
| ~Student () | |
| std::string | Getname () const |
| void | Setname (const std::string &val) |
| std::string | Getmatr_nr () const |
| void | Add_SKZ (const int skz_in) |
| void | Del_SKZ (const int skz_in) |
| const std::vector< int > & | Get_SKZ () const |
| int | Num_SKZ () const |
| bool | operator< (const Student &rhs) const |
| Compares two students wrt. the lexicographical ordering of names. More... | |
| bool | Enrolled4Study (const int cSKZ) const |
Checks whether a student is enrolled in study cSKZ. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const Student &rhs) |
| std::istream & | operator>> (std::istream &s, Student &rhs) |
Class student that contains the family name, matricel number and the enrolled studies.
| Student::Student | ( | ) |
Default constructor.
Definition at line 7 of file student.cpp.
| Student::Student | ( | const std::string & | fname, |
| const std::string & | matrikel, | ||
| const int | studium | ||
| ) |
Parameter constructor.
| [in] | fname | family name |
| [in] | matrikel | matricel number |
| [in] | studium | one study |
| Student::Student | ( | const std::string & | fname, |
| const std::string & | matrikel, | ||
| const std::vector< int > & | studium | ||
| ) |
Parameter constructor.
| [in] | fname | family name |
| [in] | matrikel | matricel number |
| [in] | studium | vector of studies |
|
default |
| void Student::Add_SKZ | ( | const int | skz_in | ) |
Fuegt eine Studienkennzahl (SKZ) hinzu.
| [in] | skz_in | zusaetzliche SKZ |
Definition at line 29 of file student.cpp.

| void Student::Del_SKZ | ( | const int | skz_in | ) |
Enfernt eine Studienkennzahl (SKZ).
| [in] | skz_in | zu entfernende SKZ |
Definition at line 36 of file student.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void Student::Setname | ( | const std::string & | val | ) |
Assigns a new name to the student
| [in] | val | New name to set |
Definition at line 27 of file student.cpp.
|
friend |
Ausgabeoperator fuer die Klasse.
| [in] | s | ein beliebiger Ausgabestrom |
| [in] | rhs | die auszugebende Instanz |
|
friend |
Eingabeoperator fuer die Klasse.
| [in] | s | ein beliebiger Eingabestrom |
| [in] | rhs | die einzugebende Instanz |