Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
c5191249
There was an error fetching the commit references. Please try again later.
Commit
c5191249
authored
8 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetic changes in EllpackIndexMultimap
parent
59a78e50
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/TNL/Experimental/Multimaps/EllpackIndexMultimapValues.h
+6
-8
6 additions, 8 deletions
src/TNL/Experimental/Multimaps/EllpackIndexMultimapValues.h
src/TNL/Experimental/Multimaps/EllpackIndexMultimapValues_impl.h
+6
-6
6 additions, 6 deletions
.../Experimental/Multimaps/EllpackIndexMultimapValues_impl.h
with
12 additions
and
14 deletions
src/TNL/Experimental/Multimaps/EllpackIndexMultimapValues.h
+
6
−
8
View file @
c5191249
...
...
@@ -25,8 +25,6 @@ template< typename Index,
typename
LocalIndex
>
class
EllpackIndexMultimapValues
{
using
ThisType
=
EllpackIndexMultimapValues
<
Index
,
Device
,
LocalIndex
>
;
public:
using
DeviceType
=
Device
;
using
IndexType
=
Index
;
...
...
@@ -35,13 +33,13 @@ class EllpackIndexMultimapValues
EllpackIndexMultimapValues
();
EllpackIndexMultimapValues
(
ThisType
&&
other
);
EllpackIndexMultimapValues
(
EllpackIndexMultimapValues
&&
other
);
ThisType
&
operator
=
(
const
ThisType
&
);
EllpackIndexMultimapValues
&
operator
=
(
const
EllpackIndexMultimapValues
&
);
ThisType
&
operator
=
(
ThisType
&&
other
);
EllpackIndexMultimapValues
&
operator
=
(
EllpackIndexMultimapValues
&&
other
);
void
bind
(
const
ThisType
&
other
);
void
bind
(
const
EllpackIndexMultimapValues
&
other
);
bool
setSize
(
const
LocalIndexType
&
portsCount
);
...
...
@@ -58,9 +56,9 @@ class EllpackIndexMultimapValues
const
IndexType
&
operator
[](
const
LocalIndexType
&
portIndex
)
const
;
bool
operator
==
(
const
ThisType
&
other
)
const
;
bool
operator
==
(
const
EllpackIndexMultimapValues
&
other
)
const
;
bool
operator
!=
(
const
ThisType
&
other
)
const
;
bool
operator
!=
(
const
EllpackIndexMultimapValues
&
other
)
const
;
void
print
(
std
::
ostream
&
str
)
const
;
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Experimental/Multimaps/EllpackIndexMultimapValues_impl.h
+
6
−
6
View file @
c5191249
...
...
@@ -29,7 +29,7 @@ template< typename Index,
typename
Device
,
typename
LocalIndex
>
EllpackIndexMultimapValues
<
Index
,
Device
,
LocalIndex
>::
EllpackIndexMultimapValues
(
ThisType
&&
other
)
EllpackIndexMultimapValues
(
EllpackIndexMultimapValues
&&
other
)
:
values
(
other
.
values
),
valuesCount
(
other
.
valuesCount
),
allocatedSize
(
other
.
allocatedSize
)
{
other
.
values
=
nullptr
;
...
...
@@ -42,7 +42,7 @@ template< typename Index,
typename
LocalIndex
>
EllpackIndexMultimapValues
<
Index
,
Device
,
LocalIndex
>&
EllpackIndexMultimapValues
<
Index
,
Device
,
LocalIndex
>::
operator
=
(
const
ThisType
&
other
)
operator
=
(
const
EllpackIndexMultimapValues
&
other
)
{
Assert
(
this
->
getSize
()
==
other
.
getSize
(),
);
if
(
this
->
values
!=
other
.
values
)
{
...
...
@@ -57,7 +57,7 @@ template< typename Index,
typename
LocalIndex
>
EllpackIndexMultimapValues
<
Index
,
Device
,
LocalIndex
>&
EllpackIndexMultimapValues
<
Index
,
Device
,
LocalIndex
>::
operator
=
(
ThisType
&&
other
)
operator
=
(
EllpackIndexMultimapValues
&&
other
)
{
this
->
values
=
other
.
values
;
this
->
valuesCount
=
other
.
valuesCount
;
...
...
@@ -73,7 +73,7 @@ template< typename Index,
typename
LocalIndex
>
void
EllpackIndexMultimapValues
<
Index
,
Device
,
LocalIndex
>::
bind
(
const
ThisType
&
other
)
bind
(
const
EllpackIndexMultimapValues
&
other
)
{
this
->
values
=
other
.
values
;
this
->
valuesCount
=
other
.
valuesCount
;
...
...
@@ -192,7 +192,7 @@ template< typename Index,
typename
LocalIndex
>
bool
EllpackIndexMultimapValues
<
Index
,
Device
,
LocalIndex
>::
operator
==
(
const
ThisType
&
other
)
const
operator
==
(
const
EllpackIndexMultimapValues
&
other
)
const
{
if
(
this
->
getSize
()
!=
other
.
getSize
()
)
return
false
;
...
...
@@ -207,7 +207,7 @@ template< typename Index,
typename
LocalIndex
>
bool
EllpackIndexMultimapValues
<
Index
,
Device
,
LocalIndex
>::
operator
!=
(
const
ThisType
&
other
)
const
operator
!=
(
const
EllpackIndexMultimapValues
&
other
)
const
{
return
!
(
*
this
==
other
);
}
...
...
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