Fast DDS  Version 3.6.1.0
Fast DDS
LocatorsIterator.hpp
1 // Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
19 #ifndef FASTDDS_RTPS_COMMON__LOCATORSITERATOR_HPP
20 #define FASTDDS_RTPS_COMMON__LOCATORSITERATOR_HPP
21 
22 #include <fastdds/rtps/common/Locator.hpp>
23 
24 namespace eprosima {
25 namespace fastdds {
26 namespace rtps {
27 
33 {
39  virtual LocatorsIterator& operator ++() = 0;
47  virtual bool operator ==(
48  const LocatorsIterator& other) const = 0;
56  virtual bool operator !=(
57  const LocatorsIterator& other) const = 0;
63  virtual const Locator& operator *() const = 0;
64 };
65 
67 
68 } // namespace rtps
69 } // namespace fastdds
70 } // namespace eprosima
71 
72 #endif // FASTDDS_RTPS_COMMON__LOCATORSITERATOR_HPP
Class Locator_t, uniquely identifies a communication channel for a particular transport.
Definition: Locator.hpp:74
eprosima::fastdds::rtps::LocatorsIterator LocatorsIterator
Definition: LocatorsIterator.hpp:66
Provides a Locator's iterator interface that can be used by different Locator's containers.
Definition: LocatorsIterator.hpp:33
virtual bool operator!=(const LocatorsIterator &other) const =0
Not equal to operator.
virtual LocatorsIterator & operator++()=0
Increment operator.
virtual const Locator & operator*() const =0
Dereference operator.
virtual bool operator==(const LocatorsIterator &other) const =0
Equal to operator.