Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dragoș Haiduc
OpenLDAP
Commits
54a5aaf1
Commit
54a5aaf1
authored
16 years ago
by
Quanah Gibson-Mount
Browse files
Options
Downloads
Patches
Plain Diff
empty() and size() methods
parent
04692957
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/ldapc++/src/LDAPModList.cpp
+8
-0
8 additions, 0 deletions
contrib/ldapc++/src/LDAPModList.cpp
contrib/ldapc++/src/LDAPModList.h
+13
-3
13 additions, 3 deletions
contrib/ldapc++/src/LDAPModList.h
with
21 additions
and
3 deletions
contrib/ldapc++/src/LDAPModList.cpp
+
8
−
0
View file @
54a5aaf1
...
...
@@ -38,3 +38,11 @@ LDAPMod** LDAPModList::toLDAPModArray(){
}
return
ret
;
}
bool
LDAPModList
::
empty
()
const
{
return
m_modList
.
empty
();
}
unsigned
int
LDAPModList
::
size
()
const
{
return
m_modList
.
size
();
}
This diff is collapsed.
Click to expand it.
contrib/ldapc++/src/LDAPModList.h
+
13
−
3
View file @
54a5aaf1
...
...
@@ -16,9 +16,9 @@
* This container class is used to store multiple LDAPModification-objects.
*/
class
LDAPModList
{
typedef
std
::
list
<
LDAPModification
>
ListType
;
typedef
std
::
list
<
LDAPModification
>
ListType
;
public
:
public
:
/**
* Constructs an empty list.
*/
...
...
@@ -41,7 +41,17 @@ class LDAPModList{
*/
LDAPMod
**
toLDAPModArray
();
private
:
/**
* @returns true, if the ModList contains no Operations
*/
bool
empty
()
const
;
/**
* @returns number of Modifications in the ModList
*/
unsigned
int
size
()
const
;
private
:
ListType
m_modList
;
};
#endif //LDAP_MOD_LIST_H
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment