Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
corpus2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
corpus2
Commits
be086e8f
Commit
be086e8f
authored
Nov 17, 2011
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
Wrapper for TokenMetaData
parent
9c865e49
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
swig/tokenmetadata.i
+38
-0
38 additions, 0 deletions
swig/tokenmetadata.i
with
38 additions
and
0 deletions
swig/tokenmetadata.i
0 → 100644
+
38
−
0
View file @
be086e8f
#
ifndef
SWIG_LIBCORPUS2_TOKENMETADATA_I
#
define
SWIG_LIBCORPUS2_TOKENMETADATA_I
%
module
libcorpustokenmetadata
%
{
#include <libcorpus2/tokenmetadata.h>
%}
%
include
"
std_map.i
"
%
include
"
std_string.i
"
%
include
"
std_defs.i
"
%
include
"
boost_shared_ptr.i
"
%
feature
(
"
notabstract
"
)
Corpus2
::
TokenMetaData
;
%
template
(
TokenMetaDataPtr
)
boost
::
shared_ptr
<
Corpus2
::
TokenMetaData
>
;
namespace
Corpus2
{
class TokenMetaData {
public:
TokenMetaData();
~TokenMetaData();
boost::shared_ptr<TokenMetaData> clone() const;
bool has_attribute(const std::string& name) const;
std::string get_attribute(const std::string& name) const;
void set_attribute(const std::string& name, const std::string& value);
typedef std::map<std::string, std::string> attr_map_t;
const attr_map_t& attributes() const;
};
}
using
namespace
std
;
using
namespace
Corpus2
;
#
endif
/* SWIG_LIBCORPUS2_TOKENMETADATA_I */
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