3 * Copyright 2000-2011 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
7 #ifndef LDAP_ENTRY_LIST_H
8 #define LDAP_ENTRY_LIST_H
15 * For internal use only.
17 * This class is used by LDAPSearchResults to store a std::list of
21 typedef std::list<LDAPEntry> ListType;
24 typedef ListType::const_iterator const_iterator;
29 LDAPEntryList(const LDAPEntryList& el);
42 * @return The number of entries currently stored in the list.
47 * @return true if there are zero entries currently stored in the list.
52 * @return An iterator pointing to the first element of the list.
54 const_iterator begin() const;
57 * @return An iterator pointing to the end of the list
59 const_iterator end() const;
62 * Adds an Entry to the end of the list.
64 void addEntry(const LDAPEntry& e);
69 #endif // LDAP_ENTRY_LIST_H