Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::clara::TextFlow::Columns Class Reference

#include <clara.hpp>

Classes

class  iterator
 

Public Types

using const_iterator = iterator
 

Public Member Functions

auto begin () const -> iterator
 
auto end () const -> iterator
 
auto operator+= (Column const &col) -> Columns &
 
auto operator+ (Column const &col) -> Columns
 
auto toString () const -> std::string
 

Friends

std::ostream & operator<< (std::ostream &os, Columns const &cols)
 

Detailed Description

Definition at line 251 of file clara.hpp.

Member Typedef Documentation

◆ const_iterator

Member Function Documentation

◆ begin()

auto Catch::clara::TextFlow::Columns::begin ( ) const -> iterator
inline

Definition at line 328 of file clara.hpp.

328{ return iterator(*this); }

◆ end()

auto Catch::clara::TextFlow::Columns::end ( ) const -> iterator
inline

Definition at line 329 of file clara.hpp.

329{ return { *this, iterator::EndTag() }; }
Here is the caller graph for this function:

◆ operator+()

auto Catch::clara::TextFlow::Columns::operator+ ( Column const & col) -> Columns
inline

Definition at line 335 of file clara.hpp.

335 {
336 Columns combined = *this;
337 combined += col;
338 return combined;
339 }

◆ operator+=()

auto Catch::clara::TextFlow::Columns::operator+= ( Column const & col) -> Columns&
inline

Definition at line 331 of file clara.hpp.

331 {
332 m_columns.push_back(col);
333 return *this;
334 }

◆ toString()

auto Catch::clara::TextFlow::Columns::toString ( ) const -> std::string
inline

Definition at line 354 of file clara.hpp.

354 {
355 std::ostringstream oss;
356 oss << *this;
357 return oss.str();
358 }

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
Columns const & cols )
friend

Definition at line 341 of file clara.hpp.

341 {
342
343 bool first = true;
344 for (auto line : cols) {
345 if (first)
346 first = false;
347 else
348 os << "\n";
349 os << line;
350 }
351 return os;
352 }
os_t os

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