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
13 class LDAPSearchReference;
16 * Container class for storing a list of Search References
18 * Used internally only by LDAPSearchResults
20 class LDAPReferenceList{
21 typedef std::list<LDAPSearchReference> ListType;
24 typedef ListType::const_iterator const_iterator;
27 * Constructs an empty list.
34 LDAPReferenceList(const LDAPReferenceList& rl);
42 * @return The number of LDAPSearchReference-objects that are
43 * currently stored in this list.
48 * @return true if there are zero LDAPSearchReference-objects
49 * currently stored in this list.
54 * @return A iterator that points to the first element of the list.
56 const_iterator begin() const;
59 * @return A iterator that points to the element after the last
60 * element of the list.
62 const_iterator end() const;
65 * Adds one element to the end of the list.
66 * @param e The LDAPSearchReference to add to the list.
68 void addReference(const LDAPSearchReference& e);
73 #endif // LDAP_REFERENCE_LIST_H