Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
momentum::SectionContent::LineIterator Class Reference

Iterator that walks through all segments while tracking line numbers. More...

#include <utility.h>

Public Member Functions

 LineIterator (const std::vector< SectionSegment > &segments)
bool getline (std::string &line)
 Get the next line from the sections.
size_t currentLine () const
 Get the current line number in the original file.

Detailed Description

Iterator that walks through all segments while tracking line numbers.

Definition at line 36 of file utility.h.

Constructor & Destructor Documentation

◆ LineIterator()

momentum::io_detail::SectionContent::LineIterator::LineIterator ( const std::vector< SectionSegment > & segments)
explicit

Definition at line 13 of file utility.cpp.

Member Function Documentation

◆ currentLine()

Get the current line number in the original file.

Definition at line 38 of file utility.cpp.

◆ getline()

Get the next line from the sections.

Returns
true if a line was read, false if end of all segments reached

Definition at line 20 of file utility.cpp.


The documentation for this class was generated from the following files: