Array.h
Go to the documentation of this file.
171 template <class UpdaterType, class ClassType, typename ItemType, typename ItemSetType, typename ItemCastType>
231 template <class ClassType, typename ItemType> class StringArrayTemplate : public ArrayTemplate<ClassType, ItemType>
260 template <class UpdaterType, class ClassType, typename ItemType, typename ItemSetType, typename ItemCastType>
265 using ArrayUpdaterTemplate<UpdaterType, ClassType, ItemType, ItemSetType, ItemCastType>::ArrayUpdaterTemplate;
ArrayData & getArray()
void * insert(unsigned index, const void *data=nullptr, size_t itemCount=1)
void * add(const void *data=nullptr, size_t itemCount=1)
Definition: Pool.h:231
const ArrayIterator< const ArrayTemplate, const ItemType > Iterator
Definition: Array.h:128
const ItemType operator[](unsigned index) const
Definition: Array.h:137
Used by code generator for integral-typed arrays.
Definition: Array.h:173
void insertItem(unsigned index, ItemSetType value)
Definition: Array.h:205
void setItem(unsigned index, ItemSetType value)
Definition: Array.h:195
ArrayIterator< ArrayUpdaterTemplate, ItemRef > Iterator
Definition: Array.h:191
void loadDefaults()
An object can contain other objects, properties and arrays.
Definition: Libraries/ConfigDB/src/include/ConfigDB/Object.h:37
const ObjectInfo & typeinfo() const
Definition: Libraries/ConfigDB/src/include/ConfigDB/Object.h:232
Store & getStore()
StringId getStringId(const PropertyInfo &prop, const char *value, uint16_t valueLength)
String getPropertyString(unsigned index, StringId id) const
int findStringId(const char *value, uint16_t valueLength) const
Read-only access to a key/value pair stored in an object, or a simple array value.
Definition: Property.h:32
Adds write access for a key/value pair stored in an object, or a simple array value.
Definition: Property.h:80
bool contains(const String &item) const
Definition: Array.h:248
Used by code generator for String-typed arrays.
Definition: Array.h:263
void setItem(unsigned index, ItemType value)
Definition: Array.h:267
void insertItem(unsigned index, ItemSetType value)
Definition: Array.h:277
const char * c_str() const
Get a constant (un-modifiable) pointer to String content.
Definition: WString.h:609
size_t length(void) const
Obtain the String length in characters, excluding NUL terminator.
Definition: WString.h:238
Definition: Array.h:26
uint16_t StringId
Defines contained string data using index into string pool.
Definition: PropertyInfo.h:59
Definition: Array.h:175
ItemRef & operator=(ItemSetType value)
Definition: Array.h:184
uint8_t getSize() const
Get number of bytes required to store this property value within a structure.
Definition: PropertyInfo.h:177
Definition: PropertyData.h:44
bool setValue(const PropertyInfo &prop, int64_t value)
1.9.1