Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
197f6376
Commit
197f6376
authored
4 years ago
by
Wuttke, Joachim
Committed by
Wuttke, Joachim
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
IFactory: rm unused typedef, comment on non-const iterator names
parent
3d73292a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Core/StandardSamples/IFactory.h
+4
-5
4 additions, 5 deletions
Core/StandardSamples/IFactory.h
with
4 additions
and
5 deletions
Core/StandardSamples/IFactory.h
+
4
−
5
View file @
197f6376
...
...
@@ -35,10 +35,10 @@ public:
//! map for correspondance between object identifier and object description
typedef
std
::
map
<
Key
,
std
::
string
>
DescriptionMap_t
;
typedef
typename
DescriptionMap_t
::
iterator
iterator
;
typedef
typename
DescriptionMap_t
::
const_iterator
const_iterator
;
IFactory
()
{}
~
IFactory
()
{}
//! Creates object by calling creation function corresponded to given identifier
AbstractProduct
*
createItem
(
const
Key
&
item_key
)
...
...
@@ -85,13 +85,12 @@ public:
return
m_callbacks
.
find
(
item_key
)
!=
m_callbacks
.
end
();
}
~
IFactory
()
{}
//! Returns number of registered objects
size_t
size
()
const
{
return
m_callbacks
.
size
();
}
const_iterator
begin
()
const
{
return
m_descriptions
.
begin
();
}
const_iterator
end
()
const
{
return
m_descriptions
.
end
();
}
// TODO: rename to cbegin, cend (jul20 conflict in libBornAgainCore_wrap.cpp)
const_iterator
begin
()
const
{
return
m_descriptions
.
cbegin
();
}
const_iterator
end
()
const
{
return
m_descriptions
.
cend
();
}
protected
:
CallbackMap_t
m_callbacks
;
//!< map of correspondence of objectsId and creation functions
...
...
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