|
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 |
|
|
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 |
|
template<typename TYPE>
class original::wrapper< TYPE >
Base class for linked value containers with formatted output.
- Template Parameters
-
TYPE | Type of encapsulated value |
Combines three core capabilities:
- Value storage and access
- Node navigation
- Polymorphic string representation through printable interface