Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 4, 2024
1 parent 7f09e8a commit fed3539
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions include/IO/Statistics/DtpRuntimeCollection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class DtpRuntimeCollection {
}

for ( const auto & row : collection_ )
{
{
row.Content(fileStream);
}
}
Expand All @@ -110,4 +110,4 @@ class DtpRuntimeCollection {

} // namespace egoa::IO

#endif // EGOA__IO__STATISTICS__DTP_RUNTIME_COLLECTION_HPP
#endif // EGOA__IO__STATISTICS__DTP_RUNTIME_COLLECTION_HPP
44 changes: 22 additions & 22 deletions include/IO/Statistics/DtpRuntimeRow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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. */

Expand All @@ -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. */
Expand All @@ -51,7 +51,7 @@ class DtpRuntimeRow {
, NumberOfGenerators(0)
, NumberOfLoads(0)
, NumberOfEdges(0)

, NumberOfEdgesProducingNoCycle(0)
, NumberOfRelaxedEdges(0)
, NumberOfScannedEdges(0)
Expand All @@ -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"
Expand All @@ -115,15 +115,15 @@ class DtpRuntimeRow {
<< NumberOfScannedEdges << ",\t"
<< NumberOfEdgesProducingNoCycle<< ",\t"
<< NumberOfRelaxedEdges << ",\t"

<< NumberOfLabels << ",\t"

<< GlobalElapsedMilliseconds

<< "\n";
}

inline DtpRuntimeRow & operator+= ( const DtpRuntimeRow & rhs )
inline DtpRuntimeRow & operator+= ( const DtpRuntimeRow & rhs )
{
NumberOfEdgesProducingNoCycle += rhs.NumberOfEdgesProducingNoCycle;
NumberOfRelaxedEdges += rhs.NumberOfRelaxedEdges;
Expand All @@ -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;
Expand All @@ -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

Expand Down

0 comments on commit fed3539

Please sign in to comment.