Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ADIOS2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
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
Podhorszki, Norbert
ADIOS2
Commits
ff6822d5
Commit
ff6822d5
authored
7 years ago
by
Atkins, Charles Vernon
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #58 from chuckatkins/add-value-type-trait
Added a ValueType trait to TypeInfo.
parents
809643ad
6b1f95af
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
include/ADIOSTypes.h
+3
-0
3 additions, 0 deletions
include/ADIOSTypes.h
with
3 additions
and
0 deletions
include/ADIOSTypes.h
+
3
−
0
View file @
ff6822d5
...
@@ -116,6 +116,7 @@ struct TypeInfo<T, typename std::enable_if<std::is_integral<T>::value>::type>
...
@@ -116,6 +116,7 @@ struct TypeInfo<T, typename std::enable_if<std::is_integral<T>::value>::type>
{
{
using
IOType
=
using
IOType
=
typename
FixedWidthInt
<
sizeof
(
T
),
std
::
is_signed
<
T
>::
value
>::
Type
;
typename
FixedWidthInt
<
sizeof
(
T
),
std
::
is_signed
<
T
>::
value
>::
Type
;
using
ValueType
=
T
;
};
};
template
<
typename
T
>
template
<
typename
T
>
...
@@ -123,6 +124,7 @@ struct TypeInfo<T,
...
@@ -123,6 +124,7 @@ struct TypeInfo<T,
typename
std
::
enable_if
<
std
::
is_floating_point
<
T
>::
value
>::
type
>
typename
std
::
enable_if
<
std
::
is_floating_point
<
T
>::
value
>::
type
>
{
{
using
IOType
=
T
;
using
IOType
=
T
;
using
ValueType
=
T
;
};
};
template
<
typename
T
>
template
<
typename
T
>
...
@@ -130,6 +132,7 @@ struct TypeInfo<T, typename std::enable_if<std::is_same<
...
@@ -130,6 +132,7 @@ struct TypeInfo<T, typename std::enable_if<std::is_same<
T
,
std
::
complex
<
typename
T
::
value_type
>>::
value
>::
type
>
T
,
std
::
complex
<
typename
T
::
value_type
>>::
value
>::
type
>
{
{
using
IOType
=
T
;
using
IOType
=
T
;
using
ValueType
=
typename
T
::
value_type
;
};
};
}
// end namespace adios
}
// end namespace adios
...
...
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