Mbed OS Reference
Loading...
Searching...
No Matches
base Class Reference

Base class of all SafeBool instances. More...

#include <SafeBool.h>

Inheritance diagram for base:
SafeBool< CallChainOfFunctionPointersWithContext< ContextType > > SafeBool< FunctionPointerWithContext< ContextType > > SafeBool< FunctionPointerWithContext< GattReadAuthCallbackParams * > > SafeBool< FunctionPointerWithContext< GattWriteAuthCallbackParams * > > SafeBool< FunctionPointerWithContext< const DiscoveredService * > > SafeBool< FunctionPointerWithContext< const DiscoveredCharacteristic * > > SafeBool< FunctionPointerWithContext< OnEventsToProcessCallbackContext * > > SafeBool< T >

Protected Types

typedef void(base::* BoolType_t) () const
 The bool type is a pointer to method that can be used in boolean context. More...
 

Protected Member Functions

void invalidTag () const
 Nonimplemented call, use to disallow conversion between unrelated types. More...
 
void trueTag () const
 Special member function that indicates a true value. More...
 

Detailed Description

Base class of all SafeBool instances.

This nontemplate base class exists to reduce the number of instantiation of the trueTag function.

Definition at line 42 of file common/SafeBool.h.

Member Typedef Documentation

◆ BoolType_t

typedef void(base::* BoolType_t) () const
protected

The bool type is a pointer to method that can be used in boolean context.

Definition at line 50 of file common/SafeBool.h.

Member Function Documentation

◆ invalidTag()

void invalidTag ( ) const
protected

Nonimplemented call, use to disallow conversion between unrelated types.

◆ trueTag()

void trueTag ( ) const
protected

Special member function that indicates a true value.

Definition at line 60 of file common/SafeBool.h.