|
| threadBase () noexcept=default |
| Default constructor.
|
|
| ~threadBase () noexcept override=default |
| Destructor.
|
|
| threadBase (const threadBase &)=delete |
| Deleted copy constructor.
|
|
threadBase & | operator= (const threadBase &)=delete |
| Deleted copy assignment.
|
|
| threadBase (threadBase &&other) noexcept=default |
| Default move constructor.
|
|
threadBase & | operator= (threadBase &&other) noexcept=default |
| Default move assignment.
|
|
| operator bool () const |
| Check if thread is valid.
|
|
bool | operator! () const |
| Check if thread is not valid.
|
|
virtual bool | joinable () const =0 |
| Check if thread is joinable.
|
|
virtual void | join ()=0 |
| Wait for thread to complete execution.
|
|
virtual void | detach ()=0 |
| Detach thread from handle.
|
|
std::string | className () const override |
| Gets the class name for type identification.
|
|
std::string | toString (bool enter) const override |
| Generates formatted string representation.
|
|
virtual integer | compareTo (const DERIVED &other) const =0 |
| Compares the current object with another of the same type.
|
|
bool | operator== (const DERIVED &other) const |
| Checks if the current object is equal to another.
|
|
bool | operator!= (const DERIVED &other) const |
| Checks if the current object is not equal to another.
|
|
bool | operator< (const DERIVED &other) const |
| Checks if the current object is less than another.
|
|
bool | operator> (const DERIVED &other) const |
| Checks if the current object is greater than another.
|
|
bool | operator<= (const DERIVED &other) const |
| Checks if the current object is less than or equal to another.
|
|
bool | operator>= (const DERIVED &other) const |
| Checks if the current object is greater than or equal to another.
|
|
virtual | ~comparable ()=default |
| Virtual destructor for proper cleanup of derived objects.
|
|
virtual u_integer | toHash () const noexcept |
| Computes the hash of the object.
|
|
virtual bool | equals (const DERIVED &other) const noexcept |
| Compares two objects for equality.
|
|
virtual | ~hashable ()=0 |
| Virtual destructor.
|
|
| 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<Printable TYPE> |
static std::string | formatString (const TYPE &t) |
| Specialization for printable types.
|
|
template<EnumType TYPE> |
static std::string | formatString (const TYPE &t) |
| Specialization for enum types.
|
|
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 DERIVED>
class original::threadBase< DERIVED >
Base class for thread implementations.
Provides common thread functionality and interface
Key Features:
- Manages thread joinable state
- Provides basic thread validity checks
- Non-copyable but movable
- Serves as base for both pThread and thread implementations
- Note
- This is an abstract base class and cannot be instantiated directly