equal
deleted
inserted
replaced
37 vertex_index.reset(); |
37 vertex_index.reset(); |
38 shape_index.reset(); |
38 shape_index.reset(); |
39 vertices.clear(); |
39 vertices.clear(); |
40 } |
40 } |
41 |
41 |
42 bool Indexer::get(void *o, int &retidx) |
42 bool Indexer::get(const void *o, int &retidx) |
43 { |
43 { |
44 map <void *, int>::iterator i; |
44 map <const void *, int>::iterator i; |
45 i = indexmap.find(o); |
45 i = indexmap.find(o); |
46 if (i == indexmap.end()) |
46 if (i == indexmap.end()) |
47 { |
47 { |
48 retidx = index++; |
48 retidx = index++; |
49 indexmap[o] = retidx; |
49 indexmap[o] = retidx; |
128 // else... |
128 // else... |
129 return NULL; |
129 return NULL; |
130 } |
130 } |
131 } |
131 } |
132 |
132 |
133 ostream & operator<<(ostream &st, Shape &o) |
133 ostream & operator<<(ostream &st, const Shape &o) |
134 { |
134 { |
135 return o.dump(st); |
135 return o.dump(st); |
136 } |
136 } |
137 |
137 |
138 ostream & operator<<(ostream &st, Vertex &o) |
138 ostream & operator<<(ostream &st, const Vertex &o) |
139 { |
139 { |
140 return o.dump(st); |
140 return o.dump(st); |
141 } |
141 } |
142 |
142 |
143 ostream & operator<<(ostream &st, Container &o) |
143 ostream & operator<<(ostream &st, const Container &o) |
144 { |
144 { |
145 return o.dump(st); |
145 return o.dump(st); |
146 } |
146 } |