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
OpenVolumeMesh
OpenVolumeMesh
Commits
047ad081
Commit
047ad081
authored
Feb 20, 2019
by
Martin Heistermann
Browse files
PropertyPtr: clarify public interface by only exposing the necessary shared_ptr methods (cf
#10
)
parent
56777c36
Pipeline
#8716
passed with stage
in 7 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/OpenVolumeMesh/Core/PropertyPtr.hh
View file @
047ad081
...
@@ -63,7 +63,7 @@ class ResourceManager;
...
@@ -63,7 +63,7 @@ class ResourceManager;
*/
*/
template
<
class
PropT
,
class
HandleT
>
template
<
class
PropT
,
class
HandleT
>
class
PropertyPtr
:
p
ublic
ptr
::
shared_ptr
<
PropT
>
,
public
BaseProperty
{
class
PropertyPtr
:
p
rotected
ptr
::
shared_ptr
<
PropT
>
,
public
BaseProperty
{
public:
public:
friend
class
ResourceManager
;
friend
class
ResourceManager
;
...
@@ -82,6 +82,10 @@ public:
...
@@ -82,6 +82,10 @@ public:
/// Destructor
/// Destructor
virtual
~
PropertyPtr
();
virtual
~
PropertyPtr
();
using
ptr
::
shared_ptr
<
PropT
>::
operator
*
;
using
ptr
::
shared_ptr
<
PropT
>::
operator
->
;
using
ptr
::
shared_ptr
<
PropT
>::
operator
bool
;
virtual
const
std
::
string
&
name
()
const
;
virtual
const
std
::
string
&
name
()
const
;
virtual
void
delete_element
(
size_t
_idx
);
virtual
void
delete_element
(
size_t
_idx
);
...
...
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