FSTR::Array< ElementType > Class Template Reference
Class to access an array of integral values stored in flash. More...
#include <Array.hpp>
Inheritance diagram for FSTR::Array< ElementType >:
Collaboration diagram for FSTR::Array< ElementType >:
Public Member Functions | |
| ArrayPrinter< Array > | printer () const |
| Returns a printer object for this array. More... | |
| size_t | printTo (Print &p) const |
Public Member Functions inherited from FSTR::Object< Array< ElementType >, ElementType > | |
| Object () | |
| Creates a null object. More... | |
| Object (const Object &obj) | |
| Copy constructor. More... | |
| Iterator | begin () const |
| Iterator | end () const |
| size_t | length () const |
| Get the length of the content in elements. More... | |
| int | indexOf (const ValueType &value) const |
| ElementType | valueAt (unsigned index) const |
| ElementType | operator[] (unsigned index) const |
| Array operator[]. More... | |
| size_t | elementSize () const |
| const ElementType * | data () const |
| size_t | read (size_t index, ElementType *buffer, size_t count) const |
| Read content into RAM. More... | |
| size_t | readFlash (size_t index, ElementType *buffer, size_t count) const |
Read content into RAM,using flashmem_read() More... | |
Public Member Functions inherited from FSTR::ObjectBase | |
| size_t | length () const |
| Get the length of the object data in bytes. More... | |
| size_t | size () const |
| Get the object data size in bytes. More... | |
| template<class ObjectType > | |
| constexpr const ObjectType & | as () const |
| Cast to a different object type. More... | |
| const uint8_t * | data () const |
| Get a pointer to the flash data. More... | |
| size_t | read (size_t offset, void *buffer, size_t count) const |
| Read contents of a String into RAM. More... | |
| size_t | readFlash (size_t offset, void *buffer, size_t count) const |
| Read contents of a String into RAM, using flashread() More... | |
| bool | isCopy () const |
| bool | isNull () const |
| Indicates an invalid String, used for return value from lookups, etc. More... | |
Additional Inherited Members | |
Public Types inherited from FSTR::Object< Array< ElementType >, ElementType > | |
| using | Iterator = ObjectIterator< Array< ElementType >, ElementType > |
Static Public Member Functions inherited from FSTR::Object< Array< ElementType >, ElementType > | |
| static const Array< ElementType > & | empty () |
| Return an empty object which evaluates to null. More... | |
Public Attributes inherited from FSTR::ObjectBase | |
| uint32_t | flashLength_ |
Protected Member Functions inherited from FSTR::ObjectBase | |
| void | invalidate () |
| void | copy (const ObjectBase &obj) |
Static Protected Attributes inherited from FSTR::ObjectBase | |
| static const ObjectBase | empty_ |
Detailed Description
template<typename ElementType>
class FSTR::Array< ElementType >
Class to access an array of integral values stored in flash.
- Template Parameters
-
ElementType
Member Function Documentation
◆ printer()
template<typename ElementType >
|
inline |
Returns a printer object for this array.
- Note
- ElementType must be supported by Print
◆ printTo()
template<typename ElementType >
|
inline |
The documentation for this class was generated from the following file:
Public Member Functions inherited from
1.8.17