Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.2.1.1.0)

E69640-01

coherence/util/Muterator.hpp

00001 /*
00002 * Muterator.hpp
00003 *
00004 * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
00005 *
00006 * Oracle is a registered trademarks of Oracle Corporation and/or its
00007 * affiliates.
00008 *
00009 * This software is the confidential and proprietary information of Oracle
00010 * Corporation. You shall not disclose such confidential and proprietary
00011 * information and shall use it only in accordance with the terms of the
00012 * license agreement you entered into with Oracle.
00013 *
00014 * This notice may not be removed or altered.
00015 */
00016 #ifndef COH_MUTERATOR_HPP
00017 #define COH_MUTERATOR_HPP
00018 
00019 #include "coherence/lang.ns"
00020 
00021 #include "coherence/util/Iterator.hpp"
00022 
00023 COH_OPEN_NAMESPACE2(coherence,util)
00024 
00025 
00026 /**
00027 * Muterator is mutating iterator, that is it is capable of changing the
00028 * collection it iterates.
00029 *
00030 * @author mf  2008.05.05
00031 */
00032 class COH_EXPORT Muterator
00033     : public interface_spec<Muterator,
00034         implements<Iterator> >
00035     {
00036     // ----- Muterator interface --------------------------------------------
00037 
00038     public:
00039         /**
00040         * Remove from the collection associated with this iterator, the last
00041         * element returned from the iterator.
00042         *
00043         * @throws UnsupportedOperationException if removal is not supported
00044         */
00045         virtual void remove() = 0;
00046     };
00047 
00048 COH_CLOSE_NAMESPACE2
00049 
00050 #endif // COH_MUTERATOR_HPP
Copyright © 2000, 2016, Oracle and/or its affiliates. All rights reserved.