From fed35394f501184e446e677059ade6f99e27f7e8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 4 Jan 2024 11:51:19 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../IO/Statistics/DtpRuntimeCollection.hpp | 4 +- include/IO/Statistics/DtpRuntimeRow.hpp | 44 +++++++++---------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/include/IO/Statistics/DtpRuntimeCollection.hpp b/include/IO/Statistics/DtpRuntimeCollection.hpp index 9d39acfd..357d053d 100644 --- a/include/IO/Statistics/DtpRuntimeCollection.hpp +++ b/include/IO/Statistics/DtpRuntimeCollection.hpp @@ -98,7 +98,7 @@ class DtpRuntimeCollection { } for ( const auto & row : collection_ ) - { + { row.Content(fileStream); } } @@ -110,4 +110,4 @@ class DtpRuntimeCollection { } // namespace egoa::IO -#endif // EGOA__IO__STATISTICS__DTP_RUNTIME_COLLECTION_HPP \ No newline at end of file +#endif // EGOA__IO__STATISTICS__DTP_RUNTIME_COLLECTION_HPP diff --git a/include/IO/Statistics/DtpRuntimeRow.hpp b/include/IO/Statistics/DtpRuntimeRow.hpp index 58d797bd..5e835d6c 100644 --- a/include/IO/Statistics/DtpRuntimeRow.hpp +++ b/include/IO/Statistics/DtpRuntimeRow.hpp @@ -23,7 +23,7 @@ namespace egoa::IO { * @see egoa::DominatingThetaPath */ class DtpRuntimeRow { - public: + public: Types::string NameOfProblem; /**< The name of the problem that is solved. */ Types::name Name; /**< The name of the instance. */ @@ -33,7 +33,7 @@ class DtpRuntimeRow { Types::count NumberOfGenerators; /**< The number of generators. */ Types::count NumberOfLoads; /**< The number of loads. */ Types::count NumberOfEdges; /**< The number of edges. */ - + Types::count NumberOfEdgesProducingNoCycle;/**< The number of edges that produce not a cycle. */ Types::count NumberOfRelaxedEdges; /**< The number of relaxed edges. */ Types::count NumberOfScannedEdges; /**< The number of scanned edges. */ @@ -51,7 +51,7 @@ class DtpRuntimeRow { , NumberOfGenerators(0) , NumberOfLoads(0) , NumberOfEdges(0) - + , NumberOfEdgesProducingNoCycle(0) , NumberOfRelaxedEdges(0) , NumberOfScannedEdges(0) @@ -75,38 +75,38 @@ class DtpRuntimeRow { NumberOfLabels = 0; } - inline static void Header ( std::ostream & os ) + inline static void Header ( std::ostream & os ) { os - << "NameOfProblem" << ",\t" + << "NameOfProblem" << ",\t" << "Name" << ",\t" << "SourceId" << ",\t" - + << "NumberOfVertices" << ",\t" << "NumberOfGenerators" << ",\t" << "NumberOfLoads" << ",\t" << "NumberOfEdges" << ",\t" - << "NumberOfScannedEdges" << ",\t" - << "NumberOfEdgesProducingNoCycle"<< ",\t" - << "NumberOfRelaxedEdges" << ",\t" - - << "NumberOfLabels" << ",\t" + << "NumberOfScannedEdges" << ",\t" + << "NumberOfEdgesProducingNoCycle"<< ",\t" + << "NumberOfRelaxedEdges" << ",\t" + + << "NumberOfLabels" << ",\t" << "GlobalElapsedMilliseconds" << ",\t" - << "\n"; + << "\n"; } - inline void Content ( std::ostream & os ) const + inline void Content ( std::ostream & os ) const { - os + os << NameOfProblem << ",\t" << Name << ",\t" << SourceId << ",\t" - + << NumberOfVertices << ",\t" << NumberOfGenerators << ",\t" << NumberOfLoads << ",\t" @@ -115,7 +115,7 @@ class DtpRuntimeRow { << NumberOfScannedEdges << ",\t" << NumberOfEdgesProducingNoCycle<< ",\t" << NumberOfRelaxedEdges << ",\t" - + << NumberOfLabels << ",\t" << GlobalElapsedMilliseconds @@ -123,7 +123,7 @@ class DtpRuntimeRow { << "\n"; } - inline DtpRuntimeRow & operator+= ( const DtpRuntimeRow & rhs ) + inline DtpRuntimeRow & operator+= ( const DtpRuntimeRow & rhs ) { NumberOfEdgesProducingNoCycle += rhs.NumberOfEdgesProducingNoCycle; NumberOfRelaxedEdges += rhs.NumberOfRelaxedEdges; @@ -143,7 +143,7 @@ class DtpRuntimeRow { } inline void WriteRowToFileWith ( Types::string const filename - , bool overwrite = false ) + , bool overwrite = false ) { #ifndef NDEBUG std::cout << "Write DTP runtime information row to: " << filename << std::endl; @@ -156,14 +156,14 @@ class DtpRuntimeRow { // file is empty fileStream.seekp(0, std::ios::end); - if ( fileStream.tellp() == 0 ) - { - DtpRuntimeRow::Header(fileStream); + if ( fileStream.tellp() == 0 ) + { + DtpRuntimeRow::Header(fileStream); } fileStream << *this; } -}; +}; } // namespace egoa::IO