Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ApplicationCore
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ChimeraTK Mirror
ApplicationCore
Commits
5485df12
Commit
5485df12
authored
6 years ago
by
Martin Christoph Hierholzer
Browse files
Options
Downloads
Patches
Plain Diff
implemented getVersionNumber() as it is now mandatory
parent
35ae0579
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
example/TimerDummyDevice.cc
+7
-0
7 additions, 0 deletions
example/TimerDummyDevice.cc
include/ConstantAccessor.h
+4
-0
4 additions, 0 deletions
include/ConstantAccessor.h
include/FeedingFanOut.h
+2
-0
2 additions, 0 deletions
include/FeedingFanOut.h
with
13 additions
and
0 deletions
example/TimerDummyDevice.cc
+
7
−
0
View file @
5485df12
...
...
@@ -64,6 +64,7 @@ class TimerDummyRegisterAccessor : public ChimeraTK::SyncNDRegisterAccessor<User
void
doPostRead
()
override
{
ChimeraTK
::
NDRegisterAccessor
<
UserType
>::
buffer_2D
[
0
][
0
]
++
;
currentVersion
=
{};
}
bool
doWriteTransfer
(
ChimeraTK
::
VersionNumber
)
override
{
return
false
;
}
...
...
@@ -85,6 +86,12 @@ class TimerDummyRegisterAccessor : public ChimeraTK::SyncNDRegisterAccessor<User
std
::
list
<
boost
::
shared_ptr
<
ChimeraTK
::
TransferElement
>
>
getInternalElements
()
override
{
return
{};
}
ChimeraTK
::
VersionNumber
getVersionNumber
()
const
override
{
return
currentVersion
;
}
protected
:
ChimeraTK
::
VersionNumber
currentVersion
;
};
template
<
>
...
...
This diff is collapsed.
Click to expand it.
include/ConstantAccessor.h
+
4
−
0
View file @
5485df12
...
...
@@ -91,6 +91,8 @@ namespace ChimeraTK {
isInterrupted
=
true
;
}
VersionNumber
getVersionNumber
()
const
override
{
return
versionNumber
;
}
protected
:
std
::
vector
<
UserType
>
_value
;
...
...
@@ -100,6 +102,8 @@ namespace ChimeraTK {
bool
isInterrupted
{
false
};
boost
::
promise
<
void
>
promise
;
VersionNumber
versionNumber
;
};
}
/* namespace ChimeraTK */
...
...
This diff is collapsed.
Click to expand it.
include/FeedingFanOut.h
+
2
−
0
View file @
5485df12
...
...
@@ -135,6 +135,8 @@ namespace ChimeraTK {
AccessModeFlags
getAccessModeFlags
()
const
override
{
return
{};
}
VersionNumber
getVersionNumber
()
const
override
{
return
FanOut
<
UserType
>::
slaves
.
front
()
->
getVersionNumber
();
}
};
}
/* namespace ChimeraTK */
...
...
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