7 #ifndef RRSET_COLLECTION_BASE_H 8 #define RRSET_COLLECTION_BASE_H 1 13 #include <boost/shared_ptr.hpp> 103 typedef boost::shared_ptr<Iter>
IterPtr;
123 virtual IterPtr getNext() = 0;
134 virtual bool equals(
Iter& other) = 0;
142 virtual IterPtr getBeginning() = 0;
149 virtual IterPtr getEnd() = 0;
170 return (iter_->getValue());
174 iter_ = iter_->getNext();
185 return (iter_->equals(*other.iter_));
189 return (!iter_->equals(*other.iter_));
214 #endif // RRSET_COLLECTION_BASE_H The Name class encapsulates DNS names.
Iterator end()
Returns an iterator pointing past the end of the collection.
virtual ~RRsetCollectionBase()
Destructor.
Iterator begin()
Returns an iterator pointing to the beginning of the collection.
boost::shared_ptr< Iter > IterPtr
Wraps Iter with a reference count.
bool operator!=(const Iterator &other) const
A helper iterator interface for RRsetCollectionBase.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
isc::dns::AbstractRRset const value_type
The RRClass class encapsulates DNS resource record classes.
boost::shared_ptr< RRsetCollectionBase > RRsetCollectionPtr
std::forward_iterator_tag iterator_category
bool operator==(const Iterator &other) const
Error during RRsetCollectionBase find() operation.
Defines the logger used by the top-level component of kea-lfc.
The AbstractRRset class is an abstract base class that models a DNS RRset.
A forward std::iterator for RRsetCollectionBase.
isc::dns::AbstractRRset const & reference
The RRType class encapsulates DNS resource record types.
isc::dns::AbstractRRset const * pointer
boost::shared_ptr< const AbstractRRset > ConstRRsetPtr
A pointer-like type pointing to an (immutable) RRset object.
RRsetCollectionError(const char *file, size_t line, const char *what)
std::ptrdiff_t difference_type
Generic class to represent a set of RRsets.