18#ifndef _DECAF_NIO_FLOATBUFFER_H_
19#define _DECAF_NIO_FLOATBUFFER_H_
180 virtual float get(
int index )
const = 0;
This interface imposes a total ordering on the objects of each class that implements it.
Definition Comparable.h:33
virtual int capacity() const
Definition Buffer.h:145
FloatBuffer & put(FloatBuffer &src)
This method transfers the floats remaining in the given source buffer into this buffer.
static FloatBuffer * allocate(int capacity)
Allocates a new Double buffer.
virtual bool equals(const FloatBuffer &value) const
static FloatBuffer * wrap(std::vector< float > &buffer)
Wraps the passed STL float Vector in a FloatBuffer.
FloatBuffer & put(std::vector< float > &buffer)
This method transfers the entire content of the given source floats array into this buffer.
virtual ~FloatBuffer()
Definition FloatBuffer.h:68
virtual float get(int index) const =0
Absolute get method.
virtual bool hasArray() const =0
Tells whether or not this buffer is backed by an accessible float array.
virtual float get()=0
Relative get method.
virtual FloatBuffer * slice() const =0
Creates a new FloatBuffer whose content is a shared subsequence of this buffer's content.
virtual FloatBuffer & compact()=0
Compacts this buffer.
virtual FloatBuffer & put(int index, float value)=0
Writes the given floats into this buffer at the given index.
virtual FloatBuffer * duplicate()=0
Creates a new float buffer that shares this buffer's content.
virtual int arrayOffset()=0
Returns the offset within this buffer's backing array of the first element of the buffer (optional op...
FloatBuffer(int capacity)
Creates a FloatBuffer object that has its backing array allocated internally and is then owned and de...
virtual float * array()=0
Returns the float array that backs this buffer (optional operation).
virtual bool operator==(const FloatBuffer &value) const
FloatBuffer & get(float *buffer, int size, int offset, int length)
Relative bulk get method.
virtual bool operator<(const FloatBuffer &value) const
static FloatBuffer * wrap(float *array, int size, int offset, int length)
Wraps the passed buffer with a new FloatBuffer.
virtual FloatBuffer & put(float value)=0
Writes the given floats into this buffer at the current position, and then increments the position.
virtual int compareTo(const FloatBuffer &value) const
virtual FloatBuffer * asReadOnlyBuffer() const =0
Creates a new, read-only float buffer that shares this buffer's content.
virtual std::string toString() const
FloatBuffer & get(std::vector< float > buffer)
Relative bulk get method.
FloatBuffer & put(const float *buffer, int size, int offset, int length)
This method transfers floats into this buffer from the given source array.
#define DECAF_API
Definition Config.h:29
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25