Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
f9c9f33b
Commit
f9c9f33b
authored
Feb 06, 2015
by
Mathieu Giraud
Browse files
core/kmeraffect.{h,cpp}: KmerAffect copy constructor, with reverse
parent
f62ab84a
Changes
2
Hide whitespace changes
Inline
Side-by-side
algo/core/kmeraffect.cpp
View file @
f9c9f33b
...
...
@@ -79,6 +79,12 @@ KmerAffect::KmerAffect(const KmerAffect &ka) {
affect
=
ka
.
affect
;
}
KmerAffect
::
KmerAffect
(
const
KmerAffect
&
ka
,
bool
reverse
)
{
affect
=
ka
.
affect
;
if
(
reverse
)
affect
.
c
^=
(
1
<<
7
);
}
KmerAffect
::
KmerAffect
(
const
string
&
label
,
int
strand
)
{
affect
.
c
=
label
[
0
];
...
...
algo/core/kmeraffect.h
View file @
f9c9f33b
...
...
@@ -65,6 +65,11 @@ public:
*/
KmerAffect
(
const
KmerAffect
&
ka
);
/*
* Copy constructor, possibly reversing the strand if 'reverse' is true
*/
KmerAffect
(
const
KmerAffect
&
ka
,
bool
reverse
);
/**
* Construct an affectation as stated by the parameters
* @post affect_strand(affect) == strand AND affect_char(affect) == kmer[0]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment