libzmq
src
ypipe_base.hpp
Go to the documentation of this file.
1
2
/* SPDX-License-Identifier: MPL-2.0 */
3
4
#ifndef __ZMQ_YPIPE_BASE_HPP_INCLUDED__
5
#define __ZMQ_YPIPE_BASE_HPP_INCLUDED__
6
7
#include "
macros.hpp
"
8
9
namespace
zmq
10
{
11
// ypipe_base abstracts ypipe and ypipe_conflate specific
12
// classes, one is selected according to a the conflate
13
// socket option
14
15
template
<
typename
T>
class
ypipe_base_t
16
{
17
public
:
18
virtual
~ypipe_base_t
()
ZMQ_DEFAULT
;
19
virtual
void
write
(
const
T
&
value_
,
bool
incomplete_) = 0;
20
virtual
bool
unwrite
(
T
*
value_
) = 0;
21
virtual
bool
flush
() = 0;
22
virtual
bool
check_read
() = 0;
23
virtual
bool
read
(
T
*
value_
) = 0;
24
virtual
bool
probe
(
bool
(*fn_) (
const
T
&)) = 0;
25
};
26
}
27
28
#endif
zmq::ypipe_base_t::write
virtual void write(const T &value_, bool incomplete_)=0
zmq::ypipe_base_t::check_read
virtual bool check_read()=0
zmq::ypipe_base_t::unwrite
virtual bool unwrite(T *value_)=0
ZMQ_DEFAULT
#define ZMQ_DEFAULT
Definition:
macros.hpp:43
zmq::ypipe_base_t
Definition:
ypipe_base.hpp:15
T
#define T(upbtypeconst, upbtype, ctype, default_value)
zmq
Definition:
zmq.hpp:229
macros.hpp
zmq::ypipe_base_t::read
virtual bool read(T *value_)=0
value_
int value_
Definition:
gmock-matchers_test.cc:571
zmq::ypipe_base_t::flush
virtual bool flush()=0
zmq::ypipe_base_t::probe
virtual bool probe(bool(*fn_)(const T &))=0
zmq::ypipe_base_t::~ypipe_base_t
virtual ~ypipe_base_t() ZMQ_DEFAULT
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:02