|
HRCore V1.1.0
A High Resolution Calculation Library
|
A class as a storage interface, pure virtual. More...
#include <StorageIF.hpp>

Classes | |
| struct | item_t |
| Storage item descriptor. More... | |
Public Member Functions | |
| virtual item_t | begin ()=0 |
| Return the first item of storage. More... | |
| virtual item_t | end ()=0 |
| Returns the last item of storage. More... | |
| virtual item_t | next (item_t cur)=0 |
| Get next item. More... | |
| virtual item_t | prev (item_t cur)=0 |
| virtual item_t | at (size_t pos)=0 |
| Access to storage[pos]. More... | |
| virtual size_t | length ()=0 |
| Get the length of storage. More... | |
| virtual bool | shrink (size_t len)=0 |
| Remove data from the end to shrink the size to a given length. More... | |
| virtual bool | extend (size_t len)=0 |
| Extend the storage to a given length. More... | |
| virtual Interface * | newObject ()=0 |
| Get a new object of same type. More... | |
| virtual void | delObject (const Interface *ptr)=0 |
| Delete a object from newObject() More... | |
A class as a storage interface, pure virtual.
Definition at line 28 of file StorageIF.hpp.
|
pure virtual |
Access to storage[pos].
| pos | The index of item, starting from 0. |
Implemented in HRCore::Storage::VirtualMMU< N >, and HRCore::Storage::LinkedList< N >.
|
pure virtual |
Return the first item of storage.
Implemented in HRCore::Storage::LinkedList< N >, and HRCore::Storage::VirtualMMU< N >.

|
pure virtual |
Delete a object from newObject()
| ptr | The pointer of object to be deleted |
Implemented in HRCore::Storage::LinkedList< N >, and HRCore::Storage::VirtualMMU< N >.

|
pure virtual |
Returns the last item of storage.
Implemented in HRCore::Storage::LinkedList< N >, and HRCore::Storage::VirtualMMU< N >.

|
pure virtual |
Extend the storage to a given length.
| len | Final length. |
Implemented in HRCore::Storage::VirtualMMU< N >, and HRCore::Storage::LinkedList< N >.

|
pure virtual |
Get the length of storage.
Implemented in HRCore::Storage::LinkedList< N >, and HRCore::Storage::VirtualMMU< N >.

|
pure virtual |
Get a new object of same type.
Implemented in HRCore::Storage::LinkedList< N >, and HRCore::Storage::VirtualMMU< N >.

Get next item.
| cur | Current item. |
Implemented in HRCore::Storage::VirtualMMU< N >, and HRCore::Storage::LinkedList< N >.

| cur | Current item. |
Implemented in HRCore::Storage::VirtualMMU< N >, and HRCore::Storage::LinkedList< N >.

|
pure virtual |
Remove data from the end to shrink the size to a given length.
| len | The length to be remained. |
Implemented in HRCore::Storage::VirtualMMU< N >, and HRCore::Storage::LinkedList< N >.