All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
hext::PrependPipe Class Referencefinal

Prepends a given string to a string. More...

Inheritance diagram for hext::PrependPipe:
Inheritance graph
[legend]
Collaboration diagram for hext::PrependPipe:
Collaboration graph
[legend]

Public Member Functions

 PrependPipe (std::string prefix) noexcept
 Constructs a PrependPipe. More...
 
std::string transform (std::string str) const override
 Prepends a given string to str. More...
 
- Public Member Functions inherited from hext::Cloneable< PrependPipe, StringPipe >
virtual std::unique_ptr
< StringPipe
clone () const
 Clones objects of template type Derived and returns an owning pointer to the newly allocated Base. More...
 
- Public Member Functions inherited from hext::StringPipe
 StringPipe () noexcept
 
 StringPipe (const StringPipe &other)
 
 StringPipe (StringPipe &&) noexcept=default
 
StringPipeoperator= (const StringPipe &other)
 
StringPipeoperator= (StringPipe &&) noexcept=default
 
virtual ~StringPipe () noexcept=default
 
std::string pipe (std::string str) const
 Calls StringPipe::transform successively until the whole StringPipe chain was traversed. More...
 
void append (std::unique_ptr< StringPipe > pipe) noexcept
 Append a StringPipe at the end of the chain. More...
 
template<typename StringPipeType , typename... Args>
void emplace (Args &&...arg)
 Construct a StringPipe at the end of the chain. More...
 

Detailed Description

Prepends a given string to a string.

Definition at line 31 of file PrependPipe.h.

Constructor & Destructor Documentation

hext::PrependPipe::PrependPipe ( std::string  prefix)
explicitnoexcept

Constructs a PrependPipe.

Parameters
prefixThe string to prepend.

Member Function Documentation

std::string hext::PrependPipe::transform ( std::string  str) const
overridevirtual

Prepends a given string to str.

Implements hext::StringPipe.


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