|
ndn-embeds 0.1.0
Lightweight NDN protocol stack for embedded systems
|
#include <ndn/common.hpp>
Public Member Functions | |
| bool | ok () const |
| Check if the operation succeeded. | |
| operator bool () const | |
| Implicit conversion to bool. | |
Public Attributes | |
| T | value |
| Result value. | |
| Error | error |
| Error code. | |
Result type template.
A type for returning both a value and an error code without using exceptions.
| T | Type of the value returned on success |
Definition at line 147 of file common.hpp.
|
inline |
Check if the operation succeeded.
Definition at line 155 of file common.hpp.
References ndn::Result< T >::error.
Referenced by ndn::Result< T >::operator bool().
|
inlineexplicit |
Implicit conversion to bool.
Definition at line 161 of file common.hpp.
References ndn::Result< T >::ok().
| Error ndn::Result< T >::error |
| T ndn::Result< T >::value |
Result value.
Definition at line 148 of file common.hpp.
Referenced by ndn::Link::fromData(), ndn::TlvDecoder::readNonNegativeInteger(), and ndn::TlvDecoder::readVarNumber().