Array.h
Go to the documentation of this file.
169 template <class UpdaterType, class ClassType, typename ItemType> class ArrayUpdaterTemplate : public ClassType
228 template <class ClassType, typename ItemType> class StringArrayTemplate : public ArrayTemplate<ClassType, ItemType>
258 class StringArrayUpdaterTemplate : public ArrayUpdaterTemplate<UpdaterType, ClassType, ItemType>
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:228
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:170
ArrayIterator< ArrayUpdaterTemplate, ItemRef > Iterator
Definition: Array.h:188
void setItem(unsigned index, ItemType value)
Definition: Array.h:192
void insertItem(unsigned index, ItemType value)
Definition: Array.h:202
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
Manages a key/value pair stored in an object, or a simple array value.
Definition: Property.h:32
Definition: Property.h:69
bool contains(const String &item) const
Definition: Array.h:245
Used by code generator for String-typed arrays.
Definition: Array.h:259
void setItem(unsigned index, const ItemType &value)
Definition: Array.h:263
void insertItem(unsigned index, const ItemType &value)
Definition: Array.h:275
void addItem(const ItemType &value)
Definition: Array.h:269
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:60
Definition: Array.h:172
ItemRef & operator=(const ItemType &value)
Definition: Array.h:181
uint8_t getSize() const
Get number of bytes required to store this property value within a structure.
Definition: PropertyInfo.h:172
Definition: PropertyData.h:44
void setValue(const PropertyInfo &prop, const PropertyData &src)
Range-check raw binary value. Do not use with Strings.
1.9.1