ImFusion C++ SDK 4.4.0
ImFusion::DataItemModel::Item Struct Reference

#include <ImFusion/GUI/DataItemModel.h>

Internal record to implement bookkeeping of the hierarchy in the underlying DataModel. More...

Inheritance diagram for ImFusion::DataItemModel::Item:

Detailed Description

Internal record to implement bookkeeping of the hierarchy in the underlying DataModel.

It enables two main things:

  1. provide fast lookups of elements and their relationships
  2. have a secondary storage backend so that we can call the pairs of Qt's begin/endFooRows() functions correctly. One Item instance always corresponds to exactly one element in the QAbstractItemModel. However, the Item hierarchy does not necessarily 1-to-1 correspond to the hierarchy in the underlying DataModel.

Public Attributes

Datadata = nullptr
 Pointer to Data instance in parent model.
DataproxyChild = nullptr
 Pointer to the DataGroup::proxyData if data is a DataGroup.
Itemparent = nullptr
 Pointer to parent node.
std::vector< std::unique_ptr< Item > > children
 Enumeration of child nodes, unique_ptr so that their addresses are persistent.
ElementType type = ElementType::Regular
 Type of the underlying Data instance.

Additional Inherited Members

Public Member Functions inherited from ImFusion::SignalReceiver
 SignalReceiver ()=default
 Default constructor.
 SignalReceiver (const SignalReceiver &other)
 Copy constructor, does not copy any existing signal connections from other.
SignalReceiveroperator= (SignalReceiver rhs)
 Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs.
virtual ~SignalReceiver ()
 Virtual destructor disconnects from all connected signals.
Protected Member Functions inherited from ImFusion::SignalReceiver
void disconnectAll ()
 Disconnects all existing connections.

Member Data Documentation

◆ proxyChild

Data* ImFusion::DataItemModel::Item::proxyChild = nullptr

Pointer to the DataGroup::proxyData if data is a DataGroup.

Will serve as reference dataset instead of data if not null.


The documentation for this struct was generated from the following file:
  • ImFusion/GUI/DataItemModel.h
Search Tab / S to search, Esc to close