JunkBox_Lib++ (for Windows)
1.10.1
Loading...
Searching...
No Matches
RingBuffer.h
Go to the documentation of this file.
1
#ifndef __JBXL_CPP_RINGBUFFER_H_
2
#define __JBXL_CPP_RINGBUFFER_H_
3
10
#include "
tools++.h
"
11
12
13
namespace
jbxl
{
14
15
16
class
CRingBuffer
17
{
18
public
:
19
CRingBuffer
(
void
) {
init_data
();}
20
CRingBuffer
(
int
rsz,
int
dsz) {
init
(rsz, dsz);}
21
virtual
~CRingBuffer
(
void
) {
free
();}
22
23
protected
:
24
void
**
buf
;
25
26
int
bufsz
;
27
int
datasz
;
28
int
spoint
;
29
int
epoint
;
30
int
datano
;
31
32
public
:
33
int
state
;
34
BOOL
enable
;
35
36
protected
:
37
void
init_data
(
void
);
38
39
public
:
40
BOOL
init
(
int
ring_size,
int
data_size);
41
void
free
(
void
);
42
void
clear
(
void
);
43
44
void
*
get
(
void
);
45
void
*
get
(
int
pos);
46
void
put
(
void
* ptr);
47
void
put
(
void
* ptr,
int
pos);
48
};
49
50
51
}
// namespace
52
53
54
#endif
jbxl::CRingBuffer
Definition
RingBuffer.h:17
jbxl::CRingBuffer::bufsz
int bufsz
Definition
RingBuffer.h:26
jbxl::CRingBuffer::enable
BOOL enable
Definition
RingBuffer.h:34
jbxl::CRingBuffer::datasz
int datasz
Definition
RingBuffer.h:27
jbxl::CRingBuffer::CRingBuffer
CRingBuffer(int rsz, int dsz)
Definition
RingBuffer.h:20
jbxl::CRingBuffer::init
BOOL init(int ring_size, int data_size)
Definition
RingBuffer.cpp:26
jbxl::CRingBuffer::CRingBuffer
CRingBuffer(void)
Definition
RingBuffer.h:19
jbxl::CRingBuffer::datano
int datano
Definition
RingBuffer.h:30
jbxl::CRingBuffer::state
int state
Definition
RingBuffer.h:33
jbxl::CRingBuffer::buf
void ** buf
Definition
RingBuffer.h:24
jbxl::CRingBuffer::put
void put(void *ptr)
Definition
RingBuffer.cpp:108
jbxl::CRingBuffer::~CRingBuffer
virtual ~CRingBuffer(void)
Definition
RingBuffer.h:21
jbxl::CRingBuffer::get
void * get(void)
Definition
RingBuffer.cpp:83
jbxl::CRingBuffer::free
void free(void)
Definition
RingBuffer.cpp:53
jbxl::CRingBuffer::init_data
void init_data(void)
Definition
RingBuffer.cpp:13
jbxl::CRingBuffer::spoint
int spoint
Definition
RingBuffer.h:28
jbxl::CRingBuffer::clear
void clear(void)
Definition
RingBuffer.cpp:69
jbxl::CRingBuffer::epoint
int epoint
Definition
RingBuffer.h:29
jbxl
Definition
Brep.h:29
tools++.h
ツールライブラリ ヘッダ for C++
BasicLib
RingBuffer.h
Generated on Sat Oct 12 2024 19:42:08 for JunkBox_Lib++ (for Windows) by
1.11.0