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
a0f327b6
Commit
a0f327b6
authored
Jun 12, 2012
by
Sylvain Thery
Browse files
add nbElements function to all attribute handlers
parent
c2deab7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/Topology/generic/attributeHandler.h
View file @
a0f327b6
...
...
@@ -135,6 +135,11 @@ public:
*/
const
std
::
string
&
name
()
const
;
/**
* give the number of elements of the attribute container
*/
unsigned
int
nbElements
()
const
;
/**
* [] operator with dart parameter
*/
...
...
include/Topology/generic/attributeHandler.hpp
View file @
a0f327b6
...
...
@@ -54,6 +54,7 @@ AttributeHandler<T, ORBIT>::AttributeHandler() :
AttributeHandlerGen
(
NULL
,
false
),
m_attrib
(
NULL
)
{}
template
<
typename
T
,
unsigned
int
ORBIT
>
AttributeHandler
<
T
,
ORBIT
>::
AttributeHandler
(
GenericMap
*
m
,
AttributeMultiVector
<
T
>*
amv
)
:
AttributeHandlerGen
(
m
,
false
),
m_attrib
(
amv
)
...
...
@@ -120,6 +121,13 @@ inline const std::string& AttributeHandler<T, ORBIT>::name() const
return
m_attrib
->
getName
()
;
}
template
<
typename
T
,
unsigned
int
ORBIT
>
inline
unsigned
int
AttributeHandler
<
T
,
ORBIT
>::
nbElements
()
const
{
return
m_map
->
getAttributeContainer
<
ORBIT
>
().
size
()
;
}
template
<
typename
T
,
unsigned
int
ORBIT
>
inline
T
&
AttributeHandler
<
T
,
ORBIT
>::
operator
[](
Dart
d
)
{
...
...
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