27template <
typename TYPE>
40 virtual const TYPE&
getVal()
const = 0;
79 [[nodiscard]] std::string
className()
const override;
92 [[nodiscard]] std::string
toString(
bool enter)
const override;
99template <
typename TYPE>
105template<
typename TYPE>
108 std::stringstream ss;
112 if (enter) ss <<
"\n";
Base class providing polymorphic string conversion capabilities.
Definition printable.h:25
static std::string formatString(const TYPE &t)
Universal value-to-string conversion.
Base class for linked value containers with formatted output.
Definition wrapper.h:28
virtual wrapper * getPNext() const =0
Retrieves next node in container sequence.
virtual wrapper * getPPrev() const =0
Retrieves previous node in container sequence.
virtual const TYPE & getVal() const =0
Accesses the contained value (immutable).
virtual TYPE & getVal()=0
Accesses the contained value (mutable).
virtual void setVal(TYPE data)=0
Updates the contained value.
std::string className() const override
Provides class identifier for diagnostics. See original::printable::className()
Definition wrapper.h:100
~wrapper() override=default
Destructor for the wrapper class.
std::string toString(bool enter) const override
Generates formatted diagnostic string. See original::printable::toString()
Definition wrapper.h:106
Main namespace for the project Original.
Definition algorithms.h:21
Interface for polymorphic string formatting and output.