mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 06:32:09 +00:00
Remove _t suffixes from public types
Rename header-scope aliases, enums, and helper types while retaining descriptive names where dropping the suffix would create a collision. Generated with the assistance of an AI coding tool.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
using namespace ifcopenshell::geom;
|
||||
|
||||
namespace {
|
||||
taxonomy::boolean_result::operation_t boolean_op_type(IfcSchema::IfcBooleanOperator::Value op) {
|
||||
taxonomy::boolean_result::operation_type boolean_op_type(IfcSchema::IfcBooleanOperator::Value op) {
|
||||
if (op == IfcSchema::IfcBooleanOperator::IfcBooleanOperator_DIFFERENCE) {
|
||||
return taxonomy::boolean_result::SUBTRACTION;
|
||||
} else if (op == IfcSchema::IfcBooleanOperator::IfcBooleanOperator_INTERSECTION) {
|
||||
|
||||
@@ -23,7 +23,7 @@ using namespace ifcopenshell::geom;
|
||||
|
||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcCompositeCurve& inst) {
|
||||
auto loop = taxonomy::make<taxonomy::loop>();
|
||||
taxonomy::piecewise_function::spans_t spans;
|
||||
taxonomy::piecewise_function::span_list spans;
|
||||
|
||||
#ifdef SCHEMA_HAS_IfcSegment
|
||||
// 4x3
|
||||
|
||||
@@ -30,7 +30,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcGradientCurve& inst) {
|
||||
|
||||
auto segments = inst.Segments();
|
||||
|
||||
taxonomy::piecewise_function::spans_t spans;
|
||||
taxonomy::piecewise_function::span_list spans;
|
||||
|
||||
for (auto& segment : segments) {
|
||||
if (segment.as<IfcSchema::IfcCurveSegment>()) {
|
||||
|
||||
@@ -63,7 +63,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcOffsetCurveByDistances& inst
|
||||
double start = basis_curve_fn->start();
|
||||
double basis_curve_length = basis_curve_fn->length();
|
||||
|
||||
taxonomy::piecewise_function::spans_t offset_spans;
|
||||
taxonomy::piecewise_function::span_list offset_spans;
|
||||
|
||||
#if defined SCHEMA_HAS_IfcDistanceExpression
|
||||
double first_distance = first_offset_value.DistanceAlong();
|
||||
|
||||
@@ -31,7 +31,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcSegmentedReferenceCurve& ins
|
||||
|
||||
auto segments = inst.Segments();
|
||||
|
||||
taxonomy::piecewise_function::spans_t spans;
|
||||
taxonomy::piecewise_function::span_list spans;
|
||||
for (auto& segment : segments) {
|
||||
if (auto cseg = segment.as<IfcSchema::IfcCurveSegment>()) {
|
||||
// @todo check that we don't get a mixture of implicit and explicit definitions
|
||||
|
||||
@@ -118,10 +118,10 @@ std::vector<IfcSchema::IfcProduct> mapping::products_represented_by(const IfcSch
|
||||
}
|
||||
|
||||
namespace {
|
||||
std::vector<IfcSchema::IfcProduct> filter_products(const std::vector<IfcSchema::IfcProduct>& unfiltered_products, const std::vector<filter_t>& filters) {
|
||||
std::vector<IfcSchema::IfcProduct> filter_products(const std::vector<IfcSchema::IfcProduct>& unfiltered_products, const std::vector<filter_function>& filters) {
|
||||
std::vector<IfcSchema::IfcProduct> ifcproducts;
|
||||
for (auto& prod : unfiltered_products) {
|
||||
if (boost::all(filters, [prod](const filter_t& f) { return f(prod); })) {
|
||||
if (boost::all(filters, [prod](const filter_function& f) { return f(prod); })) {
|
||||
ifcproducts.push_back(prod);
|
||||
}
|
||||
}
|
||||
@@ -228,7 +228,7 @@ std::vector<express::base> mapping::find_openings(const express::base& inst) {
|
||||
}
|
||||
|
||||
|
||||
void mapping::get_representations(std::vector<geometry_conversion_task>& tasks, std::vector<filter_t>& filters) {
|
||||
void mapping::get_representations(std::vector<geometry_conversion_task>& tasks, std::vector<filter_function>& filters) {
|
||||
std::vector<IfcSchema::IfcRepresentation> representations;
|
||||
const bool has_context_ids = settings_.get<settings::ContextIds>().has();
|
||||
const bool uses_priorities = !has_context_ids && settings_.get<settings::ContextPriorities>().has();
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace geom {
|
||||
initialize_units_();
|
||||
}
|
||||
virtual ifcopenshell::geom::taxonomy::ptr map(const express::base&);
|
||||
virtual void get_representations(std::vector<geometry_conversion_task>& tasks, std::vector<filter_t>& filters);
|
||||
virtual void get_representations(std::vector<geometry_conversion_task>& tasks, std::vector<filter_function>& filters);
|
||||
virtual std::map<std::string, express::base> get_layers(const express::base&);
|
||||
virtual void initialize_settings();
|
||||
virtual double get_length_unit() const { return length_unit_; }
|
||||
|
||||
Reference in New Issue
Block a user