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