zookeeper-cpp
ZooKeeper Client for C++
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Groups
zk::exists_result Class Referencefinal

The result type of client::exists. More...

#include <zk/results.hpp>

Public Member Functions

 exists_result (const optional< zk::stat > &stat) noexcept
 
 operator bool () const
 
bool operator! () const
 
const optional< zk::stat > & stat () const
 
optional< zk::stat > & stat ()
 

Detailed Description

The result type of client::exists.

Definition at line 88 of file results.hpp.

Member Function Documentation

zk::exists_result::operator bool ( ) const
inlineexplicit

An exists_result is true if the entry exists.

Definition at line 97 of file results.hpp.

const optional<zk::stat>& zk::exists_result::stat ( ) const
inline

The zk::stat of the entry if it exists. If it does not exist, this value will be nullopt.

Definition at line 103 of file results.hpp.


The documentation for this class was generated from the following files: