diff --git a/platform-dependent-components/problem-solver/cxx/identifiers-module/agent/translate_main_system_idtfs_from_sc_to_file_agent.cpp b/platform-dependent-components/problem-solver/cxx/identifiers-module/agent/translate_main_system_idtfs_from_sc_to_file_agent.cpp index cef92546..95e0b272 100644 --- a/platform-dependent-components/problem-solver/cxx/identifiers-module/agent/translate_main_system_idtfs_from_sc_to_file_agent.cpp +++ b/platform-dependent-components/problem-solver/cxx/identifiers-module/agent/translate_main_system_idtfs_from_sc_to_file_agent.cpp @@ -39,7 +39,8 @@ ScResult TranslateMainSystemIdtfsFromScToFileAgent::DoProgram(ScAction & action) if (!systemIdentifier.empty() && !mainIdentifier.empty() && !stringType.empty()) { streamIdtfs << R"({")" << mainIdentifier << R"(", )" - << R"({")" << systemIdentifier << R"(", ")" << stringType << R"("}},)" << "\n"; + << R"({")" << systemIdentifier << R"(", ")" << stringType << R"("}},)" + << "\n"; } } catch (utils::ScException const & exception) @@ -123,8 +124,7 @@ std::string TranslateMainSystemIdtfsFromScToFileAgent::GetMainIdtfAndVerifyNode( while (iterator5PtrCheckOnlyOneIdtf->Next()) { mainAnotherIdentifierLink = iterator5PtrCheckOnlyOneIdtf->Get(2); - isLangRu = - m_context.CheckConnector(ScKeynodes::lang_ru, mainAnotherIdentifierLink, ScType::ConstPermPosArc); + isLangRu = m_context.CheckConnector(ScKeynodes::lang_ru, mainAnotherIdentifierLink, ScType::ConstPermPosArc); if (isLangRu) return identifier; diff --git a/platform-dependent-components/problem-solver/cxx/identifiers-module/agent/translate_main_system_idtfs_from_sc_to_file_agent.hpp b/platform-dependent-components/problem-solver/cxx/identifiers-module/agent/translate_main_system_idtfs_from_sc_to_file_agent.hpp index 99c179d3..f03d997a 100644 --- a/platform-dependent-components/problem-solver/cxx/identifiers-module/agent/translate_main_system_idtfs_from_sc_to_file_agent.hpp +++ b/platform-dependent-components/problem-solver/cxx/identifiers-module/agent/translate_main_system_idtfs_from_sc_to_file_agent.hpp @@ -74,9 +74,8 @@ class TranslateMainSystemIdtfsFromScToFileAgent : public ScActionInitiatedAgent {ScType::VarPermNegArc, "sc_main_arc"}, {ScType::VarTempPosArc, "sc_main_arc"}, {ScType::VarTempNegArc, "sc_main_arc"}}; - + private: - std::string GetStrScType(ScAddr const & node); static std::string GetSystemIdtfAndVerifyNode(ScMemoryContext & m_memoryCtx, ScAddr const & node); static std::string GetMainIdtfAndVerifyNode(ScMemoryContext & m_memoryCtx, ScAddr const & node); diff --git a/platform-dependent-components/problem-solver/cxx/sections-module/agent/add_section_agent.cpp b/platform-dependent-components/problem-solver/cxx/sections-module/agent/add_section_agent.cpp index b9d6036a..a84b5c84 100644 --- a/platform-dependent-components/problem-solver/cxx/sections-module/agent/add_section_agent.cpp +++ b/platform-dependent-components/problem-solver/cxx/sections-module/agent/add_section_agent.cpp @@ -80,13 +80,10 @@ ScAddr AddSectionAgent::GenerateSection( ScAddr newSectionArc = m_context.GenerateConnector(ScType::ConstPermPosArc, decompositionTuple, newSection); if (m_context.IsElement(lastSection)) { - SC_AGENT_LOG_DEBUG("Last section system identifier is \"" + m_context.GetElementSystemIdentifier(lastSection) + "\"."); + SC_AGENT_LOG_DEBUG( + "Last section system identifier is \"" + m_context.GetElementSystemIdentifier(lastSection) + "\"."); ScIterator5Ptr lastSectionIterator = m_context.CreateIterator5( - decompositionTuple, - ScType::ConstPermPosArc, - lastSection, - ScType::ConstTempPosArc, - SectionsKeynodes::rrel_last); + decompositionTuple, ScType::ConstPermPosArc, lastSection, ScType::ConstTempPosArc, SectionsKeynodes::rrel_last); if (lastSectionIterator->Next()) { ScAddr previousSectionArc = lastSectionIterator->Get(1); diff --git a/platform-dependent-components/problem-solver/cxx/sections-module/agent/remove_section_agent.cpp b/platform-dependent-components/problem-solver/cxx/sections-module/agent/remove_section_agent.cpp index 598cd4c2..e82f1633 100644 --- a/platform-dependent-components/problem-solver/cxx/sections-module/agent/remove_section_agent.cpp +++ b/platform-dependent-components/problem-solver/cxx/sections-module/agent/remove_section_agent.cpp @@ -81,7 +81,8 @@ bool RemoveSectionAgent::RemoveSection(ScAddr const & section) for (size_t i = 0; i < searchResult.Size(); i++) { ScAddr parentSection = searchResult[i][sections_aliases::PARENT_SECTION]; - SC_AGENT_LOG_DEBUG("Parent section system idtf is " << m_context.GetElementSystemIdentifier(parentSection) << "."); + SC_AGENT_LOG_DEBUG( + "Parent section system idtf is " << m_context.GetElementSystemIdentifier(parentSection) << "."); HandleSection(searchResult[i], section); HandleParentSection(searchResult[i], parentSection); } @@ -152,8 +153,7 @@ void RemoveSectionAgent::HandleNeighboringSections(ScAddr const & tuple, ScAddr // If current element is the first and the last if (!m_context.IsElement(currentSectionEdge)) { - ScIterator3Ptr currentSectionEdgeIterator = - m_context.CreateIterator3(tuple, ScType::ConstPermPosArc, section); + ScIterator3Ptr currentSectionEdgeIterator = m_context.CreateIterator3(tuple, ScType::ConstPermPosArc, section); if (currentSectionEdgeIterator->Next()) { currentSectionEdge = currentSectionEdgeIterator->Get(1); diff --git a/platform-dependent-components/problem-solver/cxx/sections-module/builder/sections_builder.cpp b/platform-dependent-components/problem-solver/cxx/sections-module/builder/sections_builder.cpp index b0959ba4..cc352591 100644 --- a/platform-dependent-components/problem-solver/cxx/sections-module/builder/sections_builder.cpp +++ b/platform-dependent-components/problem-solver/cxx/sections-module/builder/sections_builder.cpp @@ -23,9 +23,7 @@ void sections_builder::buildDecompositionTupleTemplate( ScType::VarPermPosArc, SectionsKeynodes::nrel_entity_decomposition); scTemplate.Triple( - sections_aliases::DECOMPOSITION_TUPLE, - ScType::VarPermPosArc >> sections_aliases::EDGE_TO_DELETE, - childSection); + sections_aliases::DECOMPOSITION_TUPLE, ScType::VarPermPosArc >> sections_aliases::EDGE_TO_DELETE, childSection); } void sections_builder::buildDecompositionTupleTemplate(ScTemplate & scTemplate, ScAddr const & section)