Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Support for multi-index containers?
QtWS25 Last Chance

Support for multi-index containers?

Scheduled Pinned Locked Moved Unsolved General and Desktop
multi-indexcontainersdata modelskeyssoftware design
6 Posts 2 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    elfring
    wrote on 11 Oct 2018, 07:55 last edited by
    #1

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

    • Databases manage primary keys (for example).
    • Boost

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

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRonin
      wrote on 11 Oct 2018, 08:01 last edited by
      #2

      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

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      E 2 Replies Last reply 11 Oct 2018, 08:36
      1
      • V VRonin
        11 Oct 2018, 08:01

        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

        E Offline
        E Offline
        elfring
        wrote on 11 Oct 2018, 08:36 last edited by
        #3

        Can another programming view help around data model indexes?

        V 1 Reply Last reply 11 Oct 2018, 09:33
        0
        • E elfring
          11 Oct 2018, 08:36

          Can another programming view help around data model indexes?

          V Offline
          V Offline
          VRonin
          wrote on 11 Oct 2018, 09:33 last edited by
          #4

          @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

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          1
          • V VRonin
            11 Oct 2018, 08:01

            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

            E Offline
            E Offline
            elfring
            wrote on 12 Oct 2018, 06:37 last edited by
            #5

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

            V 1 Reply Last reply 12 Oct 2018, 09:01
            0
            • E elfring
              12 Oct 2018, 06:37

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

              V Offline
              V Offline
              VRonin
              wrote on 12 Oct 2018, 09:01 last edited by
              #6

              @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();

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              1 Reply Last reply
              3

              5/6

              12 Oct 2018, 06:37

              • Login

              • Login or register to search.
              5 out of 6
              • First post
                5/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved