aligator  0.6.1
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
aligator::Logger Struct Reference

A table logging utility to log the trace of the numerical solvers. More...

#include <aligator/utils/logger.hpp>

Collaboration diagram for aligator::Logger:
[legend]

Public Member Functions

 Logger ()
 
void printHeadline ()
 
void log ()
 
void finish (bool conv)
 
void reset ()
 
void addColumn (std::string_view name, uint width, std::string_view format)
 
void addColumn (LogColumn col)
 
void addEntry (std::string_view name, double val)
 
void addEntry (std::string_view name, size_t val)
 

Public Attributes

bool active = true
 

Static Public Attributes

static constexpr std::string_view join_str = "|"
 

Protected Attributes

std::vector< std::string_view > m_colNames
 
std::map< std::string_view, std::pair< uint, std::string > > m_colSpecs
 
std::map< std::string_view, std::string > m_currentLine
 

Detailed Description

A table logging utility to log the trace of the numerical solvers.

Definition at line 37 of file logger.hpp.

Constructor & Destructor Documentation

◆ Logger()

aligator::Logger::Logger ( )

Member Function Documentation

◆ printHeadline()

void aligator::Logger::printHeadline ( )

◆ log()

void aligator::Logger::log ( )

◆ finish()

void aligator::Logger::finish ( bool conv)

◆ reset()

void aligator::Logger::reset ( )

◆ addColumn() [1/2]

void aligator::Logger::addColumn ( std::string_view name,
uint width,
std::string_view format )

◆ addColumn() [2/2]

void aligator::Logger::addColumn ( LogColumn col)
inline

Definition at line 49 of file logger.hpp.

◆ addEntry() [1/2]

void aligator::Logger::addEntry ( std::string_view name,
double val )

◆ addEntry() [2/2]

void aligator::Logger::addEntry ( std::string_view name,
size_t val )

Member Data Documentation

◆ active

bool aligator::Logger::active = true

Definition at line 38 of file logger.hpp.

◆ join_str

constexpr std::string_view aligator::Logger::join_str = "|"
staticconstexpr

Definition at line 39 of file logger.hpp.

◆ m_colNames

std::vector<std::string_view> aligator::Logger::m_colNames
protected

Definition at line 56 of file logger.hpp.

◆ m_colSpecs

std::map<std::string_view, std::pair<uint, std::string> > aligator::Logger::m_colSpecs
protected

Definition at line 57 of file logger.hpp.

◆ m_currentLine

std::map<std::string_view, std::string> aligator::Logger::m_currentLine
protected

Definition at line 58 of file logger.hpp.


The documentation for this struct was generated from the following file: