void MassContextDependentUnit::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "Inherited Attributes:" << std::endl; MassUnit::Print(level + 1); ContextDependentUnit::Print(level + 1); }
void LengthSiUnit::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "Inherited Attributes:" << std::endl; LengthUnit::Print(level + 1); SiUnit::Print(level + 1); }
void RepresentationItem::Print(int level) { TAB(level); std::cout << "RepresentationItem:" << name << std::endl; TAB(level); std::cout << "ID:" << STEPid() << std::endl; TAB(level); std::cout << "Attributes:" << std::endl; TAB(level + 1); std::cout << "name:" << name << std::endl; }
void BSplineSurfaceWithKnots::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << name << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "Attributes:" << std::endl; TAB(level+1); std::cout << "u_multiplicities:"; LIST_OF_INTEGERS::iterator ii; for(ii=u_multiplicities.begin();ii!=u_multiplicities.end();ii++) { std::cout << " " << (*ii); } std::cout << std::endl; TAB(level+1); std::cout << "v_multiplicities:"; for(ii=v_multiplicities.begin();ii!=v_multiplicities.end();ii++) { std::cout << " " << (*ii); } std::cout << std::endl; TAB(level+1); std::cout << "u_knots:"; LIST_OF_REALS::iterator ir; for(ir=u_knots.begin();ir!=u_knots.end();ir++) { std::cout << " " << (*ir); } std::cout << std::endl; TAB(level+1); std::cout << "v_knots:"; for(ir=v_knots.begin();ir!=v_knots.end();ir++) { std::cout << " " << (*ir); } std::cout << std::endl; TAB(level+1); std::cout << "knot_spec:" << Knot_type_string[knot_spec] << std::endl; TAB(level); std::cout << "Inherited Attributes:" << std::endl; BSplineSurface::Print(level+1); }
void FunctionallyDefinedTransformation::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "Attributes:" << std::endl; TAB(level + 1); std::cout << "name:" << name << std::endl; TAB(level + 1); std::cout << "description:" << description << std::endl; }
void ToroidalSurface::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << name << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level + 1); std::cout << "major_radius: " << major_radius << std::endl; TAB(level + 1); std::cout << "minor_radius: " << minor_radius << std::endl; ElementarySurface::Print(level + 1); }
void MeasureValue::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "Attributes:" << std::endl; if (type == DESCRIPTIVE_MEASURE) { TAB(level+1); std::cout << "Type:" << measure_type_names[type] << " Value:" << svalue << std::endl; } else if ((type == COUNT_MEASURE) || (type == NUMERIC_MEASURE)) { TAB(level+1); std::cout << "Type:" << measure_type_names[type] << " Value:" << ivalue << std::endl; } else { TAB(level+1); std::cout << "Type:" << measure_type_names[type] << " Value:" << rvalue << std::endl; } }
void RepresentedDefinition::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "Attributes:" << std::endl; if (type == GENERAL_PROPERTY) { TAB(level+1); std::cout << "Type:" << represented_definition_type_names[type] << " Value:" << std::endl; //entity->Print(level+1); } else if (type == PROPERTY_DEFINITION) { TAB(level+1); std::cout << "Type:" << represented_definition_type_names[type] << " Value:" << std::endl; //entity->Print(level+1); } else if (type == PROPERTY_DEFINITION_RELATIONSHIP) { TAB(level+1); std::cout << "Type:" << represented_definition_type_names[type] << " Value:" << std::endl; //entity->Print(level+1); } else if (type == SHAPE_ASPECT) { TAB(level+1); std::cout << "Type:" << represented_definition_type_names[type] << " Value:" << std::endl; //entity->Print(level+1); } else if (type == SHAPE_ASPECT_RELATIONSHIP) { TAB(level+1); std::cout << "Type:" << represented_definition_type_names[type] << " Value:" << std::endl; //entity->Print(level+1); } else { TAB(level+1); std::cout << "Type:" << "UNKNOWN" << " Value:" << std::endl; } }
void Direction::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "Local Attributes:" << std::endl; TAB(level+1); std::cout << "direction_ratios:"; std::cout << "(" << direction_ratios[0] << ","; std::cout << direction_ratios[1] << ","; std::cout << direction_ratios[2] << ")" << std::endl; TAB(level); std::cout << "Inherited Attributes:" << std::endl; GeometricRepresentationItem::Print(level+1); }
void TrimmingSelect::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << std::endl; if (type == CARTESIAN_POINT) { TAB(level); std::cout << "Type:" << trimming_select_type_strings[type] << " Value:" << std::endl; cartesian_point->Print(level + 1); } else if (type == PARAMETER_VALUE) { TAB(level); std::cout << "Type:" << trimming_select_type_strings[type] << " Value:" << parameter_value << std::endl; } }
void VertexLoop::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "Local Attributes:" << std::endl; loop_vertex->Print(level + 1); TAB(level); std::cout << "Inherited Attributes:" << std::endl; Loop::Print(level + 1); }
void ProductDefinitionFormationWithSpecifiedSource::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "Attributes:" << std::endl; TAB(level + 1); std::cout << "make_or_buy:" << SourceString() << std::endl; TAB(level); std::cout << "Inherited Attributes:" << std::endl; ProductDefinitionFormation::Print(level + 1); }
void OffsetCurve2D::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << name << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "Attributes:" << std::endl; basis_curve->Print(level + 1); TAB(level + 1); std::cout << "distance:" << distance << std::endl; TAB(level + 1); std::cout << "self_intersect:" << step->getLogicalString(self_intersect) << std::endl; }
void PCurveOrSurface::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << std::endl; if (type == PCURVE) { TAB(level); std::cout << "Type:" << pcurve_or_surface_type_names[type] << " Value:" << std::endl; pcurve->Print(level + 1); } else if (type == SURFACE) { TAB(level); std::cout << "Type:" << pcurve_or_surface_type_names[type] << " Value:" << std::endl; surface->Print(level + 1); } }
void OrderExprNode::print(ostream & out, unsigned d) { orderExpression->print(out, d + 1); switch(orderType) { case OrderType::Asc: TAB(d) << "ascending" << endl; break; case OrderType::Desc: TAB(d) << "descending" << endl; break; default: break; } }
void Parabola::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << name << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "Attributes:" << std::endl; TAB(level + 1); std::cout << "focal_dist:" << focal_dist << std::endl; TAB(level); std::cout << "Inherited Attributes:" << std::endl; Conic::Print(level + 1); }
bool runtime·addfinalizer(void *p, void (*f)(void*), int32 nret) { Fintab *tab; byte *base; if(debug) { if(!runtime·mlookup(p, &base, nil, nil) || p != base) runtime·throw("addfinalizer on invalid pointer"); } tab = TAB(p); runtime·lock(tab); if(f == nil) { lookfintab(tab, p, true, nil); runtime·unlock(tab); return true; } if(lookfintab(tab, p, false, nil)) { runtime·unlock(tab); return false; } if(tab->nkey >= tab->max/2+tab->max/4) { // keep table at most 3/4 full: // allocate new table and rehash. resizefintab(tab); } addfintab(tab, p, f, nret); runtime·setblockspecial(p, true); runtime·unlock(tab); return true; }
void Placement::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << std::endl; location->Print(level + 1); }
void Vertex::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << name << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; }
bool runtime_addfinalizer(void *p, FuncVal *f, const struct __go_func_type *ft) { Fintab *tab; byte *base; if(debug) { if(!runtime_mlookup(p, &base, nil, nil) || p != base) runtime_throw("addfinalizer on invalid pointer"); } tab = TAB(p); runtime_lock(tab); if(f == nil) { lookfintab(tab, p, true, nil); runtime_unlock(tab); return true; } if(lookfintab(tab, p, false, nil)) { runtime_unlock(tab); return false; } if(tab->nkey >= tab->max/2+tab->max/4) { // keep table at most 3/4 full: // allocate new table and rehash. resizefintab(tab); } addfintab(tab, p, f, ft); runtime_setblockspecial(p, true); runtime_unlock(tab); return true; }
void PropertyDefinition::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "Attributes:" << std::endl; TAB(level+1); std::cout << "name:" << name << std::endl; TAB(level+1); std::cout << "description:" << description << std::endl; TAB(level+1); std::cout << "definition:" << std::endl; //definition->Print(level+2); }
void VertexPoint::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << name << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "vertex_geometry:" << std::endl; if (vertex_geometry) { vertex_geometry->Print(level + 1); } else { TAB(level); std::cout << "vertex_geometry:NULL" << std::endl; } }
// get finalizer; if del, delete finalizer. // caller is responsible for updating RefHasFinalizer (special) bit. bool runtime_getfinalizer(void *p, bool del, void (**fn)(void*), const struct __go_func_type **ft) { Fintab *tab; bool res; Fin f; if(!__sync_bool_compare_and_swap(&m->holds_finlock, 0, 1)) runtime_throw("finalizer deadlock"); tab = TAB(p); runtime_lock(tab); res = lookfintab(tab, p, del, &f); runtime_unlock(tab); __sync_bool_compare_and_swap(&m->holds_finlock, 1, 0); if(__sync_bool_compare_and_swap(&m->gcing_for_finlock, 1, 0)) { __go_run_goroutine_gc(201); } if(res==false) return false; *fn = f.fn; *ft = f.ft; return true; }
void MeasureWithUnit::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "Attributes:" << std::endl; TAB(level + 1); std::cout << "value_component:" << std::endl; value_component.Print(level + 1); TAB(level + 1); std::cout << "unit_component:" << std::endl; unit_component->Print(level + 1); }
void CartesianTransformationOperator::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << GeometricRepresentationItem::name << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; TAB(level); std::cout << "Attributes:" << std::endl; if (axis1) { TAB(level + 1); std::cout << "axis1:" << std::endl; axis1->Print(level + 1); } if (axis2) { TAB(level + 1); std::cout << "axis2:" << std::endl; axis2->Print(level + 1); } TAB(level + 1); std::cout << "local_origin:" << std::endl; local_origin->Print(level + 1); TAB(level + 1); std::cout << "scale: " << scale << std::endl; TAB(level); std::cout << "Inherited Attributes:" << std::endl; GeometricRepresentationItem::Print(level + 1); }
void ElementarySurface::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << name << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; if (position != NULL) { position->Print(level+1); } }
void ShapeRepresentation::Print(int level) { TAB(level); std::cout << CLASSNAME << ":" << name << "("; std::cout << "ID:" << STEPid() << ")" << std::endl; Representation::Print(level); }
/** * Fonction permettant l'initialisation du plateau ainsi que des points chauds. Chaque points chaud est initialisé à MAX_TEMP alors que le reste est à TEMP_AMBIANT */ void generate(matrice tab) { int i, j; for (i = 0; i < tab.width; i++) { for (j = 0; j < tab.height; j++) { tab.map[TAB(i, j, tab.width)] = NO_NEIGHBOR; } } putHotPoints(tab); }
void RangeNode::print(ostream & out, unsigned d) { switch(rangeType) { case RangeType::Skip: TAB(d) << "Skiping =>" << endl; break; case RangeType::Step: TAB(d) << "Steping =>" << endl; break; case RangeType::Take: TAB(d) << "Taking =>" << endl; break; default: break; } rangeRange->print(out, d + 1); }
void QueryNode::print(ostream & out, unsigned d) { TAB(d) << "Query =>" << endl; queryOrigin->print(out, d + 1); if(queryBody != NULL) { queryBody->print(out, d + 1); } }