15 : _name(), _matr_nr(), _skz() {}
24 Student(
const std::string& fname,
const std::string& matrikel,
const int studium)
25 :
Student(fname,matrikel,std::vector<int>{studium})
34 Student(
const std::string& fname,
const std::string& matrikel,
const std::vector<int>& studium)
35 : _name(fname), _matr_nr(matrikel), _skz(studium)
91 return static_cast<int>(_skz.size());
115 return _name < rhs._name;
126 return _skz.end() != find(_skz.begin(), _skz.end(), cSKZ);
133 std::string _matr_nr;
134 std::vector<int> _skz;
bool Enrolled4Study(const int cSKZ) const
Checks whether a student is enrolled in study cSKZ.
const std::vector< int > & Get_SKZ() const
void Add_SKZ(const int skz_in)
friend std::ostream & operator<<(std::ostream &s, const Student &rhs)
Student & operator=(const Student &rhs)=default
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.
friend std::istream & operator>>(std::istream &s, Student &rhs)
void Del_SKZ(const int skz_in)
void Setname(const std::string &val)
std::string Getmatr_nr() const
Student()
Default constructor.