ldapsdk 0.0.1
|
00001 // $OpenLDAP$ 00002 /* 00003 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved. 00004 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file 00005 */ 00006 00007 #ifndef LDAP_ENTRY_LIST_H 00008 #define LDAP_ENTRY_LIST_H 00009 00010 #include <list> 00011 00012 class LDAPEntry; 00013 00020 class LDAPEntryList{ 00021 typedef std::list<LDAPEntry> ListType; 00022 00023 public: 00024 typedef ListType::const_iterator const_iterator; 00025 00029 LDAPEntryList(const LDAPEntryList& el); 00030 00034 LDAPEntryList(); 00035 00039 ~LDAPEntryList(); 00040 00044 size_t size() const; 00045 00049 bool empty() const; 00050 00054 const_iterator begin() const; 00055 00059 const_iterator end() const; 00060 00064 void addEntry(const LDAPEntry& e); 00065 00066 private: 00067 ListType m_entries; 00068 }; 00069 #endif // LDAP_ENTRY_LIST_H