ORIGINAL
|
Base class for linked value containers with formatted output. More...
#include <wrapper.h>
Public Member Functions | |
virtual TYPE & | getVal ()=0 |
Accesses the contained value (mutable). | |
virtual const TYPE & | getVal () const =0 |
Accesses the contained value (immutable). | |
virtual void | setVal (TYPE data)=0 |
Updates the contained value. | |
virtual wrapper * | getPPrev () const =0 |
Retrieves previous node in container sequence. | |
virtual wrapper * | getPNext () const =0 |
Retrieves next node in container sequence. | |
~wrapper () override=default | |
Destructor for the wrapper class. | |
std::string | className () const override |
Provides class identifier for diagnostics. See original::printable::className() | |
std::string | toString (bool enter) const override |
Generates formatted diagnostic string. See original::printable::toString() | |
![]() | |
operator std::string () const | |
Explicit conversion to std::string. | |
operator const char * () const | |
Explicit conversion to C-style string. | |
const char * | toCString (bool enter) const |
Direct C-string access with formatting control. | |
template<typename TYPE> | |
auto | formatString (const TYPE &t) -> std::string |
template<typename TYPE> | |
auto | formatCString (const TYPE &t) -> const char * |
template<typename TYPE> | |
auto | formatEnum (const TYPE &t) -> std::string |
template<typename TYPE> | |
auto | formatString (TYPE *const &ptr) -> std::string |
Additional Inherited Members | |
![]() | |
template<typename TYPE> | |
static std::string | formatString (const TYPE &t) |
Universal value-to-string conversion. | |
template<typename TYPE> | |
static std::string | formatString (TYPE *const &ptr) |
Pointer-specific formatting. | |
template<typename TYPE> | |
static const char * | formatCString (const TYPE &t) |
C-string cache for temporary usage. | |
template<typename TYPE> | |
static std::string | formatEnum (const TYPE &t) |
Enum formatting utility. | |
template<> | |
auto | formatString (const char &t) -> std::string |
template<> | |
auto | formatString (const bool &t) -> std::string |
template<> | |
auto | formatString (const char *const &ptr) -> std::string |
Base class for linked value containers with formatted output.
TYPE | Type of encapsulated value |
Combines three core capabilities:
|
overridedefault |
Destructor for the wrapper class.
The destructor ensures proper cleanup of the object. Since wrapper
is an abstract base class, the destructor is virtual to allow derived classes to perform their own cleanup as needed before the base class destructor is invoked.
|
nodiscardoverridevirtual |
Provides class identifier for diagnostics. See original::printable::className()
Base implementation returns "wrapper".
Reimplemented from original::printable.
|
pure virtual |
Retrieves next node in container sequence.
Implemented in original::hashTable< K_TYPE, V_TYPE, ALLOC, HASH >::hashNode.
|
pure virtual |
Retrieves previous node in container sequence.
Implemented in original::hashTable< K_TYPE, V_TYPE, ALLOC, HASH >::hashNode.
|
pure virtual |
Accesses the contained value (immutable).
Implemented in original::hashTable< K_TYPE, V_TYPE, ALLOC, HASH >::hashNode.
|
pure virtual |
Accesses the contained value (mutable).
Implemented in original::hashTable< K_TYPE, V_TYPE, ALLOC, HASH >::hashNode.
|
pure virtual |
Updates the contained value.
data | New value to store. |
Implemented in original::hashTable< K_TYPE, V_TYPE, ALLOC, HASH >::hashNode.
|
nodiscardoverridevirtual |
Generates formatted diagnostic string. See original::printable::toString()
enter | Add trailing newline when true. |
Reimplemented from original::printable.