@@ -24,7 +24,7 @@ FreeLeaseQueue::FreeLeaseQueue()
2424}
2525
2626void
27- FreeLeaseQueue::addRange (const Range & range) {
27+ FreeLeaseQueue::addRange (const AddressRange & range) {
2828 // If the container with ranges is empty, there are is no need for
2929 // doing any checks. Let's just add the new range.
3030 if (!containers_.empty ()) {
@@ -36,7 +36,7 @@ FreeLeaseQueue::addRange(const Range& range) {
3636
3737void
3838FreeLeaseQueue::addRange (const IOAddress& start, const IOAddress& end) {
39- addRange (FreeLeaseQueue::Range (start, end));
39+ addRange (AddressRange (start, end));
4040}
4141
4242void
@@ -52,7 +52,7 @@ FreeLeaseQueue::addRange(const PrefixRange& range) {
5252void
5353FreeLeaseQueue::addRange (const asiolink::IOAddress& prefix, const uint8_t prefix_length,
5454 const uint8_t delegated_length) {
55- addRange (FreeLeaseQueue:: PrefixRange (prefix, prefix_length, delegated_length));
55+ addRange (PrefixRange (prefix, prefix_length, delegated_length));
5656}
5757
5858bool
@@ -76,7 +76,7 @@ FreeLeaseQueue::append(const IOAddress& address) {
7676 return (false );
7777 }
7878 // Use the range we found and append the address to it.
79- FreeLeaseQueue::Range range (lb->range_start_ , lb->range_end_ );
79+ AddressRange range (lb->range_start_ , lb->range_end_ );
8080 append (range, address);
8181
8282 // Everything is fine.
@@ -105,15 +105,15 @@ FreeLeaseQueue::append(const IOAddress& prefix, const uint8_t delegated_length)
105105 return (false );
106106 }
107107 // Use the range we found and append the prefix to it.
108- FreeLeaseQueue:: PrefixRange range (lb->range_start_ , lb->range_end_ , lb->delegated_length_ );
108+ PrefixRange range (lb->range_start_ , lb->range_end_ , lb->delegated_length_ );
109109 append (range, prefix);
110110
111111 // Everything is fine.
112112 return (true );
113113}
114114
115115void
116- FreeLeaseQueue::append (const FreeLeaseQueue::Range & range, const IOAddress& address) {
116+ FreeLeaseQueue::append (const AddressRange & range, const IOAddress& address) {
117117 // Make sure the address is within the range boundaries.
118118 checkRangeBoundaries (range, address);
119119 auto cont = getContainer (range);
@@ -131,14 +131,14 @@ FreeLeaseQueue::append(const uint64_t range_index, const IOAddress& ip) {
131131}
132132
133133void
134- FreeLeaseQueue::append (const FreeLeaseQueue:: PrefixRange& range, const asiolink::IOAddress& prefix) {
134+ FreeLeaseQueue::append (const PrefixRange& range, const asiolink::IOAddress& prefix) {
135135 checkRangeBoundaries (range, prefix, true );
136136 auto cont = getContainer (range);
137137 cont->insert (prefix);
138138}
139139
140140bool
141- FreeLeaseQueue::use (const FreeLeaseQueue::Range & range, const IOAddress& address) {
141+ FreeLeaseQueue::use (const AddressRange & range, const IOAddress& address) {
142142 checkRangeBoundaries (range, address);
143143 auto cont = getContainer (range);
144144 auto found = cont->find (address);
@@ -150,7 +150,7 @@ FreeLeaseQueue::use(const FreeLeaseQueue::Range& range, const IOAddress& address
150150}
151151
152152bool
153- FreeLeaseQueue::use (const FreeLeaseQueue:: PrefixRange& range, const IOAddress& prefix) {
153+ FreeLeaseQueue::use (const PrefixRange& range, const IOAddress& prefix) {
154154 checkRangeBoundaries (range, prefix, true );
155155 auto cont = getContainer (range);
156156 auto found = cont->find (prefix);
@@ -216,7 +216,7 @@ FreeLeaseQueue::checkRangeOverlaps(const IOAddress& start, const IOAddress& end)
216216
217217
218218FreeLeaseQueue::ContainerPtr
219- FreeLeaseQueue::getContainer (const FreeLeaseQueue::Range & range) const {
219+ FreeLeaseQueue::getContainer (const AddressRange & range) const {
220220 auto cont = containers_.find (range.start_ );
221221 if (cont == containers_.end ()) {
222222 isc_throw (BadValue, " conatiner for the specified address range " << range.start_
@@ -226,7 +226,7 @@ FreeLeaseQueue::getContainer(const FreeLeaseQueue::Range& range) const {
226226}
227227
228228FreeLeaseQueue::ContainerPtr
229- FreeLeaseQueue::getContainer (const FreeLeaseQueue:: PrefixRange& range) const {
229+ FreeLeaseQueue::getContainer (const PrefixRange& range) const {
230230 auto cont = containers_.find (range.start_ );
231231 if (cont == containers_.end ()) {
232232 isc_throw (BadValue, " conatiner for the specified prefix " << range.start_
0 commit comments