Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yuhao Liu
ogs
Commits
0dc25ff2
Commit
0dc25ff2
authored
8 years ago
by
Norihiro Watanabe
Browse files
Options
Downloads
Patches
Plain Diff
change PropertyVector<T*>::_values store a vector of a raw pointer array
parent
0a80306c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MeshLib/PropertyVector.h
+5
-2
5 additions, 2 deletions
MeshLib/PropertyVector.h
with
5 additions
and
2 deletions
MeshLib/PropertyVector.h
+
5
−
2
View file @
0dc25ff2
...
...
@@ -138,7 +138,7 @@ public:
~
PropertyVector
()
{
for
(
auto
v
:
_values
)
delete
v
;
delete
[]
v
;
}
/// The operator[] uses the item to group property map to access to the
...
...
@@ -155,13 +155,16 @@ public:
void
initPropertyValue
(
std
::
size_t
group_id
,
T
const
&
value
)
{
_values
[
group_id
]
=
new
T
(
value
);
T
*
p
=
new
T
[
1
];
p
[
0
]
=
value
;
_values
[
group_id
]
=
p
;
}
std
::
size_t
getNumberOfTuples
()
const
{
return
std
::
vector
<
std
::
size_t
>::
size
();
}
/// Method returns the number of tuples times the number of tuple components.
std
::
size_t
size
()
const
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment