Back to index

openldap  2.4.31
LDAPUrlList.h
Go to the documentation of this file.
00001 // $OpenLDAP$
00002 /*
00003  * Copyright 2000-2012 The OpenLDAP Foundation, All Rights Reserved.
00004  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
00005  */
00006 
00007 #ifndef LDAP_URL_LIST_H
00008 #define LDAP_URL_LIST_H
00009 
00010 #include <list>
00011 #include <LDAPUrl.h>
00012 
00016 class LDAPUrlList{
00017     typedef std::list<LDAPUrl> ListType;
00018 
00019     public:
00020        typedef ListType::const_iterator const_iterator;
00021 
00025         LDAPUrlList();
00026 
00030         LDAPUrlList(const LDAPUrlList& urls);
00031 
00039         LDAPUrlList(char** urls);
00040 
00044         ~LDAPUrlList();
00045 
00050         size_t size() const;
00051 
00056         bool empty() const;
00057 
00061         const_iterator begin() const;
00062         
00067         const_iterator end() const;
00068 
00073         void add(const LDAPUrl& url);
00074 
00075     private :
00076         ListType m_urls;
00077 };
00078 #endif //LDAP_URL_LIST_H