EOOS API 0.11
- eoos::api::Collection<T>
- eoos::api::Heap
- eoos::api::IllegalValue<T>
- eoos::api::Iterable<T>
- eoos::api::Iterator<T>
- eoos::api::List<T>
- eoos::api::ListIterator<T>
- eoos::api::Mutex
- eoos::api::Object
- eoos::api::OutStream<T>
- eoos::api::Queue<T>
- eoos::api::Scheduler
- eoos::api::Semaphore
- eoos::api::SequenceContainer<T>
- eoos::api::SmartPointer<T>
- eoos::api::String<T>
- eoos::api::System
- eoos::api::Task
- eoos::api::Thread
- eoos::lib::AbstractBaseString<T,R,A>
- eoos::lib::AbstractBuffer<T,A>
- eoos::lib::AbstractList<T,A>
- eoos::lib::AbstractTask<A>
- eoos::lib::AbstractThreadTask<A>
- eoos::lib::Align<T,S,A>
- eoos::lib::Allocator
- eoos::lib::BaseString<T,L,R,A>
- eoos::lib::BaseString<T,0,R,A>
- eoos::lib::Buffer<T,L,A>
- eoos::lib::Buffer<T,0,A>
- eoos::lib::CharTrait<T>
- eoos::lib::CircularList<T,A>
- eoos::lib::Heap
- eoos::lib::LinkedList<T,A>
- eoos::lib::LinkedNode<T,A>
- eoos::lib::Memory
- eoos::lib::Mutex<A>
- eoos::lib::MutexGuard<A>
- eoos::lib::NonCopyable<A>
- eoos::lib::Object<A>
- eoos::lib::ObjectAllocator<A>
- eoos::lib::Semaphore<A>
- eoos::lib::SharedPointer<T,D,A>
- eoos::lib::SmartPointerDeleter<T>
- eoos::lib::SmartPointerDeleterArray<T>
- eoos::lib::Stream
- eoos::lib::String
- eoos::lib::Thread<A>
- eoos::lib::UniquePointer<T,D,A>
BOOS Core for Texas Instruments TMS320C64x Digital Signal Processors family is released
Baigudin Software project has represented the BOOS Core operating kernel for TMS320C64x Digital Signal Processors family of Texas Instruments Company with single core.
Class «eoos::lib::Buffer<T,0,A>»
Buffer class dynamic.
This is a partial specialization of the template allocates necessary memory size for containing the buffer in a heap memory.
- eoos::lib::Buffer<T,0,A>
- public eoos::lib::AbstractBuffer<T,A>
- public eoos::lib::NonCopyable<A>
- public eoos::lib::Object<A>
- public eoos::lib::ObjectAllocator<A>
- public eoos::api::Object
- public eoos::lib::Object<A>
- public eoos::api::SequenceContainer<T>
- public eoos::api::Collection<T>
- public eoos::api::Object
- public eoos::api::Collection<T>
- public eoos::api::IllegalValue<T>
- public eoos::api::Object
- public eoos::lib::NonCopyable<A>
- public eoos::lib::AbstractBuffer<T,A>
public:
explicit Buffer(size_t length);
Buffer(size_t length, T const& illegal);
Buffer(size_t length, T* buf);
Buffer(size_t length, T* buf, T const& illegal);
void fill(T const& value, size_t begin, size_t count);
void fill(T const& value, size_t length);
virtual T const& getIllegal();
virtual bool_t isConstructed() const;
static bool_t isConstructed(api::Object* obj);
virtual bool_t isIllegal(T const& value) const;
static void operator delete(void* ptr);
static void operator delete(void*, void*);
static void* operator new(size_t size);
static void* operator new(size_t, void* ptr);
Buffer& operator=(api::SequenceContainer<T> const& buf);
Object& operator=(Object const& obj);
public: explicit Buffer(size_t length);
Constructor.
Parameters:
length — Count of buffer elements.
public: Buffer(size_t length, T const& illegal);
Constructor.
Parameters:
length — Count of buffer elements.
illegal — Illegal value.
public: Buffer(size_t length, T* buf);
Constructor.
Parameters:
length — Number of elements.
buf — Pointer to external buffer.
public: Buffer(size_t length, T* buf, T const& illegal);
Constructor.
Parameters:
length — Number of elements.
buf — Pointer to external buffer.
illegal — Illegal value.
public: virtual ~Buffer();
Destructor.
public: void fill(T const& value);
Fills this buffer by given value.
Parameters:
value — A filling value.
public: void fill(T const& value, size_t begin, size_t count);
Fills this buffer by given value.
Parameters:
value — Filling value.
begin — Begin index.
count — Count of filling elements.
public: void fill(T const& value, size_t length);
Fills this buffer by given value.
Parameters:
value — Filling value.
length — Count of filling elements.
public: virtual T* getData() const;
Returns pointer to the first element of sequence сontainer.
Returns:
Address of the first element, or NULLPTR if an error occurred.
public: virtual T const& getIllegal();
Returns illegal element which will be returned as error value.
Returns:
Illegal element.
public: virtual size_t getLength();
Returns a number of elements in this container.
Returns:
Number of elements, or always 0 if an error occurred.
public: virtual bool_t isConstructed() const;
Tests if this object has been constructed.
Returns:
True if object has been constructed successfully.
public: static bool_t isConstructed(api::Object* obj);
Tests if an object has been constructed.
Parameters:
obj — Object to be tested.
Returns:
True if object has been constructed successfully.
public: virtual bool_t isEmpty();
Tests if this collection has elements.
Returns:
True if this collection does not contain any elements, or always true if an error occurred.
public: virtual bool_t isIllegal(T const& value) const;
Tests if given value is an illegal.
Parameters:
value — A testing value.
Returns:
True if value is an illegal.
public: static void operator delete(void* ptr);
Operator delete.
Parameters:
ptr — An address of allocated memory block or a null pointer.
public: static void operator delete(void*, void*);
Operator delete.
public: static void* operator new(size_t size);
Operator new.
Parameters:
size — A number of bytes to allocate.
Returns:
Allocated memory address or a null pointer.
public: static void* operator new(size_t, void* ptr);
Operator new.
Parameters:
ptr — A pointer to reserved memory area.
Returns:
The given pointer.
public: Buffer& operator=(api::SequenceContainer<T> const& buf);
Assignment operator.
If the source buffer is greater than this buffer, only cropped data of that will be copied.
Parameters:
buf — Reference to source buffer.
Returns:
Reference to this object.
public: Object& operator=(Object const& obj);
Copy assignment operator.
Parameters:
obj — Reference to a source object.
Returns:
Reference to this object.
public: Object& operator=(Object&& obj) & noexcept;
Move assignment operator.
Parameters:
obj — Right reference to a source object.
Returns:
Reference to this object.
public: T& operator[](size_t index);
Returns an element of this buffer.
Parameters:
index — An element index.
Returns:
An element.
public: virtual void setIllegal(T const& value);
Sets illegal element which will be returned as error value.
Parameters:
value — An illegal value.