]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPReferenceList.h
12b3419ea6216cb9e03c971d31e47b68ed50c390
[openldap] / contrib / ldapc++ / src / LDAPReferenceList.h
1 /*
2  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6 #ifndef LDAP_REFERENCE_LIST_H
7 #define LDAP_REFERENCE_LIST_H
8
9 #include <list>
10
11 class LDAPSearchReference;
12
13 typedef list<LDAPSearchReference> RefList;
14
15 class LDAPReferenceList{
16     typedef RefList::const_iterator const_iterator;
17
18     public:
19         LDAPReferenceList();
20         LDAPReferenceList(const LDAPReferenceList& rl);
21         ~LDAPReferenceList();
22
23         size_t size() const;
24         const_iterator begin() const;
25         const_iterator end() const;
26         void addReference(const LDAPSearchReference& e);
27
28     private:
29         RefList m_refs;
30 };
31 #endif // LDAP_REFERENCE_LIST_H
32