Commit 9d5c40be authored by Michal Vaner's avatar Michal Vaner
Browse files

Add a RBTree to MemoryZone

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac444@3939 e5f2f494-b856-4b98-b285-d166d9295462
parent 5d034fe6
......@@ -12,10 +12,14 @@
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
#include <map>
#include <boost/shared_ptr.hpp>
#include <dns/name.h>
#include <dns/rrclass.h>
#include <datasrc/memory_datasrc.h>
#include <datasrc/rbtree.h>
using namespace std;
using namespace isc::dns;
......@@ -29,6 +33,11 @@ struct MemoryZone::MemoryZoneImpl {
{}
RRClass zone_class_;
Name origin_;
typedef map<RRType, ConstRRsetPtr> Domain;
typedef boost::shared_ptr<Domain> DomainPtr;
typedef RBTree<Domain> DomainTree;
typedef RBNode<Domain> DomainNode;
DomainTree domains_;
};
MemoryZone::MemoryZone(const RRClass& zone_class, const Name& origin) :
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment