Home | History | Annotate | Download | only in serialize

Lines Matching defs:Dependent

64 class Dependent : public Person {

66 Dependent(const std::string& name, unsigned age, Education* education = 0) : Person(name, age), education_(education) {}
67 Dependent(const Dependent& rhs) : Person(rhs), education_(0) { education_ = (rhs.education_ == 0) ? 0 : new Education(*rhs.education_); }
68 virtual ~Dependent();
70 Dependent& operator=(const Dependent& rhs) {
98 Dependent::~Dependent() {
107 void AddDependent(const Dependent& dependent) {
108 dependents_.push_back(dependent);
122 for (std::vector<Dependent>::const_iterator dependentItr = dependents_.begin(); dependentItr != dependents_.end(); ++dependentItr)
130 std::vector<Dependent> dependents_;
141 employees.back().AddDependent(Dependent("Lua YIP", 3, new Education("Happy Kindergarten", 3.5)));
142 employees.back().AddDependent(Dependent("Mio YIP", 1));