Database
assoc.txt
Associated article: Implementing Associations
Tags: Database
Published source code accompanying the article by Frank Hellwig in which he presents an implementation of an associations class built using the Rogue Wave Tools.h++ foundation class library
Implementing Associations
by Frank Hellwig
Example 1:
(a)
class Dog;
class Person {
public:
void addPet(Dog* d)
{ pets_.add(d); }
private:
Vector pets_;
};
class Dog {
public:
Dog() : master_(0) { }
void setMaster(Person* p)
{ master_ = p; }
private:
Person* master_;
};
(b)
Person* bill = new ...


