X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=contrib%2Fldapc%2B%2B%2Fsrc%2FLDAPUrlList.cpp;h=e92fda1b1d3ac653a4d51b038cc76be5b10ae205;hb=d2da9c1a7d1480eb6b8ae8c2a8e78392f44f4289;hp=6e61fa0bcb625de131e2170e5114c63b8a309cf7;hpb=11fbe2a45c64036a08e601270b0d1049f2c57009;p=openldap diff --git a/contrib/ldapc++/src/LDAPUrlList.cpp b/contrib/ldapc++/src/LDAPUrlList.cpp index 6e61fa0bcb..e92fda1b1d 100644 --- a/contrib/ldapc++/src/LDAPUrlList.cpp +++ b/contrib/ldapc++/src/LDAPUrlList.cpp @@ -1,14 +1,18 @@ +// $OpenLDAP$ /* - * Copyright 2000, OpenLDAP Foundation, All Rights Reserved. + * Copyright 2000-2012 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ #include "LDAPUrlList.h" +#include #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 +39,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(); }