Changeset - 90a919d06a77
[Not reviewed]
stream
0 1 0
Hasan Yavuz Ă–ZDERYA - 8 years ago 2017-12-13 02:32:15
hy@ozderya.net
added virtual destructor required for buffer implementations
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/framebuffer2.h
Show inline comments
 
@@ -23,24 +23,26 @@
 
#ifndef FRAMEBUFFER_H
 
#define FRAMEBUFFER_H
 

	
 
struct Range
 
{
 
    double start, end;
 
};
 

	
 
/// Abstract base class for all frame buffers.
 
class FrameBuffer
 
{
 
public:
 
    /// Placeholder virtual destructor
 
    virtual ~FrameBuffer() {};
 
    /// Returns size of the buffer.
 
    virtual unsigned size() const = 0;
 
    /// Returns a sample from given index.
 
    virtual double sample(unsigned i) const = 0;
 
    /// Returns minimum and maximum of the buffer values.
 
    virtual Range limits() const = 0;
 
};
 

	
 
/// Common base class for index and writable frame buffers
 
class ResizableBuffer : public FrameBuffer
 
{
 
    /// Resize the buffer.
0 comments (0 inline, 0 general)