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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Pitiot
CGoGN
Commits
f82aa47d
Commit
f82aa47d
authored
Oct 11, 2012
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generic degree : ajout parametre template MAP
parent
e4faadd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
include/Topology/generic/genericmap.h
include/Topology/generic/genericmap.h
+1
-1
include/Topology/generic/genericmap.hpp
include/Topology/generic/genericmap.hpp
+2
-2
No files found.
include/Topology/generic/genericmap.h
View file @
f82aa47d
...
...
@@ -685,7 +685,7 @@ public:
//! For an orbit of a given dimension, return the number of incident cells of an other given dimension
/*! @param d a dart
*/
template
<
unsigned
int
ORBIT
,
unsigned
int
INCIDENT
>
template
<
typename
MAP
,
unsigned
int
ORBIT
,
unsigned
int
INCIDENT
>
unsigned
int
degree
(
Dart
d
);
protected:
...
...
include/Topology/generic/genericmap.hpp
View file @
f82aa47d
...
...
@@ -612,11 +612,11 @@ unsigned int GenericMap::getNbOrbits(const FunctorSelect& good)
return
fcount
.
getNb
();
}
template
<
unsigned
int
ORBIT
,
unsigned
int
INCIDENT
>
template
<
typename
MAP
,
unsigned
int
ORBIT
,
unsigned
int
INCIDENT
>
unsigned
int
GenericMap
::
degree
(
Dart
d
)
{
assert
(
ORBIT
!=
INCIDENT
||
!
"degree does not manage adjacency counting"
);
Traversor
<
GenericMap
>*
t
=
TraversorFactory
<
GenericMap
>::
createIncident
(
*
this
,
d
,
dimension
(),
ORBIT
,
INCIDENT
)
;
Traversor
<
MAP
>*
t
=
TraversorFactory
<
MAP
>::
createIncident
(
*
this
,
d
,
dimension
(),
ORBIT
,
INCIDENT
)
;
FunctorCount
fcount
;
t
->
applyFunctor
(
fcount
)
;
return
fcount
.
getNb
()
;
...
...
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