aligator  0.16.0
A versatile and efficient C++ library for real-time constrained 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 ()=default
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()
explicitdefault

Member Function Documentation

◆ printHeadline()

void aligator::Logger::printHeadline()

◆ log()

void aligator::Logger::log()

◆ finish()

void aligator::Logger::finish(boolconv)

◆ reset()

void aligator::Logger::reset()

◆ addColumn() [1/2]

void aligator::Logger::addColumn(std::string_viewname,
uintwidth,
std::string_viewformat )

◆ addColumn() [2/2]

void aligator::Logger::addColumn(LogColumncol)
inline

Definition at line 42 of file logger.hpp.

◆ addEntry() [1/2]

void aligator::Logger::addEntry(std::string_viewname,
doubleval )

◆ addEntry() [2/2]

void aligator::Logger::addEntry(std::string_viewname,
size_tval )

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: