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