Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gauthier Quesnel
irritator
Commits
1e77753f
Commit
1e77753f
authored
May 17, 2021
by
Gauthier Quesnel
Browse files
core: fix typo
parent
282c9ba4
Changes
5
Hide whitespace changes
Inline
Side-by-side
.clang-format
View file @
1e77753f
...
...
@@ -6,7 +6,7 @@ UseTab: Never
IndentWidth: 4
BinPackArguments: false
BinPackParameters: false
Standard:
Cpp11
Standard:
c++20
AlignOperands: true
AlignTrailingComments: true
AllowShortBlocksOnASingleLine: false
...
...
@@ -15,3 +15,9 @@ AllowShortFunctionsOnASingleLine: None
IndentCaseLabels: false
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
SpacesInSquareBrackets: false
AlwaysBreakTemplateDeclarations: true
BreakBeforeConceptDeclarations: true
IndentRequires: false
BeforeLambdaBody: false
SpacesInSquareBrackets: false
app/gui/node-editor.cpp
View file @
1e77753f
...
...
@@ -180,7 +180,7 @@ editor::group(const ImVector<int>& nodes) noexcept
cluster, we try to detect if the corresponding model is or is not in the
same cluster. */
for
(
const
auto
&
child
:
top
.
children
)
{
for
(
const
auto
&
child
:
top
.
children
)
{
if
(
child
.
first
.
index
()
==
0
)
{
const
auto
child_id
=
std
::
get
<
model_id
>
(
child
.
first
);
...
...
@@ -545,7 +545,7 @@ struct copier
auto
ret
=
sim
.
dispatch
(
*
mdl
,
[
this
,
&
sim
,
mdl
,
&
mdl_id_dst
]
<
typename
Dynamics
>
(
Dynamics
&
dyn
)
->
status
{
Dynamics
&
/*
dyn
*/
)
->
status
{
irt_return_if_fail
(
sim
.
models
.
can_alloc
(
1
),
status
::
dynamics_not_enough_memory
);
...
...
@@ -2124,13 +2124,12 @@ show_tooltip(editor& ed, const model& mdl, const model_id id)
mdl
.
tl
,
mdl
.
tn
);
auto
ret
=
ed
.
sim
.
dispatch
(
mdl
,
[
&
]
<
typename
Dynamics
>
(
Dynamics
&
dyn
)
{
if
constexpr
(
is_detected_v
<
has_input_port_t
,
Dynamics
>
)
return
make_input_tooltip
(
dyn
,
ed
.
tooltip
);
auto
ret
=
ed
.
sim
.
dispatch
(
mdl
,
[
&
]
<
typename
Dynamics
>
(
Dynamics
&
dyn
)
{
if
constexpr
(
is_detected_v
<
has_input_port_t
,
Dynamics
>
)
return
make_input_tooltip
(
dyn
,
ed
.
tooltip
);
return
status
::
success
;
});
return
status
::
success
;
});
if
(
is_bad
(
ret
))
ed
.
tooltip
+=
"error
\n
"
;
...
...
app/gui/simulation-editor.cpp
View file @
1e77753f
...
...
@@ -184,7 +184,7 @@ file_discrete_output::operator()(const irt::observer& obs,
void
file_output
::
operator
()(
const
irt
::
observer
&
obs
,
const
irt
::
dynamics_type
type
,
const
irt
::
time
tl
,
const
irt
::
time
/*tl*/
,
const
irt
::
time
t
,
const
irt
::
observer
::
status
s
)
{
...
...
app/gui/sources.cpp
View file @
1e77753f
...
...
@@ -828,4 +828,4 @@ sources::show_menu(const char* title, external_source& src)
}
}
}
// namespace irt
\ No newline at end of file
}
// namespace irt
lib/include/irritator/core.hpp
View file @
1e77753f
...
...
@@ -2889,6 +2889,19 @@ struct port
{
shared_flat_list
<
node
>
connections
;
flat_list
<
message
>
messages
;
// message* output = nullptr;
// port& operator=(const double v) noexcept
// {
// output[0] = v;
// return *this;
// }
// port& operator=(const std::initializer_list<double>& v) noexcept
// {
// std::copy_n(std::data(v), std::size(v), &output->real[0]);
// return *this;
// }
};
struct
none
...
...
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