Results 1 to 18 of 18

Thread: What support for STL sets?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2009
    Location
    Laval, France
    Posts
    124
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default Re: What support for STL sets?

    The key line is line 23 where we have the constructor call s(oc) for the set to which we pass oc, this then makes it possible to
    inform the origin comp constructor of the "origin" (state). The existence of this constructor form I was not aware of.

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    62
    Thanked 260 Times in 246 Posts

    Default Re: What support for STL sets?

    Yes, i know, now i am synchronized sorry for insisted on initializing objects, i didn't understood your problem.

    Just a little OOP comment, shouldn't your origine point be a member of your class, i don't like the idea of a "dangling" thing be passed as parameter, because you don't need many origine points, or not know the origine point until run-time, or do you? (i mean the origin stays constant?)

    For double, like in example, functor is the way to pass that origine (if is anythig about 0.0), but since you in your project build a class, i think you should encapsulate origine in your class (even if you use functor for comparison).

Similar Threads

  1. DvB Chip sets
    By yuvaraj.yadav in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 29th January 2010, 05:16
  2. Replies: 8
    Last Post: 8th May 2009, 09:14
  3. Creating images from sets of data.
    By maverick_pol in forum Qt Programming
    Replies: 5
    Last Post: 26th February 2008, 09:25
  4. QT Nested Sets SQL/XML - categories (tree)
    By patrik08 in forum Newbie
    Replies: 6
    Last Post: 13th June 2006, 00:17

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.