3 * Copyright 2000-2011 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
7 #ifndef LDAP_REFERENCE_LIST_H
8 #define LDAP_REFERENCE_LIST_H
12 class LDAPSearchReference;
15 * Container class for storing a list of Search References
17 * Used internally only by LDAPSearchResults
19 class LDAPReferenceList{
20 typedef std::list<LDAPSearchReference> ListType;
23 typedef ListType::const_iterator const_iterator;
26 * Constructs an empty list.
33 LDAPReferenceList(const LDAPReferenceList& rl);
41 * @return The number of LDAPSearchReference-objects that are
42 * currently stored in this list.
47 * @return true if there are zero LDAPSearchReference-objects
48 * currently stored in this list.
53 * @return A iterator that points to the first element of the list.
55 const_iterator begin() const;
58 * @return A iterator that points to the element after the last
59 * element of the list.
61 const_iterator end() const;
64 * Adds one element to the end of the list.
65 * @param e The LDAPSearchReference to add to the list.
67 void addReference(const LDAPSearchReference& e);
72 #endif // LDAP_REFERENCE_LIST_H