Horizon
Classes | Public Types | Public Member Functions | Friends | List of all members
Catch::TextFlow::Column Class Reference

Represents a column of text with specific width and indentation. More...

#include <catch_amalgamated.hpp>

Classes

class  const_iterator
 Iterates "lines" in Column and return sthem. More...
 

Public Types

using iterator = const_iterator
 

Public Member Functions

 Column (std::string const &text)
 
Columnwidth (size_t newWidth)
 
Columnindent (size_t newIndent)
 
ColumninitialIndent (size_t newIndent)
 
size_t width () const
 
const_iterator begin () const
 
const_iterator end () const
 
Columns operator+ (Column const &other)
 

Friends

std::ostream & operator<< (std::ostream &os, Column const &col)
 

Detailed Description

Represents a column of text with specific width and indentation.

When written out to a stream, it will perform linebreaking of the provided text so that the written lines fit within target width.


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