openldap/contrib/ldapc++/src/LDAPEntryList.cpp

41 lines
749 B
C++
Raw Normal View History

2008-03-28 07:05:10 -04:00
// $OpenLDAP$
/*
2015-02-11 16:36:57 -05:00
* Copyright 2000-2015 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
#include "LDAPEntryList.h"
#include "LDAPEntry.h"
LDAPEntryList::LDAPEntryList(){
}
LDAPEntryList::LDAPEntryList(const LDAPEntryList& e){
m_entries = e.m_entries;
}
LDAPEntryList::~LDAPEntryList(){
}
size_t LDAPEntryList::size() const{
return m_entries.size();
}
bool LDAPEntryList::empty() const{
return m_entries.empty();
}
LDAPEntryList::const_iterator LDAPEntryList::begin() const{
return m_entries.begin();
}
LDAPEntryList::const_iterator LDAPEntryList::end() const{
return m_entries.end();
}
void LDAPEntryList::addEntry(const LDAPEntry& e){
m_entries.push_back(e);
}