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
8b4a7059
Commit
8b4a7059
authored
Oct 26, 2016
by
Tiago Peixoto
Browse files
sampler.hh: Implement access to items
parent
5d891f86
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/generation/sampler.hh
View file @
8b4a7059
...
...
@@ -96,6 +96,26 @@ public:
size_t
size
()
const
{
return
_items
.
size
();
}
bool
empty
()
const
{
return
_items
.
empty
();
}
const
Value
&
operator
[](
size_t
i
)
const
{
return
_items
[
i
];
}
const
auto
&
items
()
const
{
return
_items
;
}
const
auto
begin
()
const
{
return
_items
.
begin
();
}
const
auto
end
()
const
{
return
_items
.
end
();
}
private:
typedef
typename
mpl
::
if_
<
KeepReference
,
...
...
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