libhext: C++ Library Documentation  1.0.9-c8ac8b6
Public Member Functions | List of all members
hext::AppendPipe Class Referencefinal

Appends a given string to a string. More...

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

Public Member Functions

 AppendPipe (std::string suffix)
 Constructs an AppendPipe. More...
 
std::string transform (std::string str) const override
 Appends a given string to str. More...
 
- Public Member Functions inherited from hext::Cloneable< AppendPipe, StringPipe >
virtual std::unique_ptr< StringPipeclone () const override
 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

Appends a given string to a string.

Definition at line 32 of file AppendPipe.h.

Constructor & Destructor Documentation

◆ AppendPipe()

hext::AppendPipe::AppendPipe ( std::string  suffix)
explicit

Constructs an AppendPipe.

Parameters
suffixThe string to append.

Member Function Documentation

◆ transform()

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

Appends a given string to str.

Implements hext::StringPipe.


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