Workspace 6.21.5
|
Convenience typed interface to an object array, which can be converted to a general ObjectArray in Workspace through use of a DerivedToBaseAdaptor.
#include <Workspace/DataExecution/DataObjects/typedobjectarray.h>
Classes | |
class | const_iterator |
class | iterator |
Public Types | |
using | size_type = DataExecution::ObjectArray::size_type |
Public Types inherited from ObjectArray | |
using | size_type = size_t |
Public Member Functions | |
TypedObjectArray () | |
TypedObjectArray (const QStringList &stringList) | |
TypedObjectArray (const TypedObjectArray &other) | |
~TypedObjectArray () override=default | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
TypedObjectArray & | operator= (const TypedObjectArray &other) |
T & | operator[] (size_type index) |
const T & | operator[] (size_type index) const |
bool | push_back () |
Public Member Functions inherited from ObjectArray | |
ObjectArray () | |
ObjectArray (const DataFactory &factoryRestriction) | |
ObjectArray (const ObjectArray &) | |
ObjectArray (const QStringList &stringList) | |
~ObjectArray () override | |
template<typename T > | |
T & | addItem () |
DataObject & | back () |
const DataObject & | back () const |
iterator | begin () |
const_iterator | begin () const |
bool | canSerialize () const override |
size_type | capacity () const |
void | clear () |
bool | empty () const |
iterator | end () |
const_iterator | end () const |
void | ensureHasData () |
void | erase (size_type index) |
DataObject & | front () |
const DataObject & | front () const |
const DataFactory * | getFactoryRestriction () const |
bool | hasData () const |
bool | insert (const DataObject &obj, size_type index) |
bool | isAssignable () const |
bool | load (const SerializedItem &item) override |
ObjectArray & | operator= (const ObjectArray &) |
DataObject & | operator[] (size_type index) |
const DataObject & | operator[] (size_type index) const |
void | pop_back () |
bool | push_back (const DataFactory &factory) |
bool | push_back (const DataObject &obj) |
template<typename T > | |
bool | push_back_copy (const T &obj) |
template<typename T > | |
T & | push_back_new () |
template<typename T > | |
bool | push_back_ptr (T *ptr, bool takeOwnership) |
void | reserve (size_type numItems) |
void | resize (size_type newSize, const DataFactory &factory) |
bool | save (SerializedItem &item) const override |
template<typename T > | |
void | setFactoryRestriction () |
void | setFactoryRestriction (const DataFactory *factory) |
size_type | size () const |
void | swap (ObjectArray &array) |
Public Member Functions inherited from Serialize | |
virtual | ~Serialize ()=default |
virtual bool | canSerialize () const =0 |
virtual bool | load (const SerializedItem &item)=0 |
virtual bool | save (SerializedItem &item) const =0 |
Additional Inherited Members | |
Static Public Member Functions inherited from ObjectArray | |
static bool | fromQVariant (const QVariant &v, ObjectArray *&data, bool deepConvert, bool &ownsData) |
static QVariant | toQVariant (const ObjectArray &data) |
|
inline |
|
inline |
|
inline |
|
overridedefault |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
other | The object to assign to this object. |
|
inline |
|
inline |
|
inline |
Push a new object of type T onto the back of the array.