Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Philip Trettner
polymesh
Commits
dbbc28a6
Commit
dbbc28a6
authored
Aug 03, 2018
by
Philip Trettner
Browse files
moved property::view to impl
parent
07ddb197
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/polymesh/impl/impl_properties.hh
0 → 100644
View file @
dbbc28a6
#pragma once
#include
"../properties.hh"
namespace
polymesh
{
template
<
class
CollectionT
,
class
FuncT
>
template
<
class
Func2T
>
auto
readonly_property
<
CollectionT
,
FuncT
>::
view
(
Func2T
&&
f
)
const
->
readonly_property
<
readonly_property
<
CollectionT
,
FuncT
>
,
Func2T
>
{
return
{
*
this
,
f
};
}
}
src/polymesh/properties.hh
View file @
dbbc28a6
...
@@ -23,11 +23,7 @@ struct readonly_property
...
@@ -23,11 +23,7 @@ struct readonly_property
int
size
()
const
{
return
mCollection
.
size
();
}
int
size
()
const
{
return
mCollection
.
size
();
}
template
<
class
Func2T
>
template
<
class
Func2T
>
auto
view
(
Func2T
&&
f
)
const
->
readonly_property
<
readonly_property
<
CollectionT
,
FuncT
>
,
Func2T
>
auto
view
(
Func2T
&&
f
)
const
->
readonly_property
<
readonly_property
<
CollectionT
,
FuncT
>
,
Func2T
>
;
{
// TODO: move to impl_properties
return
{
*
this
,
f
};
}
private:
private:
CollectionT
mCollection
;
CollectionT
mCollection
;
...
...
Write
Preview
Supports
Markdown
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