]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPEntryList.cpp
Entry rwlock is no longer needed as concurrency is managed
[openldap] / contrib / ldapc++ / src / LDAPEntryList.cpp
1 /*
2  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6
7 #include "LDAPEntryList.h"
8 #include "LDAPEntry.h"
9
10 LDAPEntryList::LDAPEntryList(){
11 }
12
13 LDAPEntryList::LDAPEntryList(const LDAPEntryList& e){
14     m_entries = e.m_entries;
15 }
16
17 LDAPEntryList::~LDAPEntryList(){
18 }
19
20 size_t LDAPEntryList::size() const{
21     return m_entries.size();
22 }
23
24 bool LDAPEntryList::empty() const{
25     return m_entries.empty();
26 }
27
28 LDAPEntryList::const_iterator LDAPEntryList::begin() const{
29     return m_entries.begin();
30 }
31
32 LDAPEntryList::const_iterator LDAPEntryList::end() const{
33     return m_entries.end();
34 }
35
36 void LDAPEntryList::addEntry(const LDAPEntry& e){
37     m_entries.push_back(e);
38 }
39