Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository 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
savoirfairelinux
jami-daemon
Commits
8c3de3b7
Commit
8c3de3b7
authored
19 years ago
by
jpbl
Browse files
Options
Downloads
Patches
Plain Diff
updated the utilspp version
parent
2a7379fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
utilspp/functor/Functor.inl
+2
-3
2 additions, 3 deletions
utilspp/functor/Functor.inl
utilspp/functor/MemFunHandler.hpp
+6
-4
6 additions, 4 deletions
utilspp/functor/MemFunHandler.hpp
utilspp/singleton/Makefile.am
+10
-8
10 additions, 8 deletions
utilspp/singleton/Makefile.am
with
18 additions
and
15 deletions
utilspp/functor/Functor.inl
+
2
−
3
View file @
8c3de3b7
...
...
@@ -38,15 +38,14 @@ utilspp::Functor<R, TList>::Functor(const PointerToObj &obj, MemFun fun)
template <typename R, class TList>
utilspp::Functor<R, TList>::Functor(const Functor &functor)
: mImpl(functor
->
mImpl->clone())
: mImpl(functor
.
mImpl->clone())
{}
template <typename R, class TList>
utilspp::Functor<R, TList> &
utilspp::Functor<R, TList>::operator=(const Functor &functor)
{
delete(mImpl);
mImpl = functor->clone();
mImpl = std::auto_ptr< Impl >(functor.mImpl->clone());
return (*this);
}
...
...
This diff is collapsed.
Click to expand it.
utilspp/functor/MemFunHandler.hpp
+
6
−
4
View file @
8c3de3b7
...
...
@@ -32,15 +32,15 @@ namespace utilspp
{
public:
typedef
typename
ParentFunctor
::
ResultType
ResultType
;
MemFunHandler
(
const
PointerToObj
&
obj
,
PointerToMemFn
memFn
)
MemFunHandler
(
PointerToObj
obj
,
PointerToMemFn
memFn
)
:
mObj
(
obj
)
,
mMemFn
(
memFn
)
{}
MemFunHandler
*
clone
()
const
{
return
new
MemFunHandler
(
*
this
);}
ResultType
operator
()()
ResultType
operator
()()
{
return
((
*
mObj
).
*
mMemFn
)();}
ResultType
operator
()(
typename
ParentFunctor
::
Parm1
p1
)
...
...
@@ -49,7 +49,9 @@ namespace utilspp
ResultType
operator
()(
typename
ParentFunctor
::
Parm1
p1
,
typename
ParentFunctor
::
Parm2
p2
)
{
return
((
*
mObj
).
*
mMemFn
)(
p1
,
p2
);}
ResultType
operator
()(
typename
ParentFunctor
::
Parm1
p1
,
typename
ParentFunctor
::
Parm2
p2
,
typename
ParentFunctor
::
Parm3
p3
)
ResultType
operator
()(
typename
ParentFunctor
::
Parm1
p1
,
typename
ParentFunctor
::
Parm2
p2
,
typename
ParentFunctor
::
Parm3
p3
)
{
return
((
*
mObj
).
*
mMemFn
)(
p1
,
p2
,
p3
);}
ResultType
operator
()(
typename
ParentFunctor
::
Parm1
p1
,
typename
ParentFunctor
::
Parm2
p2
,
typename
ParentFunctor
::
Parm3
p3
,
typename
ParentFunctor
::
Parm4
p4
)
...
...
This diff is collapsed.
Click to expand it.
utilspp/singleton/Makefile.am
+
10
−
8
View file @
8c3de3b7
noinst_LTLIBRARIES
=
libsingleton.la
libsingleton_la_SOURCES
=
\
CreationStatic.hpp
\
CreationUsingNew.hpp
\
LifetimeDefault.hpp
\
CreationStatic.hpp
CreationStatic.inl
\
CreationUsingNew.hpp
CreationUsingNew.inl
\
LifetimeDefault.hpp
LifetimeDefault.inl
\
LifetimeLibrary.cpp LifetimeLibrary.hpp LifetimeLibrary.inl
\
LifetimeWithLongevity.hpp LifetimeWithLongevity.inl
\
PrivateMembers.cpp PrivateMembers.hpp PrivateMembers.inl
\
SingletonHolder.hpp SingletonHolder.inl
SingletonHolder.hpp SingletonHolder.inl
pkginclude_HEADERS
=
\
CreationStatic.hpp
\
CreationUsingNew.hpp
\
LifetimeDefault.hpp
\
pkginclude_HEADERS
=
\
CreationStatic.hpp
CreationStatic.inl
\
CreationUsingNew.hpp
CreationUsingNew.inl
\
LifetimeDefault.hpp
LifetimeDefault.inl
\
LifetimeLibrary.hpp LifetimeLibrary.inl
\
LifetimeWithLongevity.hpp LifetimeWithLongevity.inl
\
PrivateMembers.hpp PrivateMembers.inl
\
...
...
@@ -20,3 +21,4 @@ pkginclude_HEADERS = \
pkgincludedir
=
$(
includedir
)
/utilspp/singleton
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