summaryrefslogtreecommitdiffstats
path: root/src/lib/nsas/nsas_entry.h
diff options
context:
space:
mode:
authorchenzhengzhang <jerry.zzpku@gmail.com>2011-04-11 13:08:19 +0200
committerchenzhengzhang <jerry.zzpku@gmail.com>2011-04-11 13:08:19 +0200
commitf6aa7d59569e492326499898a0e3f183c8748970 (patch)
tree4dc8531b674ca544388a66b6ce0b3f3da0b94235 /src/lib/nsas/nsas_entry.h
parent[master] update ChangeLog revision number (diff)
downloadkea-f6aa7d59569e492326499898a0e3f183c8748970.tar.xz
kea-f6aa7d59569e492326499898a0e3f183c8748970.zip
[trac749] refactor C++ utility library
Diffstat (limited to 'src/lib/nsas/nsas_entry.h')
-rw-r--r--src/lib/nsas/nsas_entry.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/nsas/nsas_entry.h b/src/lib/nsas/nsas_entry.h
index f739e8db0f..9cbed115df 100644
--- a/src/lib/nsas/nsas_entry.h
+++ b/src/lib/nsas/nsas_entry.h
@@ -19,10 +19,10 @@
#include <iostream>
#include <exceptions/exceptions.h>
+#include <util/lru_list.h>
#include "hash_key.h"
#include "hash_table.h"
-#include "lru_list.h"
namespace isc {
namespace nsas {
@@ -66,7 +66,7 @@ public:
/// This class is inherited from boost::enable_shared_from_this class
/// So within a member function a shared_ptr to current object can be obtained
template <typename T>
-class NsasEntry : public boost::enable_shared_from_this <T> {
+class NsasEntry : public boost::enable_shared_from_this <T> {
public:
/// \brief Default Constructor
@@ -93,7 +93,7 @@ public:
/// Sets the iterator of an object and, as a side effect, marks it as valid.
///
/// \param iterator Iterator of this element in the list
- virtual void setLruIterator(typename LruList<T>::iterator iterator) {
+ virtual void setLruIterator(typename isc::util::LruList<T>::iterator iterator) {
iterator_ = iterator;
valid_ = true;
}
@@ -103,7 +103,7 @@ public:
/// \return iterator Iterator of this element in the list.
///
/// \exception InvalidLruIterator Thrown if the iterator is not valid.
- virtual typename LruList<T>::iterator getLruIterator() const {
+ virtual typename isc::util::LruList<T>::iterator getLruIterator() const {
if (! valid_) {
isc_throw(InvalidLruIterator,
"pointer of element into LRU list was not valid");
@@ -127,7 +127,7 @@ public:
}
private:
- typename LruList<T>::iterator iterator_; ///< Handle into the LRU List
+ typename isc::util::LruList<T>::iterator iterator_; ///< Handle into the LRU List
bool valid_; ///< true if handle is valid
};