3 * Copyright 2000-2013 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
7 #ifndef LDAP_URL_LIST_H
8 #define LDAP_URL_LIST_H
14 * This container class is used to store multiple LDAPUrl-objects.
17 typedef std::list<LDAPUrl> ListType;
20 typedef ListType::const_iterator const_iterator;
23 * Constructs an empty list.
30 LDAPUrlList(const LDAPUrlList& urls);
33 * For internal use only
35 * This constructor is used by the library internally to create a
36 * std::list of URLs from a array of C-strings that was return by
39 LDAPUrlList(char** urls);
47 * @return The number of LDAPUrl-objects that are currently
48 * stored in this list.
53 * @return true if there are zero LDAPUrl-objects currently
54 * stored in this list.
59 * @return A iterator that points to the first element of the list.
61 const_iterator begin() const;
64 * @return A iterator that points to the element after the last
65 * element of the list.
67 const_iterator end() const;
70 * Adds one element to the end of the list.
71 * @param attr The attribute to add to the list.
73 void add(const LDAPUrl& url);
78 #endif //LDAP_URL_LIST_H