89 |
|
{ |
90 |
|
if (address == page.address) |
91 |
|
{ |
92 |
< |
if (path == page.path || title == page.title) return true; |
92 |
> |
return path == page.path || title == page.title; |
93 |
|
} |
94 |
|
|
95 |
|
return false; |
96 |
|
} |
97 |
|
|
98 |
< |
bool Page::operator<(const Page& page) const |
98 |
> |
/*bool Page::operator<(const Page& page) const |
99 |
|
{ |
100 |
|
if (address == page.address) |
101 |
|
{ |
113 |
|
} |
114 |
|
|
115 |
|
return address > page.address; |
116 |
< |
} |
116 |
> |
}*/ |
117 |
|
|
118 |
|
ostream& operator<<(ostream& output, Page& page) |
119 |
|
{ |
126 |
|
{ |
127 |
|
output << tab << "\t<list>\n"; |
128 |
|
|
129 |
< |
for (list<Page>::iterator itor = page.children.begin(); itor != |
130 |
< |
page.children.end(); itor++) |
129 |
> |
for (unsigned index = 0; index < page.children.size(); index++) |
130 |
|
{ |
131 |
< |
output << (*itor)(page.tab + 1) << '\n'; |
131 |
> |
output << page.children[index](page.tab + 1) << '\n'; |
132 |
|
} |
133 |
|
|
134 |
|
output << tab << "\t</list>\n"; |