@@ -213,12 +213,12 @@ int main(int argc, char** argv) {
213213 // will be tesselated using the deflection specified.
214214 TopoDS_Shape shape;
215215 createGroundShape (shape);
216- IfcEntities geometrical_entities (new IfcEntityList () );
216+ IfcEntityList::ptr geometrical_entities (new IfcEntityList);
217217 IfcSchema::IfcProductDefinitionShape* ground_representation = IfcGeom::tesselate (shape, 100 ., geometrical_entities);
218218 file.getSingle <IfcSchema::IfcSite>()->setRepresentation (ground_representation);
219219 file.AddEntities (geometrical_entities);
220- IfcSchema::IfcShapeRepresentation::list ground_reps = geometrical_entities->as <IfcSchema::IfcShapeRepresentation>();
221- for (IfcSchema::IfcShapeRepresentation::it it = ground_reps->begin (); it != ground_reps->end (); ++it) {
220+ IfcSchema::IfcShapeRepresentation::list::ptr ground_reps = geometrical_entities->as <IfcSchema::IfcShapeRepresentation>();
221+ for (IfcSchema::IfcShapeRepresentation::list:: it it = ground_reps->begin (); it != ground_reps->end (); ++it) {
222222 (*it)->setContextOfItems (file.getSingle <IfcSchema::IfcRepresentationContext>());
223223 }
224224 file.setSurfaceColour (ground_representation, 0.15 , 0.25 , 0.05 );
@@ -246,7 +246,7 @@ int main(int argc, char** argv) {
246246 , null
247247#endif
248248 );
249- IfcSchema::IfcMaterialLayer::list layers (new IfcTemplatedEntityList<IfcSchema::IfcMaterialLayer>());
249+ IfcSchema::IfcMaterialLayer::list::ptr layers (new IfcTemplatedEntityList<IfcSchema::IfcMaterialLayer>());
250250 layers->push (layer);
251251 IfcSchema::IfcMaterialLayerSet* layer_set = new IfcSchema::IfcMaterialLayerSet (
252252 layers,
@@ -324,9 +324,9 @@ int main(int argc, char** argv) {
324324#endif
325325 );
326326 door->setRepresentation (file.addBox (80 , 80 , 2120 , 0 , file.addPlacement3d (460 , 0 , 0 )));
327- IfcSchema::IfcRepresentation::list door_representations = door->Representation ()->Representations ();
327+ IfcSchema::IfcRepresentation::list::ptr door_representations = door->Representation ()->Representations ();
328328 IfcSchema::IfcShapeRepresentation* door_body = 0 ;
329- for (IfcSchema::IfcRepresentation::it i = door_representations->begin (); i != door_representations->end (); ++i) {
329+ for (IfcSchema::IfcRepresentation::list:: it i = door_representations->begin (); i != door_representations->end (); ++i) {
330330 IfcSchema::IfcRepresentation* rep = *i;
331331 if (rep->is (IfcSchema::Type::IfcShapeRepresentation) && rep->RepresentationIdentifier () == " Body" ) {
332332 door_body = (IfcSchema::IfcShapeRepresentation*) rep;
@@ -350,15 +350,15 @@ int main(int argc, char** argv) {
350350 // Therefore the OverallWidth and OverallHeight of the window attributes will need to
351351 // match the bounding box of the representation. Furthermore, the window placement needs
352352 // to align with the lowerleft corner of the constituent parts.
353- IfcSchema::IfcProductDefinitionShape::list frame_representations (new IfcTemplatedEntityList<IfcSchema::IfcProductDefinitionShape>());
353+ IfcSchema::IfcProductDefinitionShape::list::ptr frame_representations (new IfcTemplatedEntityList<IfcSchema::IfcProductDefinitionShape>());
354354 frame_representations->push (file.addBox (1860 , 90 , 90 ));
355355 frame_representations->push (*frame_representations->begin ()); // Add a reference to the shape created above
356356 frame_representations->push (file.addBox (90 , 90 , 1420 ));
357357 frame_representations->push (*(frame_representations->end ()-1 )); // Add a reference to the shape created above
358358
359359 // The beams all have the same surface style assigned
360360 IfcSchema::IfcPresentationStyleAssignment* frame_style = 0 ;
361- for (IfcSchema::IfcProductDefinitionShape::it i = frame_representations->begin (); i != frame_representations->end (); ++i) {
361+ for (IfcSchema::IfcProductDefinitionShape::list:: it i = frame_representations->begin (); i != frame_representations->end (); ++i) {
362362 if (frame_style) {
363363 file.setSurfaceColour (*i, frame_style);
364364 } else {
@@ -368,14 +368,14 @@ int main(int argc, char** argv) {
368368
369369 // This window will be placed at five locations within the building. A list of placements is
370370 // created and is iterated over to create all window instances.
371- IfcSchema::IfcLocalPlacement::list window_placements (new IfcTemplatedEntityList<IfcSchema::IfcLocalPlacement>());
371+ IfcSchema::IfcLocalPlacement::list::ptr window_placements (new IfcTemplatedEntityList<IfcSchema::IfcLocalPlacement>());
372372 window_placements->push (file.addLocalPlacement (2 *-1770 -430 -930 , -45 , 400 ));
373373 window_placements->push (file.addLocalPlacement ( -1770 -430 -930 , -45 , 400 ));
374374 window_placements->push (file.addLocalPlacement ( -430 -930 , -45 , 400 ));
375375 window_placements->push (file.addLocalPlacement ( 3000 -930 , -45 , 400 ));
376376 window_placements->push (file.addLocalPlacement ( -4855 +45 , 885 -930 , 400 , 0 , 0 , 1 , 0 , 1 , 0 ));
377377
378- for (IfcSchema::IfcLocalPlacement::it it = window_placements->begin (); it != window_placements->end (); ++it) {
378+ for (IfcSchema::IfcLocalPlacement::list:: it it = window_placements->begin (); it != window_placements->end (); ++it) {
379379
380380 // Create the window at the current location
381381 IfcSchema::IfcLocalPlacement* place = *it;
@@ -390,19 +390,19 @@ int main(int argc, char** argv) {
390390 file.addBuildingProduct (window);
391391
392392 // Initalize a list of parts for the window to be composed of
393- IfcSchema::IfcObjectDefinition::list window_parts (new IfcTemplatedEntityList<IfcSchema::IfcObjectDefinition>());
393+ IfcSchema::IfcObjectDefinition::list::ptr window_parts (new IfcTemplatedEntityList<IfcSchema::IfcObjectDefinition>());
394394
395395 // The placements for the beams are not shared accross the different windows because every
396396 // beam is placed relative to its parent window entity.
397- IfcSchema::IfcLocalPlacement::list frame_placements (new IfcTemplatedEntityList<IfcSchema::IfcLocalPlacement>());
397+ IfcSchema::IfcLocalPlacement::list::ptr frame_placements (new IfcTemplatedEntityList<IfcSchema::IfcLocalPlacement>());
398398 frame_placements->push (file.addLocalPlacement ( 930 ,45 ));
399399 frame_placements->push (file.addLocalPlacement ( 930 , 45 , 1510 ));
400400 frame_placements->push (file.addLocalPlacement (-885 +930 , 45 , 90 ));
401401 frame_placements->push (file.addLocalPlacement ( 885 +930 , 45 , 90 ));
402402
403403 // Now iterate over the placements and representations of the beam and add them to list of parts
404- IfcSchema::IfcLocalPlacement::it frame_placement;
405- IfcSchema::IfcProductDefinitionShape::it frame_representation;
404+ IfcSchema::IfcLocalPlacement::list:: it frame_placement;
405+ IfcSchema::IfcProductDefinitionShape::list:: it frame_representation;
406406 for (frame_placement = frame_placements->begin (), frame_representation = frame_representations->begin ();
407407 frame_placement != frame_placements->end () && frame_representation != frame_representations->end ();
408408 ++frame_placement, ++frame_representation)
0 commit comments