From d4e1e5bc04ebb6f673ac817eb382ce380fa94fe9 Mon Sep 17 00:00:00 2001 From: Brandon Jackson <1drummer@att.net> Date: Tue, 15 Sep 2015 20:21:26 -0500 Subject: [PATCH] Update Attribute.h --- Attribute.h | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/Attribute.h b/Attribute.h index 2c1bd3d..08e12c9 100755 --- a/Attribute.h +++ b/Attribute.h @@ -5,33 +5,43 @@ using namespace std; //Funtional, might need more functionality -template +//template class Attribute { //a named column of a relation string name; - vector values; + bool isKey; int size; + public: - Attribute(){ } - - Attribute(vector v){ - this.values = v; - } - - Attribute(const Attribute& a){ - this.values = a.getAll(); - } - - Attribute& operator=(const Attribute& a){ - this.values = a.getAll(); + + vector values; + + void initializeAttribute(string n, vector a){ + + name = n; + values = a; } string getName(){ return name; } - vector getAll(){ - return this.values; + Attribute(){ } + + void display() + { + cout<<"Atribute name:\t"< getElements(){ + return values; + } + */ +};