Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

iterator(3u) [bsd man page]

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

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

TAP::Parser::Iterator::Array(3pm)			 Perl Programmers Reference Guide			 TAP::Parser::Iterator::Array(3pm)

TAP::Parser::Iterator::Array - Internal TAP::Parser array Iterator VERSION
Version 3.17 SYNOPSIS
# see TAP::Parser::IteratorFactory for preferred usage # to use directly: use TAP::Parser::Iterator::Array; my @data = ('foo', 'bar', baz'); my $it = TAP::Parser::Iterator::Array->new(@data); my $line = $it->next; DESCRIPTION
This is a simple iterator wrapper for arrays of scalar content, used by TAP::Parser. Unless you're subclassing, you probably won't need to use this module directly. METHODS
Class Methods "new" Create an iterator. Takes one argument: an $array_ref Instance Methods "next" Iterate through it, of course. "next_raw" Iterate raw input without applying any fixes for quirky input syntax. "wait" Get the wait status for this iterator. For an array iterator this will always be zero. "exit" Get the exit status for this iterator. For an array iterator this will always be zero. ATTRIBUTION
Originally ripped off from Test::Harness. SEE ALSO
TAP::Object, TAP::Parser, TAP::Parser::Iterator, TAP::Parser::IteratorFactory, perl v5.12.1 2010-04-26 TAP::Parser::Iterator::Array(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