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
9dcc1f05
Commit
9dcc1f05
authored
14 years ago
by
ilor
Browse files
Options
Downloads
Patches
Plain Diff
TSet class
parent
29a28efd
Branches
Branches containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
libwccl/CMakeLists.txt
+1
-0
1 addition, 0 deletions
libwccl/CMakeLists.txt
libwccl/values/tset.cpp
+7
-0
7 additions, 0 deletions
libwccl/values/tset.cpp
libwccl/values/tset.h
+43
-0
43 additions, 0 deletions
libwccl/values/tset.h
libwccl/variables.h
+3
-1
3 additions, 1 deletion
libwccl/variables.h
with
54 additions
and
1 deletion
libwccl/CMakeLists.txt
+
1
−
0
View file @
9dcc1f05
...
...
@@ -18,6 +18,7 @@ SET(libwccl_STAT_SRC
values/position.cpp
values/positionref.cpp
values/strset.cpp
values/tset.cpp
values/value.cpp
variables.cpp
)
...
...
This diff is collapsed.
Click to expand it.
libwccl/values/tset.cpp
0 → 100644
+
7
−
0
View file @
9dcc1f05
#include
<libwccl/values/tset.h>
namespace
Wccl
{
const
char
*
TSet
::
type_name
=
"TSet"
;
}
/* end ns Wccl */
This diff is collapsed.
Click to expand it.
libwccl/values/tset.h
0 → 100644
+
43
−
0
View file @
9dcc1f05
#ifndef LIBWCCL_VALUES_TSET_H
#define LIBWCCL_VALUES_TSET_H
#include
<libwccl/values/value.h>
#include
<libcorpus2/tag.h>
namespace
Wccl
{
class
TSet
:
public
Value
{
public:
WCCL_VALUE_PREAMBLE
;
TSet
()
:
tag_
()
{
}
explicit
TSet
(
Corpus2
::
Tag
tag
)
:
tag_
(
tag
)
{
}
const
Corpus2
::
Tag
&
get_tag
()
const
{
return
tag_
;
}
void
set_tag
(
const
Corpus2
::
Tag
&
tag
)
{
tag_
=
tag
;
}
Corpus2
::
Tag
&
tag_ref
()
{
return
tag_
;
}
private
:
Corpus2
::
Tag
tag_
;
};
}
/* end ns Wccl */
#endif // LIBWCCL_VALUES_TSET_H
This diff is collapsed.
Click to expand it.
libwccl/variables.h
+
3
−
1
View file @
9dcc1f05
...
...
@@ -6,6 +6,7 @@
#include
<libwccl/values/position.h>
#include
<libwccl/values/positionref.h>
#include
<libwccl/values/strset.h>
#include
<libwccl/values/tset.h>
#include
<iostream>
#include
<map>
#include
<string>
...
...
@@ -86,12 +87,13 @@ class Variables : detail::Vmap<Value>
,
detail
::
Vmap
<
Position
>
,
detail
::
Vmap
<
PositionRef
>
,
detail
::
Vmap
<
StrSet
>
,
detail
::
Vmap
<
TSet
>
{
public:
/// Valid value types, should match the inheritance.
/// the type Value must be first, order of other items is not important
typedef
boost
::
mpl
::
list
<
Value
,
Bool
,
Position
,
PositionRef
,
StrSet
>
types
;
Bool
,
Position
,
PositionRef
,
StrSet
,
TSet
>
types
;
/// Constructor, creates an empty instance.
Variables
();
...
...
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