ldapsdk 0.0.1

LDAPReferenceList.h

Go to the documentation of this file.
00001 // $OpenLDAP$
00002 /*
00003  * Copyright 2000, 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 <list>
00011 
00012 class LDAPSearchReference;
00013 
00019 class LDAPReferenceList{
00020     typedef std::list<LDAPSearchReference> ListType;
00021 
00022     public:
00023     typedef ListType::const_iterator const_iterator;
00024 
00028         LDAPReferenceList();
00029 
00033         LDAPReferenceList(const LDAPReferenceList& rl);
00034 
00038         ~LDAPReferenceList();
00039 
00044         size_t size() const;
00045 
00050         bool empty() const;
00051 
00055         const_iterator begin() const;
00056 
00061         const_iterator end() const;
00062 
00067         void addReference(const LDAPSearchReference& e);
00068 
00069     private:
00070         ListType m_refs;
00071 };
00072 #endif // LDAP_REFERENCE_LIST_H
00073