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