Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
6df1466c
Commit
6df1466c
authored
Dec 02, 2012
by
Tiago Peixoto
Browse files
Implement easy copying of checked/unchecked_vector_property_map
parent
fd883479
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/fast_vector_property_map.hh
View file @
6df1466c
...
...
@@ -109,6 +109,14 @@ public:
return
unchecked_t
(
*
this
,
size
);
}
// deep copy
checked_vector_property_map
copy
()
const
{
checked_vector_property_map
pmap
(
index
);
*
(
pmap
.
store
)
=
*
store
;
return
pmap
;
}
public:
// Copy ctor absent, default semantics is OK.
// Assignment operator absent, default semantics is OK.
...
...
@@ -175,6 +183,15 @@ public:
checked_t
get_checked
()
{
return
_checked
;}
// deep copy
unchecked_vector_property_map
copy
()
const
{
unchecked_vector_property_map
pmap
(
_checked
.
index
,
_checked
.
store
->
size
());
*
(
pmap
.
_checked
.
store
)
=
*
(
_checked
.
store
);
return
pmap
;
}
private:
checked_t
_checked
;
};
...
...
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