00001 /* 00002 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved. 00003 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file 00004 */ 00005 00006 #ifndef LDAP_REFERENCE_LIST_H 00007 #define LDAP_REFERENCE_LIST_H 00008 00009 #include <list> 00010 00011 class LDAPSearchReference; 00012 00018 class LDAPReferenceList{ 00019 typedef std::list<LDAPSearchReference> ListType; 00020 00021 public: 00022 typedef ListType::const_iterator const_iterator; 00023 00027 LDAPReferenceList(); 00028 00032 LDAPReferenceList(const LDAPReferenceList& rl); 00033 00037 ~LDAPReferenceList(); 00038 00043 size_t size() const; 00044 00049 bool empty() const; 00050 00054 const_iterator begin() const; 00055 00060 const_iterator end() const; 00061 00066 void addReference(const LDAPSearchReference& e); 00067 00068 private: 00069 ListType m_refs; 00070 }; 00071 #endif // LDAP_REFERENCE_LIST_H 00072