tudocomp
– The TU Dortmund Compression Framework
tdc::test::TestInput Class Reference

#include <util.hpp>

Inheritance diagram for tdc::test::TestInput:
tdc::io::Input

Public Member Functions

 TestInput (string_ref text, bool sentinel)
 
 TestInput (io::Path &&path, bool sentinel)
 
- Public Member Functions inherited from tdc::io::Input
 Input ()
 Constructs an empty input. More...
 
 Input (const Input &other)
 Constructs an input from another input, retaining its internal state ("cursor"). More...
 
 Input (Input &&other)
 Move constructor. More...
 
 Input (Path &&path)
 Constructs a file input reading from the file at the given path. More...
 
 Input (const string_ref &buf)
 Constructs an input reading from a string in memory. More...
 
 Input (const std::vector< uint8_t > &buf)
 Constructs an input reading from the specified byte buffer. More...
 
 Input (std::istream &stream)
 Constructs an input reading from a stream. More...
 
Inputoperator= (Input &&other)
 Move assignment operator. More...
 
Inputoperator= (const Input &other)
 Copy assignment operator. More...
 
InputView as_view () const
 Provides a view on the input that allows for random access. More...
 
InputStream as_stream () const
 Creates a stream that allows for character-wise reading of the input. More...
 
size_t size () const
 Yields the total amount of characters in the input. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from tdc::io::Input
static Input from_path (std::string path)
 Constructs a file input reading from the file at the given path. More...
 
static Input from_memory (const std::vector< uint8_t > &buf)
 Constructs a file input reading from a byte buffer. More...
 
static Input from_memory (const string_ref buf)
 Constructs a file input reading from a string in memory. More...
 

Detailed Description

Definition at line 507 of file test/test/util.hpp.

Constructor & Destructor Documentation

◆ TestInput() [1/2]

tdc::test::TestInput::TestInput ( string_ref  text,
bool  sentinel 
)
inline

Definition at line 509 of file test/test/util.hpp.

◆ TestInput() [2/2]

tdc::test::TestInput::TestInput ( io::Path &&  path,
bool  sentinel 
)
inline

Definition at line 514 of file test/test/util.hpp.


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