HowTo creat a float buffer and pass all elements in the buffer to another class without using iterator

Posted on 2005-04-20
Last Modified: 2013-11-20
I'm searching for something like a floatbuffer.
The intention is to store several float values (the number of stored values varies) in something like a list.
When a certain criteria is fulfilled this "list" should be passed as a float array to another class.

Is there a quick way to get something like this done (in this case speed matters...)?

If needed please ask for further information and I'll provide them.

Kind regards
Question by:TError104
    LVL 30

    Accepted Solution

    You can use a CArray or a std::vector<float> container.

    Do you need the array to be sorted, and does the array need to be a continuous memory block like a C-Style array?

    Author Comment

    The array should be in the same order like the buffer list.
    After its been passed the buffer list will be rewritten.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    Expand data scrubbing tool 13 27
    Complete beginner needs help making a cron job 9 90
    mapBully challenge 6 51
    firstChar challenge 13 55
    This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
    Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now