BTDictionary Class Referencemap in metainfo file More...
Inheritance diagram for BTDictionary:
Detailed Descriptionmap in metainfo file
Definition at line 34 of file BTDictionary.h. Constructor & Destructor Documentation
Definition at line 38 of file BTDictionary.h. References m_map. 00038 { 00039 for (btmap_t::iterator it = m_map.begin(); it != m_map.end(); it++) 00040 { 00041 delete (*it).second; 00042 } 00043 }
Member Function Documentation
Reimplemented from BTObject. Definition at line 45 of file BTDictionary.h. References BTObject::GetLength(), BTObject::GetParent(), and m_map. 00045 { 00046 bool first = true; 00047 BTObject *p = GetParent(); 00048 printf("\n"); 00049 printf("Show Dictionary, length %d\n",GetLength()); 00050 while (p) 00051 { 00052 printf(" "); 00053 p = p -> GetParent(); 00054 } 00055 printf("( "); 00056 for (btmap_t::iterator it = m_map.begin(); it != m_map.end(); it++) 00057 { 00058 if (!first) 00059 printf(", "); 00060 first = false; 00061 printf("%s: ",(*it).first.c_str()); 00062 (*it).second -> Show(); 00063 } 00064 printf(")"); 00065 }
Definition at line 66 of file BTDictionary.h. References m_map. 00066 { 00067 for (btmap_t::iterator it = m_map.begin(); it != m_map.end(); it++) 00068 { 00069 if ((*it).first == str) 00070 return (*it).second; 00071 } 00072 return NULL; 00073 }
Reimplemented from BTObject. Definition at line 75 of file BTDictionary.h. References m_map. 00075 { 00076 m_map[str] = p; 00077 }
Member Data Documentation
Definition at line 81 of file BTDictionary.h. Referenced by AddObject(), Find(), GetMap(), Show(), and ~BTDictionary().
The documentation for this class was generated from the following file: |