Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Pitiot
CGoGN
Commits
684efc08
Commit
684efc08
authored
Jan 31, 2011
by
Pierre Kraemer
Browse files
Corrected some asserts
parent
e3b35f88
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/Topology/generic/attributeHandler.h
View file @
684efc08
...
...
@@ -35,7 +35,7 @@ namespace CGoGN
/**
* Class that create an access-table to an existing attribute
*
Permetting
operation are:
*
Main available
operation
s
are:
* - [ index ]
* - [ dart ]
* - begin / end / next to manage indexing
...
...
@@ -109,7 +109,7 @@ public:
* check if the attribute handler is linked to a valid attribute
* -> MUST BE USED AFTER A CALL TO :
* getAttribute(unsigned int orbit, const std::string& nameAttr)
* addAttribute(
unsigned int orbit, const std::string& nameAttr)
* addAttribute(unsigned int orbit, const std::string& nameAttr)
*/
bool
isValid
()
const
;
...
...
include/Topology/generic/genericmap.hpp
View file @
684efc08
...
...
@@ -223,6 +223,7 @@ inline void GenericMap::initCell(unsigned int orbit, unsigned int i)
template
<
typename
T
>
inline
AttribMultiVect
<
T
>&
GenericMap
::
getAttributeVector
(
unsigned
int
idAttr
)
{
assert
(
idAttr
!=
AttribContainer
::
UNKNOWN
)
;
return
m_attribs
[
AttribContainer
::
orbitAttr
(
idAttr
)].
getDataVector
<
T
>
(
AttribContainer
::
indexAttr
(
idAttr
))
;
}
...
...
@@ -234,12 +235,13 @@ inline AttribMultiVect<Mark>* GenericMap::getMarkerVector(unsigned int orbit)
inline
AttribMultiVectGen
&
GenericMap
::
getMultiVec
(
unsigned
int
idAttr
)
{
assert
(
idAttr
!=
AttribContainer
::
UNKNOWN
)
;
return
m_attribs
[
AttribContainer
::
orbitAttr
(
idAttr
)].
getVirtualDataVector
(
AttribContainer
::
indexAttr
(
idAttr
))
;
}
inline
AttribContainer
&
GenericMap
::
getAttributeContainer
(
unsigned
int
orbit
)
{
assert
(
isOrbitEmbedded
(
orbit
)
||
!
"Invalid parameter: orbit not embedded"
);
//
assert(isOrbitEmbedded(orbit) || !"Invalid parameter: orbit not embedded");
return
m_attribs
[
orbit
]
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment