00001 // $OpenLDAP$ 00002 /* 00003 * Copyright 2000-2013 The OpenLDAP Foundation, All Rights Reserved. 00004 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file 00005 */ 00006 00007 #ifndef LDAP_REFERENCE_LIST_H 00008 #define LDAP_REFERENCE_LIST_H 00009 00010 #include <cstdio> 00011 #include <list> 00012 00013 class LDAPSearchReference; 00014 00020 class LDAPReferenceList{ 00021 typedef std::list<LDAPSearchReference> ListType; 00022 00023 public: 00024 typedef ListType::const_iterator const_iterator; 00025 00029 LDAPReferenceList(); 00030 00034 LDAPReferenceList(const LDAPReferenceList& rl); 00035 00039 ~LDAPReferenceList(); 00040 00045 size_t size() const; 00046 00051 bool empty() const; 00052 00056 const_iterator begin() const; 00057 00062 const_iterator end() const; 00063 00068 void addReference(const LDAPSearchReference& e); 00069 00070 private: 00071 ListType m_refs; 00072 }; 00073 #endif // LDAP_REFERENCE_LIST_H 00074
1.5.6