]> git.sur5r.net Git - openldap/blobdiff - contrib/ldapc++/src/LDAPUrlList.cpp
use URIs instead of hostname/port
[openldap] / contrib / ldapc++ / src / LDAPUrlList.cpp
index 6e61fa0bcb625de131e2170e5114c63b8a309cf7..39129aa27fb0f778ffd8a7e73a046629e27e2397 100644 (file)
@@ -1,14 +1,17 @@
 /*
- * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 2000-2002 OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 
 #include "LDAPUrlList.h"
+#include <assert.h>
 #include "debug.h"
 
+using namespace std;
+
 LDAPUrlList::LDAPUrlList(){
     DEBUG(LDAP_DEBUG_CONSTRUCT," LDAPUrlList::LDAPUrlList()" << endl);
-    m_urls=UrlList();
+    m_urls=LDAPUrlList::ListType();
 }
 
 LDAPUrlList::LDAPUrlList(const LDAPUrlList& urls){
@@ -35,6 +38,10 @@ size_t LDAPUrlList::size() const{
     return m_urls.size();
 }
 
+bool LDAPUrlList::empty() const{
+    return m_urls.empty();
+}
+
 LDAPUrlList::const_iterator LDAPUrlList::begin() const{
     return m_urls.begin();
 }