Definition at line 202 of file archivertest.cpp.
◆ Canvas()
◆ ~Canvas()
◆ AddShape()
void Canvas::AddShape |
( |
Shape * | shape | ) |
|
|
inline |
◆ Clear()
Definition at line 207 of file archivertest.cpp.
207 {
208 for (std::vector<Shape*>::iterator itr = shapes_.begin(); itr != shapes_.end(); ++itr)
209 delete *itr;
210 }
◆ Print()
void Canvas::Print |
( |
std::ostream & | os | ) |
|
|
inline |
Definition at line 214 of file archivertest.cpp.
214 {
215 for (std::vector<Shape*>::iterator itr = shapes_.begin(); itr != shapes_.end(); ++itr) {
217 std::cout << std::endl;
218 }
219 }
◆ operator&
Definition at line 245 of file archivertest.cpp.
245 {
246 size_t shapeCount = c.shapes_.size();
247 ar.StartArray(&shapeCount);
248 if (ar.IsReader) {
250 c.shapes_.resize(shapeCount);
251 }
252 for (size_t i = 0; i < shapeCount; i++)
253 ar & c.shapes_[i];
254 return ar.EndArray();
255}
The documentation for this class was generated from the following file: