GNU Radio 3.6.5 C++ API
|
abstract factory for creating circular buffers More...
#include <gr_vmcircbuf.h>
Public Member Functions | |
virtual const char * | name () const =0 |
return name of this factory | |
virtual int | granularity ()=0 |
return granularity of mapping, typically equal to page size | |
virtual gr_vmcircbuf * | make (int size)=0 |
return a gr_vmcircbuf, or 0 if unable. | |
Protected Member Functions | |
gr_vmcircbuf_factory () | |
virtual | ~gr_vmcircbuf_factory () |
abstract factory for creating circular buffers
gr_vmcircbuf_factory::gr_vmcircbuf_factory | ( | ) | [inline, protected] |
virtual gr_vmcircbuf_factory::~gr_vmcircbuf_factory | ( | ) | [protected, virtual] |
virtual int gr_vmcircbuf_factory::granularity | ( | ) | [pure virtual] |
return granularity of mapping, typically equal to page size
Implemented in gr_vmcircbuf_createfilemapping_factory, gr_vmcircbuf_mmap_shm_open_factory, gr_vmcircbuf_mmap_tmpfile_factory, and gr_vmcircbuf_sysv_shm_factory.
Referenced by gr_vmcircbuf_sysconfig::granularity().
virtual gr_vmcircbuf* gr_vmcircbuf_factory::make | ( | int | size | ) | [pure virtual] |
return a gr_vmcircbuf, or 0 if unable.
Call this to create a doubly mapped circular buffer.
Implemented in gr_vmcircbuf_createfilemapping_factory, gr_vmcircbuf_mmap_shm_open_factory, gr_vmcircbuf_mmap_tmpfile_factory, and gr_vmcircbuf_sysv_shm_factory.
Referenced by gr_vmcircbuf_sysconfig::make().
virtual const char* gr_vmcircbuf_factory::name | ( | ) | const [pure virtual] |
return name of this factory
Implemented in gr_vmcircbuf_createfilemapping_factory, gr_vmcircbuf_mmap_shm_open_factory, gr_vmcircbuf_mmap_tmpfile_factory, and gr_vmcircbuf_sysv_shm_factory.