diff --git a/Attribute.h b/Attribute.h index 9d8587b..8c9435c 100755 --- a/Attribute.h +++ b/Attribute.h @@ -41,7 +41,7 @@ public: void display() { - cout<<"Atribute name:\t"< att; //A vector of the columns + itn size; public: Relation(); @@ -14,6 +15,7 @@ public: Relation(string n, vector a) { name = n; att = a; + size = 0; } void addTuple(vector tuple) { @@ -25,10 +27,13 @@ public: //In this column, at this element's spot, assign an element from the tuple vector to this spot att[i].addRow(tuple[i]); + size++; } } } + int getSize() { return size; } + string getTableName() { return name; } @@ -57,4 +62,4 @@ public: } } -}; +}; \ No newline at end of file