127     TIntPr AttrKey(it.GetDat().GetVal2(), Id);
 
  128     if (CurType == 
atInt) {
 
  130     } 
else if (CurType == 
atFlt) {
 
  132     } 
else if (CurType == 
atStr) {
 
  143     if (CurType == AttrType) {
 
  144       TIntPr AttrKey(it.GetDat().GetVal2(), Id);
 
  145       if (CurType == 
atInt) {
 
  147           TAttrPr Dat(it.GetKey(), CurType);
 
  151       } 
else if (CurType == 
atFlt) {
 
  153           TAttrPr Dat(it.GetKey(), CurType);
 
  156       } 
else if (CurType == 
atStr) {
 
  158           TAttrPr Dat(it.GetKey(), CurType);
 
  170       if (it.GetKey().GetVal1() == AttrId) {
 
  171         IdV.
Add(it.GetKey().GetVal2());
 
  174   } 
else if (Type == 
atFlt) {
 
  176       if (it.GetKey().GetVal1() == AttrId) {
 
  177         IdV.
Add(it.GetKey().GetVal2());
 
  180   } 
else if (Type == 
atStr) {
 
  182       if (it.GetKey().GetVal1() == AttrId) {
 
  183         IdV.
Add(it.GetKey().GetVal2());
 
  216   TIntPr TypeAndId(AttrType, AttrId);
 
  372     if (CurType == 
atInt) {
 
  374     } 
else if (CurType == 
atFlt) {
 
  376     } 
else if (CurType == 
atStr) {
 
  387     if (CurType == AttrType) {
 
  389       if (CurType == 
atInt) {
 
  391           TAttrPr Dat(it.GetKey(), CurType);
 
  395       } 
else if (CurType == 
atFlt) {
 
  397           TAttrPr Dat(it.GetKey(), CurType);
 
  400       } 
else if (CurType == 
atStr) {
 
  402           TAttrPr Dat(it.GetKey(), CurType);
 
  414       if (it.GetKey().GetVal1() == AttrId) {
 
  415         IdV.
Add(it.GetKey().GetVal2());
 
  418   } 
else if (Type == 
atFlt) {
 
  420       if (it.GetKey().GetVal1() == AttrId) {
 
  421         IdV.
Add(it.GetKey().GetVal2());
 
  424   } 
else if (Type == 
atStr) {
 
  426       if (it.GetKey().GetVal1() == AttrId) {
 
  427         IdV.
Add(it.GetKey().GetVal2());
 
  459   TIntPr TypeAndId(AttrType, AttrId);
 
int DelSAttrDat(const TInt &Id, const TStr &AttrName)
Delete attribute with name AttrName for the given id Id. 
 
int GetSAttrDat(const TIntPr &Id, const TStr &AttrName, TInt &ValX) const 
Get Int attribute with name AttrName for the given id Id. 
 
enum TAttrType_ TAttrType
Types for tables, sparse and dense attributes. 
 
int AddSAttrDat(const TInt &Id, const TStr &AttrName, const TInt &Val)
Add Int attribute with name AttrName for the given id Id. 
 
void DelSAttrId(const TIntPr &Id)
Delete all attributes for the given id Id. 
 
const TVal1 & GetVal1() const 
 
int GetSAttrName(const TInt &AttrId, TStr &NameX, TAttrType &AttrTypeX) const 
Given the attribute id AttrId, get the attribute name. 
 
TIntIntStrPrH AttrIdToName
 
const TVal2 & GetVal2() const 
 
const TDat & GetDat(const TKey &Key) const 
 
int GetSAttrName(const TInt &AttrId, TStr &NameX, TAttrType &AttrTypeX) const 
Given the attribute id AttrId, get the attribute name and type. 
 
void DelSAttrId(const TInt &Id)
Delete all attributes for the given id Id. 
 
TIntIntPrPrIntH IntAttrVals
 
void DelKey(const TKey &Key)
 
TIntIntStrPrH AttrIdToName
 
int GetIdVSAttr(const TInt &AttrId, const TAttrType Type, TIntV &IdV) const 
 
TIntIntPrPrFltH FltAttrVals
 
void GetSAttrV(const TInt &Id, const TAttrType AttrType, TAttrPrV &AttrV) const 
Get a list of all attributes of type AttrType for the given id Id. 
 
TIntIntPrPrStrH StrAttrVals
 
int GetSAttrId(const TStr &Name, TInt &AttrIdX, TAttrType &AttrTypeX) const 
Given the attribute name Name, get the attribute id and type. 
 
int GetIdVSAttr(const TInt &AttrId, const TAttrType Type, TIntPrV &IdV) const 
 
int GetSAttrDat(const TInt &Id, const TStr &AttrName, TInt &ValX) const 
Get Int attribute with name AttrName for the given id Id. 
 
int AddSAttr(const TStr &Name, const TAttrType &AttrType, TInt &AttrIdX)
Adds a mapping for an attribute with name Name and type AttrType. 
 
int AddSAttrDat(const TIntPr &Id, const TStr &AttrName, const TInt &Val)
Add Int attribute with name AttrName for the given id Id. 
 
int DelSAttrDat(const TIntPr &Id, const TStr &AttrName)
Delete attribute with name AttrName for the given id Id. 
 
void GetSAttrV(const TIntPr &Id, const TAttrType AttrType, TAttrPrV &AttrV) const 
Get a list of all attributes of the given type AttrType for the given id Id. 
 
bool DelIfKey(const TKey &Key)
 
int GetSAttrId(const TStr &Name, TInt &AttrIdX, TAttrType &AttrTypeX) const 
Given the attribute name Name, get the attribute id. 
 
bool IsKey(const TKey &Key) const 
 
TSizeTy Add()
Adds a new element at the end of the vector, after its current last element. 
 
TDat & AddDat(const TKey &Key)
 
int AddSAttr(const TStr &Name, const TAttrType &AttrType, TInt &AttrIdX)
Adds a mapping for an attribute with name Name and type AttrType. 
 
Vector is a sequence TVal objects representing an array that can change in size.