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
270fdba3
Commit
270fdba3
authored
10 years ago
by
Tom Fischer
Browse files
Options
Downloads
Patches
Plain Diff
[ML] Docu in class mesh: addProperties() / getProperties().
parent
3f28046f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MeshLib/Mesh.h
+8
-0
8 additions, 0 deletions
MeshLib/Mesh.h
with
8 additions
and
0 deletions
MeshLib/Mesh.h
+
8
−
0
View file @
270fdba3
...
@@ -127,6 +127,7 @@ public:
...
@@ -127,6 +127,7 @@ public:
/// Return true if the mesh has any nonlinear nodes
/// Return true if the mesh has any nonlinear nodes
bool
isNonlinear
()
const
{
return
(
getNNodes
()
!=
getNBaseNodes
());
}
bool
isNonlinear
()
const
{
return
(
getNNodes
()
!=
getNBaseNodes
());
}
/// Method to get a vector of property values.
template
<
typename
T
>
template
<
typename
T
>
boost
::
optional
<
std
::
vector
<
T
>
const
&>
boost
::
optional
<
std
::
vector
<
T
>
const
&>
getProperty
(
std
::
string
const
&
name
)
const
getProperty
(
std
::
string
const
&
name
)
const
...
@@ -148,6 +149,13 @@ public:
...
@@ -148,6 +149,13 @@ public:
}
}
}
}
/// Method to store a vector of property values assigned to a property name.
/// Since the implementation makes no assumption about the number of data
/// items stored within the vector, it is possible either to use a small
/// number of properties where each particular property can be assigned to
/// several mesh items. In contrast to this it is possible to have a
/// separate value for each mesh item.
/// The user has to ensure the correct usage of the vector later on.
template
<
typename
T
>
template
<
typename
T
>
void
addProperty
(
std
::
string
const
&
name
,
std
::
vector
<
T
>
const
&
property
)
void
addProperty
(
std
::
string
const
&
name
,
std
::
vector
<
T
>
const
&
property
)
{
{
...
...
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