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

A part of a result. The behavior depends on the type of op provided to the original transaction. More...

#include <zk/multi.hpp>

Public Member Functions

 part (op_type, std::nullptr_t) noexcept
 
 part (create_result) noexcept
 
 part (set_result) noexcept
 
 part (const part &)
 
 part (part &&) noexcept
 
partoperator= (const part &)=delete
 
partoperator= (part &&)=delete
 
op_type type () const
 The op_type of the op that caused this result. More...
 
const create_resultas_create () const
 Get the create-specific result data. More...
 
const set_resultas_set () const
 Get the set-specific result data. More...
 

Detailed Description

A part of a result. The behavior depends on the type of op provided to the original transaction.

Definition at line 246 of file multi.hpp.

Member Function Documentation

const create_result & zk::multi_result::part::as_create ( ) const

Get the create-specific result data.

Exceptions
std::logic_errorif the type is not op_type::set.

Definition at line 270 of file multi.cpp.

const set_result & zk::multi_result::part::as_set ( ) const

Get the set-specific result data.

Exceptions
std::logic_errorif the type is not op_type::set.

Definition at line 275 of file multi.cpp.

op_type zk::multi_result::part::type ( ) const
inline

The op_type of the op that caused this result.

Definition at line 262 of file multi.hpp.


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