Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Cazier
CGoGN
Commits
69cbf02a
Commit
69cbf02a
authored
Aug 29, 2011
by
Pierre Kraemer
Browse files
add setAllValues function in AttributeHandler
parent
0d256b2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/Topology/generic/attributeHandler.h
View file @
69cbf02a
...
...
@@ -142,6 +142,11 @@ public:
*/
unsigned
int
newElt
()
;
/**
*
*/
void
setAllValues
(
T
&
v
)
;
/**
* begin of table
* @return the iterator of the begin of container
...
...
include/Topology/generic/attributeHandler.hpp
View file @
69cbf02a
...
...
@@ -141,6 +141,13 @@ inline unsigned int AttributeHandler<T>::newElt()
return
idx
;
}
template
<
typename
T
>
inline
void
AttributeHandler
<
T
>::
setAllValues
(
T
&
v
)
{
for
(
unsigned
int
i
=
begin
();
i
!=
end
();
next
(
i
))
m_attrib
->
operator
[](
i
)
=
v
;
}
template
<
typename
T
>
inline
unsigned
int
AttributeHandler
<
T
>::
begin
()
const
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment