feat(cpp-object-oriented-modular-refactoring): step 3 - foundation-google-style

This commit is contained in:
KOKO\Mimi
2026-08-16 04:26:14 +09:00
parent 2628ed3488
commit 042edadffb
93 changed files with 3144 additions and 3175 deletions
+5 -5
View File
@@ -46,7 +46,7 @@ std::vector<EntityIndex> expandBoundaryTarget(
std::int64_t sourceLabel = 0;
if (tryPositiveInteger(boundary.target, sourceLabel)) {
for (std::size_t node = 0U; node < domain.nodes().size(); ++node) {
if (domain.nodes()[node].sourceId.sourceLabel == sourceLabel) {
if (domain.nodes()[node].sourceId.source_label == sourceLabel) {
return {static_cast<EntityIndex>(node)};
}
}
@@ -111,9 +111,9 @@ Result<DofManager> DofManager::create(const AnalysisModel& model) {
static_cast<std::size_t>(component - 1);
auto& prescribed = prescribedByFullDof[fullDof];
if (prescribed && *prescribed != boundary.value) {
return Result<DofManager>::failure(Status::failure(
FailureCategory::input,
{{Severity::error,
return Result<DofManager>::Failure(Status::Failure(
FailureCategory::kInput,
{{Severity::kError,
"conflicting-boundary-condition",
boundary.location,
"BOUNDARY",
@@ -188,7 +188,7 @@ Result<DofManager> DofManager::create(const AnalysisModel& model) {
model.activeElements(),
elementScatters,
shellElementScatters);
return Result<DofManager>::success(DofManager{
return Result<DofManager>::Success(DofManager{
fullCount,
std::move(freeEquations),
std::move(elementScatters),