2 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
6 #ifndef LDAP_REFERENCE_LIST_H
7 #define LDAP_REFERENCE_LIST_H
11 class LDAPSearchReference;
13 typedef list<LDAPSearchReference> RefList;
16 * Container class for storing a list of Search References
18 * Used internally only by LDAPSearchResults
20 class LDAPReferenceList{
22 typedef RefList::const_iterator const_iterator;
25 * Constructs an empty list.
32 LDAPReferenceList(const LDAPReferenceList& rl);
40 * @return The number of LDAPSearchReference-objects that are
41 * currently stored in this list.
46 * @return true if there are zero LDAPSearchReference-objects
47 * currently stored in this list.
52 * @return A iterator that points to the first element of the list.
54 const_iterator begin() const;
57 * @return A iterator that points to the element after the last
58 * element of the list.
60 const_iterator end() const;
63 * Adds one element to the end of the list.
64 * @param e The LDAPSearchReference to add to the list.
66 void addReference(const LDAPSearchReference& e);
71 #endif // LDAP_REFERENCE_LIST_H