Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
WCCL
Commits
b847cf0b
Commit
b847cf0b
authored
14 years ago
by
Adam Wardynski
Browse files
Options
Downloads
Patches
Plain Diff
Common set_value, get_value interface for Values
parent
9ad17870
Branches
Branches containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libwccl/values/strset.h
+8
-0
8 additions, 0 deletions
libwccl/values/strset.h
libwccl/values/tset.h
+2
-2
2 additions, 2 deletions
libwccl/values/tset.h
tests/values.cpp
+1
-1
1 addition, 1 deletion
tests/values.cpp
with
11 additions
and
3 deletions
libwccl/values/strset.h
+
8
−
0
View file @
b847cf0b
...
...
@@ -36,6 +36,14 @@ public:
set_
=
set
;
}
const
set_t
&
get_value
()
const
{
return
contents
();
}
void
set_value
(
const
set_t
&
set
)
{
set_contents
(
set
);
}
void
swap
(
StrSet
&
ss
)
{
ss
.
set_
.
swap
(
set_
);
}
...
...
This diff is collapsed.
Click to expand it.
libwccl/values/tset.h
+
2
−
2
View file @
b847cf0b
...
...
@@ -21,11 +21,11 @@ public:
{
}
const
Corpus2
::
Tag
&
get_
tag
()
const
{
const
Corpus2
::
Tag
&
get_
value
()
const
{
return
tag_
;
}
void
set_
tag
(
const
Corpus2
::
Tag
&
tag
)
{
void
set_
value
(
const
Corpus2
::
Tag
&
tag
)
{
tag_
=
tag
;
}
...
...
This diff is collapsed.
Click to expand it.
tests/values.cpp
+
1
−
1
View file @
b847cf0b
...
...
@@ -21,7 +21,7 @@ BOOST_AUTO_TEST_CASE(boolz)
BOOST_AUTO_TEST_CASE
(
tsetz
)
{
TSet
t
;
BOOST_CHECK
(
t
.
get_
tag
().
is_null
());
BOOST_CHECK
(
t
.
get_
value
().
is_null
());
Value
&
v
=
t
;
BOOST_CHECK_EQUAL
(
v
.
get_type_name
(),
TSet
::
type_name
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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