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
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
bd3797a5
Commit
bd3797a5
authored
Oct 12, 2009
by
Sebastian Eichelbaum
Browse files
[STYLE]
parent
69c63ba2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
7 deletions
+31
-7
src/dataHandler/WValueSet.hpp
src/dataHandler/WValueSet.hpp
+4
-4
src/gui/qt4/signalslib.hpp
src/gui/qt4/signalslib.hpp
+27
-3
No files found.
src/dataHandler/WValueSet.hpp
View file @
bd3797a5
...
...
@@ -60,16 +60,16 @@ public:
{
switch
(
m_order
)
{
case
0
:
// scalar
case
0
:
// scalar
assert
(
m_dimension
==
1
&&
"but m_order was 0"
);
return
rawSize
();
case
1
:
// vector
case
1
:
// vector
assert
(
rawSize
()
%
m_dimension
==
0
);
return
rawSize
()
/
m_dimension
;
case
2
:
// matrix
case
2
:
// matrix
assert
(
rawSize
()
%
(
m_dimension
*
m_dimension
)
==
0
);
return
rawSize
()
/
(
m_dimension
*
m_dimension
);
default
:
// other
default
:
// other
assert
(
1
==
0
&&
"Unsupported tensor order"
);
return
0
;
}
...
...
src/gui/qt4/signalslib.hpp
View file @
bd3797a5
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#ifndef SIGNALSLIB_HPP_INCLUDED
#define SIGNALSLIB_HPP_INCLUDED
#if defined(signals) && defined(QOBJECTDEFS_H) && \
!defined(QT_MOC_CPP)
!defined(
QT_MOC_CPP
)
# undef signals
# define signals signals
#endif
...
...
@@ -13,8 +37,8 @@ namespace boost
namespace
signalslib
=
signals
;
}
#if defined(signals) && defined(QOBJECTDEFS_H) && \
!defined(QT_MOC_CPP)
#if defined(
signals
) && defined(
QOBJECTDEFS_H
) && \
!defined(
QT_MOC_CPP
)
# undef signals
// Restore the macro definition of "signals", as it was
// defined by Qt's <qobjectdefs.h>.
...
...
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