ldapsdk  0.0.1
LDAPReferenceList.h
Go to the documentation of this file.
1 // $OpenLDAP$
2 /*
3  * Copyright 2000-2013 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6 
7 #ifndef LDAP_REFERENCE_LIST_H
8 #define LDAP_REFERENCE_LIST_H
9 
10 #include <cstdio>
11 #include <list>
12 
14 
21  typedef std::list<LDAPSearchReference> ListType;
22 
23  public:
24  typedef ListType::const_iterator const_iterator;
25 
30 
35 
40 
45  size_t size() const;
46 
51  bool empty() const;
52 
56  const_iterator begin() const;
57 
62  const_iterator end() const;
63 
68  void addReference(const LDAPSearchReference& e);
69 
70  private:
71  ListType m_refs;
72 };
73 #endif // LDAP_REFERENCE_LIST_H
74 
const_iterator begin() const
Definition: LDAPReferenceList.cpp:29
const_iterator end() const
Definition: LDAPReferenceList.cpp:33
bool empty() const
Definition: LDAPReferenceList.cpp:25
This class is used to represent Continuation References that were returned during a SEARCH-Operation...
Definition: LDAPSearchReference.h:21
size_t size() const
Definition: LDAPReferenceList.cpp:21
LDAPReferenceList()
Constructs an empty list.
Definition: LDAPReferenceList.cpp:11
~LDAPReferenceList()
Destructor.
Definition: LDAPReferenceList.cpp:18
Container class for storing a list of Search References.
Definition: LDAPReferenceList.h:20
void addReference(const LDAPSearchReference &e)
Adds one element to the end of the list.
Definition: LDAPReferenceList.cpp:37
ListType::const_iterator const_iterator
Definition: LDAPReferenceList.h:24