2 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
6 #ifndef LDAP_URL_LIST_H
7 #define LDAP_URL_LIST_H
12 typedef std::list<LDAPUrl> UrlList;
15 * This container class is used to store multiple LDAPUrl-objects.
19 typedef UrlList::const_iterator const_iterator;
22 * Constructs an empty list.
29 LDAPUrlList(const LDAPUrlList& urls);
32 * For internal use only
34 * This constructor is used by the library internally to create a
35 * std::list of URLs from a array of C-strings that was return by
38 LDAPUrlList(char** urls);
46 * @return The number of LDAPUrl-objects that are currently
47 * stored in this list.
52 * @return true if there are zero LDAPUrl-objects currently
53 * stored in this list.
58 * @return A iterator that points to the first element of the list.
60 const_iterator begin() const;
63 * @return A iterator that points to the element after the last
64 * element of the list.
66 const_iterator end() const;
69 * Adds one element to the end of the list.
70 * @param attr The attribute to add to the list.
72 void add(const LDAPUrl& url);
77 #endif //LDAP_URL_LIST_H