2000-10-03 14:50:44 -04:00
|
|
|
/*
|
|
|
|
|
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
|
|
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef LDAP_ENTRY_LIST_H
|
|
|
|
|
#define LDAP_ENTRY_LIST_H
|
|
|
|
|
|
|
|
|
|
#include <list>
|
|
|
|
|
|
|
|
|
|
class LDAPEntry;
|
|
|
|
|
|
|
|
|
|
typedef list<LDAPEntry> EntryList;
|
2001-02-19 06:34:28 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* For internal use only.
|
|
|
|
|
*
|
|
|
|
|
* This class is used by LDAPSearchResults to store a list of
|
|
|
|
|
* LDAPEntry-Objects
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
class LDAPEntryList{
|
|
|
|
|
public:
|
2001-03-15 06:07:58 -05:00
|
|
|
typedef EntryList::const_iterator const_iterator;
|
|
|
|
|
|
2001-02-19 06:34:28 -05:00
|
|
|
/**
|
|
|
|
|
* Copy-Constructor
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
LDAPEntryList(const LDAPEntryList& el);
|
2001-02-19 06:34:28 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Default-Constructor
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
LDAPEntryList();
|
2001-02-19 06:34:28 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Destructor
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
~LDAPEntryList();
|
|
|
|
|
|
2001-02-19 06:34:28 -05:00
|
|
|
/**
|
|
|
|
|
* @return The number of entries currently stored in the list.
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
size_t size() const;
|
2001-02-19 06:34:28 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return An iterator pointing to the first element of the list.
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
const_iterator begin() const;
|
2001-02-19 06:34:28 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return An iterator pointing to the end of the list
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
const_iterator end() const;
|
2001-02-19 06:34:28 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Adds an Entry to the end of the list.
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
void addEntry(const LDAPEntry& e);
|
2001-02-19 06:34:28 -05:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
EntryList m_entries;
|
2000-10-03 14:50:44 -04:00
|
|
|
};
|
|
|
|
|
#endif // LDAP_ENTRY_LIST_H
|