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 >:
Inheritance graph
Collaboration diagram for dnai::interfaces::IModel< T >:
Collaboration graph

Public Member Functions

 IModel (T *parent=nullptr)
 
- Public Member Functions inherited from dnai::models::GenericTreeItem< T >
 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 ()
 
- Public Member Functions inherited from dnai::interfaces::ASerializable< T >
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

- Static Public Member Functions inherited from dnai::interfaces::ASerializable< T >
template<typename... Args>
static T * deserialize (const QJsonObject &obj, Args &...args)
 This function deserialize into a new instance of type T *. More...
 
- Protected Member Functions inherited from dnai::interfaces::ASerializable< T >
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>
dnai::interfaces::IModel< T >::IModel ( T *  parent = nullptr)
inlineexplicit

The documentation for this class was generated from the following file:
  • Gui/app/include/dnai/interfaces/imodel.h