Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
KennethVanhoey
CGoGN
Commits
6fc41d35
Commit
6fc41d35
authored
Apr 03, 2014
by
Thery Sylvain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compilation template problem with clang
parent
d19ee728
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
SCHNApps/include/mapHandler.hpp
SCHNApps/include/mapHandler.hpp
+3
-3
include/Topology/generic/mapCommon.hpp
include/Topology/generic/mapCommon.hpp
+6
-6
No files found.
SCHNApps/include/mapHandler.hpp
View file @
6fc41d35
...
...
@@ -29,19 +29,19 @@ AttributeHandler<T, ORBIT, typename PFP::MAP::IMPL> MapHandler<PFP>::getAttribut
if
(
onlyRegistered
)
{
if
(
m_attribs
[
ORBIT
].
contains
(
nameAttr
))
return
static_cast
<
MAP
*>
(
m_map
)
->
getAttribute
<
T
,
ORBIT
>
(
nameAttr
.
toStdString
());
return
static_cast
<
MAP
*>
(
m_map
)
->
template
getAttribute
<
T
,
ORBIT
>(
nameAttr
.
toStdString
());
else
return
AttributeHandler
<
T
,
ORBIT
,
MAP_IMPL
>
();
}
else
return
static_cast
<
MAP
*>
(
m_map
)
->
getAttribute
<
T
,
ORBIT
>
(
nameAttr
.
toStdString
());
return
static_cast
<
MAP
*>
(
m_map
)
->
template
getAttribute
<
T
,
ORBIT
>(
nameAttr
.
toStdString
());
}
template
<
typename
PFP
>
template
<
typename
T
,
unsigned
int
ORBIT
>
AttributeHandler
<
T
,
ORBIT
,
typename
PFP
::
MAP
::
IMPL
>
MapHandler
<
PFP
>::
addAttribute
(
const
QString
&
nameAttr
,
bool
registerAttr
)
{
AttributeHandler
<
T
,
ORBIT
,
MAP_IMPL
>
ah
=
static_cast
<
MAP
*>
(
m_map
)
->
addAttribute
<
T
,
ORBIT
>
(
nameAttr
.
toStdString
());
AttributeHandler
<
T
,
ORBIT
,
MAP_IMPL
>
ah
=
static_cast
<
MAP
*>
(
m_map
)
->
template
addAttribute
<
T
,
ORBIT
>(
nameAttr
.
toStdString
());
if
(
ah
.
isValid
()
&&
registerAttr
)
{
registerAttribute
(
ah
);
...
...
include/Topology/generic/mapCommon.hpp
View file @
6fc41d35
...
...
@@ -307,7 +307,7 @@ inline AttributeHandler<T, ORBIT, MAP_IMPL> MapCommon<MAP_IMPL>::addAttribute(co
{
if
(
!
this
->
template
isOrbitEmbedded
<
ORBIT
>())
this
->
template
addEmbedding
<
ORBIT
>()
;
AttributeMultiVector
<
T
>*
amv
=
this
->
m_attribs
[
ORBIT
].
addAttribute
<
T
>
(
nameAttr
)
;
AttributeMultiVector
<
T
>*
amv
=
this
->
m_attribs
[
ORBIT
].
template
addAttribute
<
T
>(
nameAttr
)
;
return
AttributeHandler
<
T
,
ORBIT
,
MAP_IMPL
>
(
this
,
amv
)
;
}
...
...
@@ -405,7 +405,7 @@ inline void MapCommon<MAP_IMPL>::enableQuickTraversal()
{
if
(
!
this
->
template
isOrbitEmbedded
<
ORBIT
>())
this
->
template
addEmbedding
<
ORBIT
>()
;
this
->
m_quickTraversal
[
ORBIT
]
=
this
->
m_attribs
[
ORBIT
].
addAttribute
<
Dart
>
(
"quick_traversal"
)
;
this
->
m_quickTraversal
[
ORBIT
]
=
this
->
m_attribs
[
ORBIT
].
template
addAttribute
<
Dart
>(
"quick_traversal"
)
;
}
updateQuickTraversal
<
ORBIT
>
()
;
}
...
...
@@ -440,7 +440,7 @@ inline void MapCommon<MAP_IMPL>::disableQuickTraversal()
{
if
(
this
->
m_quickTraversal
[
ORBIT
]
!=
NULL
)
{
this
->
m_attribs
[
ORBIT
].
removeAttribute
<
Dart
>
(
this
->
m_quickTraversal
[
ORBIT
]
->
getIndex
())
;
this
->
m_attribs
[
ORBIT
].
template
removeAttribute
<
Dart
>(
this
->
m_quickTraversal
[
ORBIT
]
->
getIndex
())
;
this
->
m_quickTraversal
[
ORBIT
]
=
NULL
;
}
}
...
...
@@ -455,7 +455,7 @@ inline void MapCommon<MAP_IMPL>::enableQuickIncidentTraversal()
this
->
template
addEmbedding
<
ORBIT
>()
;
std
::
stringstream
ss
;
ss
<<
"quickLocalIncidentTraversal_"
<<
INCI
;
this
->
m_quickLocalIncidentTraversal
[
ORBIT
][
INCI
]
=
this
->
m_attribs
[
ORBIT
].
addAttribute
<
NoTypeNameAttribute
<
std
::
vector
<
Dart
>
>
>
(
ss
.
str
())
;
this
->
m_quickLocalIncidentTraversal
[
ORBIT
][
INCI
]
=
this
->
m_attribs
[
ORBIT
].
template
addAttribute
<
NoTypeNameAttribute
<
std
::
vector
<
Dart
>
>
>
(
ss
.
str
())
;
}
updateQuickIncidentTraversal
<
ORBIT
,
INCI
>
()
;
}
...
...
@@ -517,7 +517,7 @@ inline void MapCommon<MAP_IMPL>::enableQuickAdjacentTraversal()
this
->
template
addEmbedding
<
ORBIT
>()
;
std
::
stringstream
ss
;
ss
<<
"quickLocalAdjacentTraversal"
<<
ADJ
;
this
->
m_quickLocalAdjacentTraversal
[
ORBIT
][
ADJ
]
=
this
->
m_attribs
[
ORBIT
].
addAttribute
<
NoTypeNameAttribute
<
std
::
vector
<
Dart
>
>
>
(
ss
.
str
())
;
this
->
m_quickLocalAdjacentTraversal
[
ORBIT
][
ADJ
]
=
this
->
m_attribs
[
ORBIT
].
template
addAttribute
<
NoTypeNameAttribute
<
std
::
vector
<
Dart
>
>
>
(
ss
.
str
())
;
}
updateQuickAdjacentTraversal
<
ORBIT
,
ADJ
>
()
;
}
...
...
@@ -564,7 +564,7 @@ inline void MapCommon<MAP_IMPL>::disableQuickAdjacentTraversal()
{
if
(
this
->
m_quickLocalAdjacentTraversal
[
ORBIT
][
ADJ
]
!=
NULL
)
{
this
->
m_attribs
[
ORBIT
].
removeAttribute
<
Dart
>
(
this
->
m_quickLocalAdjacentTraversal
[
ORBIT
][
ADJ
]
->
getIndex
())
;
this
->
m_attribs
[
ORBIT
].
template
removeAttribute
<
Dart
>(
this
->
m_quickLocalAdjacentTraversal
[
ORBIT
][
ADJ
]
->
getIndex
())
;
this
->
m_quickLocalAdjacentTraversal
[
ORBIT
][
ADJ
]
=
NULL
;
}
}
...
...
Write
Preview
Markdown
is supported
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