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

Holds all segments of a section and provides line-aware iteration This is used internally to track line numbers across potentially duplicate sections. More...

#include <utility.h>

Classes

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

Public Member Functions

void addSegment (std::string_view content, size_t startLine)
bool empty () const
LineIterator begin () const
std::string toString () const
 Get all content as a single concatenated string (for backward compatibility).

Detailed Description

Holds all segments of a section and provides line-aware iteration This is used internally to track line numbers across potentially duplicate sections.

Definition at line 25 of file utility.h.

Member Function Documentation

◆ addSegment()

void momentum::io_detail::SectionContent::addSegment ( std::string_view content,
size_t startLine )
inline

Definition at line 27 of file utility.h.

Referenced by momentum::parseParameterLimits().

◆ begin()

LineIterator momentum::io_detail::SectionContent::begin ( ) const
inlinenodiscard

Definition at line 54 of file utility.h.

Referenced by momentum::parseParameterLimits().

◆ empty()

bool momentum::io_detail::SectionContent::empty ( ) const
inlinenodiscard

Definition at line 31 of file utility.h.

◆ toString()

std::string momentum::io_detail::SectionContent::toString ( ) const
nodiscard

Get all content as a single concatenated string (for backward compatibility).

Definition at line 45 of file utility.cpp.


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