High level Bluetooth Low Energy API and radio abstraction layer
SafeBool< T > Class Template Reference
|operator BoolType_t () const|
|Bool operator implementation, derived class has to provide bool toBool() const function. |
|typedef void(base::*||BoolType_t )() const|
|The bool type is a pointer to method which can be used in boolean context. |
|void||invalidTag () const|
|Non implemented call, use to disallow conversion between unrelated types. |
|void||trueTag () const|
|Member function which indicate true value. |
class SafeBool< T >
template class SafeBool use CRTP to made boolean conversion easy and correct.
Derived class should implement the function bool toBool() const to make this work. Inheritance should be public.
- Template Parameters:
T Type of the derived class
Member Typedef Documentation
|typedef void(base::* BoolType_t)() const
Member Function Documentation
|void invalidTag||(||)|| const
Non implemented call, use to disallow conversion between unrelated types.
Generated on Wed Sep 14 2016 13:41:09 by 1.7.2