gr_head.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef INCLUDED_GR_HEAD_H
00024 #define INCLUDED_GR_HEAD_H
00025
00026 #include <gr_sync_block.h>
00027 #include <stddef.h>
00028
00036 class gr_head : public gr_sync_block
00037 {
00038 friend gr_block_sptr gr_make_head (size_t sizeof_stream_item, int nitems);
00039 gr_head (size_t sizeof_stream_item, int nitems);
00040
00041 int d_nitems;
00042 int d_ncopied_items;
00043
00044 public:
00045 int work (int noutput_items,
00046 gr_vector_const_void_star &input_items,
00047 gr_vector_void_star &output_items);
00048 };
00049
00050 gr_block_sptr
00051 gr_make_head (size_t sizeof_stream_item, int nitems);
00052
00053
00054 #endif