tudocomp
– The TU Dortmund Compression Framework
tdc::ViewLiterals Class Reference

A literal iterator that yields every character from a View. More...

#include <Literal.hpp>

Inheritance diagram for tdc::ViewLiterals:
tdc::LiteralIterator

Public Member Functions

 ViewLiterals (View view)
 Constructor. More...
 
bool has_next () const
 Tests whether there are more literals in the stream. More...
 
Literal next ()
 Yields the next literal from the stream. More...
 

Detailed Description

A literal iterator that yields every character from a View.

Definition at line 41 of file Literal.hpp.

Constructor & Destructor Documentation

◆ ViewLiterals()

tdc::ViewLiterals::ViewLiterals ( View  view)
inline

Constructor.

Parameters
viewThe view to iterate over.

Definition at line 50 of file Literal.hpp.

Member Function Documentation

◆ has_next()

bool tdc::ViewLiterals::has_next ( ) const
inline

Tests whether there are more literals in the stream.

Returns
true if there are more literals in the stream, false otherwise.

Definition at line 56 of file Literal.hpp.

◆ next()

Literal tdc::ViewLiterals::next ( )
inline

Yields the next literal from the stream.

Returns
The next literal from the stream.

Definition at line 62 of file Literal.hpp.


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