3 * Copyright 2000-2013 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
7 #include "LDAPUrlList.h"
13 LDAPUrlList::LDAPUrlList(){
14 DEBUG(LDAP_DEBUG_CONSTRUCT," LDAPUrlList::LDAPUrlList()" << endl);
15 m_urls=LDAPUrlList::ListType();
18 LDAPUrlList::LDAPUrlList(const LDAPUrlList& urls){
19 DEBUG(LDAP_DEBUG_CONSTRUCT," LDAPUrlList::LDAPUrlList(&)" << endl);
24 LDAPUrlList::LDAPUrlList(char** url){
25 DEBUG(LDAP_DEBUG_CONSTRUCT," LDAPUrlList::LDAPUrlList()" << endl);
28 for(i = url; *i != 0; i++){
33 LDAPUrlList::~LDAPUrlList(){
34 DEBUG(LDAP_DEBUG_DESTROY," LDAPUrlList::~LDAPUrlList()" << endl);
38 size_t LDAPUrlList::size() const{
42 bool LDAPUrlList::empty() const{
43 return m_urls.empty();
46 LDAPUrlList::const_iterator LDAPUrlList::begin() const{
47 return m_urls.begin();
50 LDAPUrlList::const_iterator LDAPUrlList::end() const{
54 void LDAPUrlList::add(const LDAPUrl& url){
55 m_urls.push_back(url);