Commit 2c7912e4 authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

WIP

parent fef66348
Pipeline #40243 failed with stage
in 60 minutes and 1 second
......@@ -24,3 +24,4 @@ AlwaysBreakTemplateDeclarations: true
# BeforeLambdaBody: false
SpacesInSquareBrackets: false
AllowShortEnumsOnASingleLine: true
AlwaysBreakAfterReturnType: AllDefinitions
\ No newline at end of file
......@@ -24,18 +24,13 @@ enum class edge_type : i8
model, component;
};
status
add_model(modeling& m, component& parent, model& mdl);
status
add_component(modeling& m, component& parent, component& comp);
void
destroy_vertice(modeling& m, component& parent, int index);
void
unref_vertice(modeling& m, component& parent, int index);
status
add_edge(modeling& m, const port& src, const port& dst);
void
destroy_edge(modeling& m, component& c, int index);
status add_model(modeling& m, component& parent, model& mdl);
status add_component(modeling& m, component& parent, component& comp);
void destroy_vertice(modeling& m, component& parent, int index);
void unref_vertice(modeling& m, component& parent, int index);
status add_edge(modeling& m, const port& src, const port& dst);
void destroy_edge(modeling& m, component& c, int index);
status compute_simulation(modeling& m, simulation& sim);
struct edge
{
......
......@@ -6,14 +6,16 @@
namespace irt {
static void
destroy_model(modeling& m, model& m);
static void
destroy_component(modeling& m, component& c);
static bool
is_input_port_exist(modeling& m, component& parent, int index, i8 port);
static bool
is_output_port_exist(modeling& m, component& parent, int index, i8 port);
static void destroy_model(modeling& m, model& m);
static void destroy_component(modeling& m, component& c);
static bool is_input_port_exist(modeling& m,
component& parent,
int index,
i8 port);
static bool is_output_port_exist(modeling& m,
component& parent,
int index,
i8 port);
status
add_model(modeling& m, component& parent, model& mdl)
......@@ -123,6 +125,11 @@ destroy_edge(modeling& m, component& c, int index)
c.edges.pop_and_swap(index);
}
status compute_simulation(modeling& m, simulation& sim)
{
}
static void
destroy_model(modeling& m, model& m)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment