Search:
Type: Posts; User: cantoma
Search:
Search took 0.03 seconds.
-
February 27th, 2009, 07:12 AM
JohnW@Wessex this really solves the problem.
Since the container that I am using inside my container already implements iterator.
-
February 27th, 2009, 05:29 AM
How does it looks an "iterator to const" just to understand the point?
-
February 27th, 2009, 05:23 AM
Now I have a problem regarding the implementation of the operator (!=)
void choose_sentry( const Set& maximal_clique_i){
Set::Iter maximal_clique_iter = maximal_clique_i.begin();
...
-
February 27th, 2009, 05:00 AM
It would make sense to do the same for the end() function
const Iter end() const {
return Iter();
}
Right?!
-
February 26th, 2009, 07:29 PM
This is an option for an Iterator implementation but it
class Set
{
list <int> s; // Set of elements
list <int> newlist(); // private function
public:
-
February 26th, 2009, 07:04 PM
Hi there I am trying to write an Iterator for a specific class.
I have a class called Set that uses a list as a container.
Could someone give some help or any idea of how an Iterator could be...
-
February 19th, 2009, 11:22 AM
Since that was a serialization function I will delete the uint8_t allocated space during the unserialize function.
Just to give an idea something like this:
Graph Graph::unserialize (uint8_t*...
-
February 18th, 2009, 05:27 AM
I see that a cast would allow me to print it.
Thanks for the help!
-
February 17th, 2009, 01:37 PM
Hi there I am trying to return an array of uint8_t so the function serialize returns a pointer uint8_t*.
#include <iostream>
uint8_t* serialize () {
int _size_ = 6;
int _nedges_ = 7;
-
February 10th, 2009, 06:10 AM
Jackpot!!
Thank a lot Paul !! That did solve my problem!
The example code that I took into consideration from that website was prepared to work with a template.
Maybe that was more or less the...
-
February 10th, 2009, 05:32 AM
My Iter is not a template.
-
February 10th, 2009, 05:27 AM
Could you give me an example how my class could dereferencing the iterator return as an int?
You are absolutely right, I will take that in mind!
-
February 10th, 2009, 05:04 AM
Sorry the compiler that I am using is not gcc is g++ and here is the version:
$ g++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v...
-
February 10th, 2009, 05:00 AM
So Paul could you try the following main file with your compiler and see if you get similar results?!
algo.cpp
#include <iostream>
#include <list>
#include "Set.hpp"
using std::list;...
-
February 10th, 2009, 04:46 AM
So first here is my main file that successful compiles:
algo.cpp
#include <iostream>
#include <list>
#include "Set.hpp"
using std::list;
using std::cout;
-
February 9th, 2009, 02:53 PM
Hi there I decide to create a personalised Container for some specific reason and now I would like to implement an Iterator that will basically allow me to iterate over the elements of the container....
-
February 9th, 2009, 02:00 PM
Thanks JohnW@Wessex that solved the issue!!
-
February 2nd, 2009, 07:10 AM
Hi there I am trying to create a class that will handle graphs using a list of lists data-structure.
I am having problems creating a remove_edge function!
Basically using iterator how can a get a...
-
January 30th, 2009, 06:08 AM
Considering the possible solutions from your articles I decide to take out the templates and use simply a C style "typedef int AType".
This solved the problem.
Still this was not what I really...
-
January 29th, 2009, 03:36 PM
Hi there friends the following 3 files have the aim of using the Matrix class in a file different from the implementation ones. I got an error trying to do this (has you can see in the end of the...
|
Click Here to Expand Forum to Full Width
|