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
OpenVolumeMesh
OpenVolumeMesh
Commits
29a2730e
Commit
29a2730e
authored
May 21, 2019
by
Martin Heistermann
Browse files
implement property size()
parent
bc45b8c5
Changes
3
Show whitespace changes
Inline
Side-by-side
src/OpenVolumeMesh/Core/BaseProperty.hh
View file @
29a2730e
...
...
@@ -88,6 +88,8 @@ public:
virtual
const
std
::
string
typeNameWrapper
()
const
=
0
;
virtual
size_t
size
()
const
=
0
;
protected:
virtual
void
delete_multiple_entries
(
const
std
::
vector
<
bool
>&
_tags
)
=
0
;
...
...
src/OpenVolumeMesh/Core/OpenVolumeMeshProperty.hh
View file @
29a2730e
...
...
@@ -88,6 +88,9 @@ public:
virtual
void
resize
(
size_t
_n
)
{
data_
.
resize
(
_n
,
def_
);
}
virtual
size_t
size
()
const
{
return
data_
.
size
();
}
virtual
void
clear
()
{
data_
.
clear
();
vector_type
().
swap
(
data_
);
...
...
src/OpenVolumeMesh/Core/PropertyPtr.hh
View file @
29a2730e
...
...
@@ -91,6 +91,7 @@ public:
const_iterator
begin
()
const
{
return
ptr
::
shared_ptr
<
PropT
>::
get
()
->
begin
();
}
iterator
begin
()
{
return
ptr
::
shared_ptr
<
PropT
>::
get
()
->
begin
();
}
size_t
size
()
const
{
return
ptr
::
shared_ptr
<
PropT
>::
get
()
->
size
();
}
const_iterator
end
()
const
{
return
ptr
::
shared_ptr
<
PropT
>::
get
()
->
end
();
}
iterator
end
()
{
return
ptr
::
shared_ptr
<
PropT
>::
get
()
->
end
();
}
...
...
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