Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
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

Definition at line 329 of file clara.hpp.

Member Function Documentation

◆ begin()

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

Definition at line 331 of file clara.hpp.

331{ return iterator( *this ); }

◆ end()

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

Definition at line 332 of file clara.hpp.

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

◆ operator+()

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

Definition at line 338 of file clara.hpp.

338 {
339 Columns combined = *this;
340 combined += col;
341 return combined;
342 }

◆ operator+=()

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

Definition at line 334 of file clara.hpp.

334 {
335 m_columns.push_back( col );
336 return *this;
337 }

◆ toString()

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

Definition at line 357 of file clara.hpp.

357 {
358 std::ostringstream oss;
359 oss << *this;
360 return oss.str();
361 }

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 344 of file clara.hpp.

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

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