ldapsdk 0.0.1
LDAPUrlList.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_URL_LIST_H
8#define LDAP_URL_LIST_H
9
10#include <list>
11#include <LDAPUrl.h>
12
17 typedef std::list<LDAPUrl> ListType;
18
19 public:
20 typedef ListType::const_iterator const_iterator;
21
26
30 LDAPUrlList(const LDAPUrlList& urls);
31
39 LDAPUrlList(char** urls);
40
45
50 size_t size() const;
51
56 bool empty() const;
57
61 const_iterator begin() const;
62
67 const_iterator end() const;
68
73 void add(const LDAPUrl& url);
74
75 private :
76 ListType m_urls;
77};
78#endif //LDAP_URL_LIST_H
This class is used to analyze and store LDAP-Urls as returned by a LDAP-Server as Referrals and Searc...
Definition: LDAPUrl.h:22
This container class is used to store multiple LDAPUrl-objects.
Definition: LDAPUrlList.h:16
const_iterator end() const
Definition: LDAPUrlList.cpp:50
size_t size() const
Definition: LDAPUrlList.cpp:38
void add(const LDAPUrl &url)
Adds one element to the end of the list.
Definition: LDAPUrlList.cpp:54
~LDAPUrlList()
Destructor.
Definition: LDAPUrlList.cpp:33
LDAPUrlList()
Constructs an empty list.
Definition: LDAPUrlList.cpp:13
bool empty() const
Definition: LDAPUrlList.cpp:42
ListType::const_iterator const_iterator
Definition: LDAPUrlList.h:20
const_iterator begin() const
Definition: LDAPUrlList.cpp:46