Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

iterator(3u) [netbsd man page]

Iterator(3U)						    InterViews Reference Manual 					      Iterator(3U)

NAME
Iterator - marks a position in a data structure SYNOPSIS
#include <Unidraw/iterator.h> DESCRIPTION
An iterator marks a position in a data structure, generally during a traversal of some sort. For example, an iterator keeps track of the current position when iterating through a list of elements. Unidraw's Iterator class serves this purpose in conjunction with ULists or objects that use them. PUBLIC OPERATIONS
Iterator() Iterator(Iterator&) Construct a new iterator. The second constructor initializes the iterator's value to that of the given iterator. virtual void SetValue(void*) virtual void* GetValue() Classes that use an iterator must store position information in it. These operations set and get the this information. SEE ALSO
UList(3U) Unidraw 11 June 1990 Iterator(3U)

Check Out this Related Man Page

RDF::Trine::Iterator::Graph::Materialized(3pm)		User Contributed Perl Documentation	    RDF::Trine::Iterator::Graph::Materialized(3pm)

NAME
RDF::Trine::Iterator::Graph::Materialized - Materialized graph class VERSION
This document describes RDF::Trine::Iterator::Graph::Materialized version 1.000 SYNOPSIS
use RDF::Trine::Iterator; my $iterator = RDF::Trine::Iterator::Graph::Materialized->new( @data ); while (my $statement = $iterator->next) { # do something with $statement } my $iterator = RDF::Trine::Iterator::Graph->new( &code ); my $miter = $iterator->materialize; while (my $statement = $miter->next) { # do something with $statement } $miter->reset; # start the iteration again while (my $statement = $miter->next) { # ... } METHODS
Beyond the methods documented below, this class inherits methods from the RDF::Trine::Iterator::Graph class. "new ( @results, %args )" Returns a new materialized graph interator. Results must be a reference to an array containing individual results. "reset" Returns the iterator to its starting position. "next" Returns the next item in the iterator. "length" Returns the number of elements in the iterator. BUGS
Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>. AUTHOR
Gregory Todd Williams "<gwilliams@cpan.org>" COPYRIGHT
Copyright (c) 2006-2012 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-06-29 RDF::Trine::Iterator::Graph::Materialized(3pm)
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Iterator help needed

I have a question about iterators. Here is the code I have template <typename element> void merge_sort(vector<element> &v) { element::iterator lo; } Now thats all the code I have for the non-recursive merge sort at the moment, which obvioulsy isn't a lot, but I need... (0 Replies)
Discussion started by: Matrix_Prime
0 Replies

2. Programming

STL Iterator and user-defined class

Is is possible to make STL-Iterator to work with user defined class ,like the one below? #include <iostream> #include <stdexcept> using namespace std; template <class T> class Array { public: T& operator (unsigned i) throw(out_of_range) { return data_; } protected: ... (2 Replies)
Discussion started by: johnbach
2 Replies

3. Programming

std::reverse_iterator in Sun C++

Hi, I'm having trouble compling the following code in Sun C++ (under sun studio 10). I found that it is issue with libCstd library. It can be resolved if i used stdport lib. However, i have no choice but to use libCstd. Does anyone know what can be done to resolve the issue? :confused: ... (0 Replies)
Discussion started by: shingpui
0 Replies

4. Programming

Random Access Iterator Error

I am unable to resolve the below code compilation issue: class A { public: int x; }; void sort_A(TArray<A> &_Atype) { std::stable_sort (_Atype.begin(), _Atype.end()); } bool operator< (const A & _a1, const A & _a2) { return _a1.x < _a2.x; } When we compile using gcc 4.1.2... (4 Replies)
Discussion started by: uunniixx
4 Replies

5. HP-UX

Error in include_std/limit and include_std/rw/iterator

I get following compile time errors on HP ITANIUM machine "/opt/include_std/limit", line 268: error # 2321: data member initializer is not allowed _RWSTD_STATIC_CONST (bool, is_specialized = false); "/opt/include_std/rw/iterator", line 119: error # 2247: class template "std::iterator_traits"... (0 Replies)
Discussion started by: dodo_ind
0 Replies

6. Programming

Trouble with Iterators and Hashtables (Java)

Okay so I am currently workng on an assignment where I have basically got to create a word ladder, eg. Click, Clock, Flock, Flick, so its a list of words with only 1 letter difference, and the same letters cant be reused. Now I can do 2 methods of doing this, the first (which I need help need help... (2 Replies)
Discussion started by: SilvarHawke
2 Replies

7. Programming

Segment fault for C++ program when return vector

I am trying to reverse complement DNA sequence (string) with a short c++ code using boost library. Code was compiled without any warning/error, but ran into Segmentation fault. My guess is the function to return a vector, but not sure. #include <iostream> #include <fstream> #include <string>... (14 Replies)
Discussion started by: yifangt
14 Replies