aligator  0.10.0
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
 

Protected Attributes

std::vector< std::string_view > m_colNames
 
boost::unordered_map< std::string_view, std::pair< uint, std::string > > m_colSpecs
 
boost::unordered_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 31 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 42 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 32 of file logger.hpp.

◆ m_colNames

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

Definition at line 49 of file logger.hpp.

◆ m_colSpecs

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

Definition at line 51 of file logger.hpp.

◆ m_currentLine

boost::unordered_map<std::string_view, std::string> aligator::Logger::m_currentLine
protected

Definition at line 52 of file logger.hpp.


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