diff options
Diffstat (limited to 'contrib/ldapc++/src/LDAPReferenceList.cpp')
-rw-r--r-- | contrib/ldapc++/src/LDAPReferenceList.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/contrib/ldapc++/src/LDAPReferenceList.cpp b/contrib/ldapc++/src/LDAPReferenceList.cpp new file mode 100644 index 0000000..c1812d7 --- /dev/null +++ b/contrib/ldapc++/src/LDAPReferenceList.cpp @@ -0,0 +1,40 @@ +// $OpenLDAP$ +/* + * Copyright 2000-2018 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ + + +#include "LDAPReferenceList.h" +#include "LDAPSearchReference.h" + +LDAPReferenceList::LDAPReferenceList(){ +} + +LDAPReferenceList::LDAPReferenceList(const LDAPReferenceList& e){ + m_refs = e.m_refs; +} + +LDAPReferenceList::~LDAPReferenceList(){ +} + +size_t LDAPReferenceList::size() const{ + return m_refs.size(); +} + +bool LDAPReferenceList::empty() const{ + return m_refs.empty(); +} + +LDAPReferenceList::const_iterator LDAPReferenceList::begin() const{ + return m_refs.begin(); +} + +LDAPReferenceList::const_iterator LDAPReferenceList::end() const{ + return m_refs.end(); +} + +void LDAPReferenceList::addReference(const LDAPSearchReference& e){ + m_refs.push_back(e); +} + |