version 1.2, 2003/10/22 14:26:11
|
version 1.5, 2004/10/17 20:39:56
|
|
|
//%2003//////////////////////////////////////////////////////////////////////// |
//%2004//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Development |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L. P., IBM Corp., The Open Group, Tivoli Systems. |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; | // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; |
// IBM Corp.; EMC Corporation, The Open Group. | // IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// | // |
// Author: Dong Xiang, EMC Corporation (xiang_dong@emc.com) | // Author: Dong Xiang, EMC Corporation (xiang_dong@emc.com) |
// | // |
// Modified By: |
// Modified By: Amit K Arora, IBM (amita@in.ibm.com) for Bug#1811 |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
{ | { |
public: | public: |
/** | /** |
|
* Destroys the object. This is needed so that an object of a |
|
* subclass can be correctly destroyed thru an Iterator pointer. |
|
*/ |
|
virtual ~Iterator() {}; |
|
|
|
/** |
* Returns <tt>true</tt> if the iteration has more elements. (In other | * Returns <tt>true</tt> if the iteration has more elements. (In other |
* words, returns <tt>true</tt> if <tt>next</tt> would return an element | * words, returns <tt>true</tt> if <tt>next</tt> would return an element |
* rather than throwing an exception.) | * rather than throwing an exception.) |