dnai::interfaces::IModel< T > Class Template Reference
This class allow you to create a new serializable model and allow you to use it in a tree. More...
#include <imodel.h>
Inheritance diagram for dnai::interfaces::IModel< T >:

Collaboration diagram for dnai::interfaces::IModel< T >:

Public Member Functions | |
IModel (T *parent=nullptr) | |
![]() | |
GenericTreeItem (T *parent=nullptr) | |
virtual | ~GenericTreeItem () |
virtual void | appendChild (T *child) |
T * | child (int row) const |
const QList< T * > & | childrenItem () const |
int | childCount () const |
virtual int | columnCount () const =0 |
virtual int | row () const |
T * | parentItem () const |
QModelIndex | idxmodel () const |
void | setIdx (const QModelIndex &ref) |
void | removeOne (T *e) |
void | deleteChildren () |
void | removeChildren () |
![]() | |
virtual | ~ASerializable ()=default |
virtual void | serialize (QJsonObject &obj) const override=0 |
Implement this function to serialize into QJsonObject. More... | |
template<class DataType > | |
QJsonArray | serializeList (const QList< DataType * > &datalist) const |
Additional Inherited Members | |
![]() | |
template<typename... Args> | |
static T * | deserialize (const QJsonObject &obj, Args &...args) |
This function deserialize into a new instance of type T *. More... | |
![]() | |
virtual void | _deserialize (const QJsonObject &obj) override=0 |
Implement this function in order to use deserialize(const QJsonObject &obj) More... | |
Detailed Description
template<class T>
class dnai::interfaces::IModel< T >
This class allow you to create a new serializable model and allow you to use it in a tree.
- Template Parameters
-
T
Constructor & Destructor Documentation
template<class T>
|
inlineexplicit |
The documentation for this class was generated from the following file:
- Gui/app/include/dnai/interfaces/imodel.h