Support for multi-index containers?



  • Software libraries which support the management of multiple indexes within the same data structure are available.

    Will the Qt class library improve the collaboration with such programming interfaces?


  • Qt Champions 2018

    Unlikely, as you already discovered there are already very mature implementations like the on in boost but feel free to propose it opening a ticket or you could also implement it yourself and commit it for review



  • Can another programming view help around data model indexes?


  • Qt Champions 2018

    @elfring said in Support for multi-index containers?:

    Can another programming view help around data model indexes?

    On very specific cases, the KDE API implemented KHash2Map<T,U> for bi-associative containers inside KDescendantsProxyModel but it's a very specific need, I wouldn't expect this to be needed by 99% of model implementations



  • Would you like to distinguish any more between the usage of one- and two-dimensional structures for data models?


  • Qt Champions 2018

    @elfring said in Support for multi-index containers?:

    Would you like to distinguish any more between the usage of one- and two-dimensional structures for data models?

    Nope, the 2 dimensional structure is strictly more general of the 1D version so anything that goes for the first works in the second case.

    beginRant();

    You have been discussing a lot of theoretical problems relating to models across different threads. In all of them the feeling has been that you are uselessly overcomplicating things.
    I feel it would be useful for you and easier for us to walk you through a concrete example of what you are trying to achieve rather than discuss endlessly on theoretical concepts.

    endRant();



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.