Back to index

openldap  2.4.31
LDAPEntryList.h
Go to the documentation of this file.
00001 // $OpenLDAP$
00002 /*
00003  * Copyright 2000-2012 The 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 <cstdio>
00011 #include <list>
00012 
00013 class LDAPEntry;
00014    
00021 class LDAPEntryList{
00022     typedef std::list<LDAPEntry> ListType;
00023 
00024     public:
00025        typedef ListType::const_iterator const_iterator;
00026 
00030         LDAPEntryList(const LDAPEntryList& el);
00031 
00035         LDAPEntryList();
00036 
00040         ~LDAPEntryList();
00041 
00045         size_t size() const;
00046 
00050         bool empty() const;
00051 
00055         const_iterator begin() const;
00056 
00060         const_iterator end() const;
00061 
00065         void addEntry(const LDAPEntry& e);
00066 
00067     private:
00068         ListType m_entries;
00069 };
00070 #endif // LDAP_ENTRY_LIST_H