24 Student(
const std::string& fname,
const std::string& matrikel,
const int studium);
33 Student(
const std::string& fname,
const std::string& matrikel,
const std::vector<int>& studium);
59 void Setname(
const std::string& val);
98 return static_cast<int>(_skz.size());
122 return _name < rhs._name;
133 return _skz.end() != find(_skz.begin(), _skz.end(), cSKZ);
140 std::string _matr_nr;
141 std::vector<int> _skz;
bool Enrolled4Study(const int cSKZ) const
Checks whether a student is enrolled in study cSKZ.
void Add_SKZ(const int skz_in)
Student & operator=(const Student &rhs)=default
const std::vector< int > & Get_SKZ() const
friend std::ostream & operator<<(std::ostream &s, const Student &rhs)
Student(const Student &orig)=default
bool operator<(const Student &rhs) const
Compares two students wrt. the lexicographical ordering of names.
Student(const std::string &fname, const std::string &matrikel, const std::vector< int > &studium)
Parameter constructor.
std::string Getname() const
Student(const std::string &fname, const std::string &matrikel, const int studium)
Parameter constructor.
void Del_SKZ(const int skz_in)
void Setname(const std::string &val)
std::string Getmatr_nr() const
Student()
Default constructor.
friend std::istream & operator>>(std::istream &s, Student &rhs)