|
netcdfpp
Header-only NetCDF C++ wrapper
|
Optional result returned by object lookup functions. More...
#include <netcdfpp.h>
Public Member Functions | |
| Maybe (std::shared_ptr< detail::Path > path_p) | |
| T | require () const |
| Returns the object or throws netCDF::Exception if the lookup failed. | |
| bool | valid () const |
| Returns true when the lookup found an object. | |
| operator bool () const | |
| Returns true when the lookup found an object. | |
Optional result returned by object lookup functions.
Maybe<T> is false when the requested object does not exist. Call require() to either receive the object or throw netCDF::Exception with a not-found message.
|
inlineexplicit |
|
inline |
Returns true when the lookup found an object.
|
inline |
Returns the object or throws netCDF::Exception if the lookup failed.
|
inline |
Returns true when the lookup found an object.