OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
set_graph.cpp File Reference
#include <iostream>
#include <iterator>
#include <tuple>
#include <vector>
#include <algorithm>

Go to the source code of this file.

Data Structures

struct  Edge
class  set_graph

Macros

#define _FCALL

Functions

void _FCALL set_graph_add_set_ (int *set_id, int *set_list, int *list_size)
void _FCALL set_graph_sort_ (int *dependancy_list, int *check)
void _FCALL set_graph_clean_ ()

Variables

set_graph set_of_set

Macro Definition Documentation

◆ _FCALL

#define _FCALL

Definition at line 190 of file set_graph.cpp.

Function Documentation

◆ set_graph_add_set_()

void _FCALL set_graph_add_set_ ( int * set_id,
int * set_list,
int * list_size )

Definition at line 194 of file set_graph.cpp.

194 {
195 // ---------------------------------------------------------------------------------
196 // Create a SET graph
197 // Add an Edge with its list of child SET
198 // ---------------------------------------------------------------------------------
199 // INPUT
200 // set_id : Integer internal SET ID : must be set between 1 & nsets
201 // set_list : list of child SETs : all child Sets must be existing internal SETid
202 // list_size : number of Child SET (size of list below)
203 // OUTPUT
204 // ----------------------------------------------------------------------------
205
206 set_of_set.init_edge(*set_id, *list_size, set_list);
207 }
set_graph set_of_set

◆ set_graph_clean_()

void _FCALL set_graph_clean_ ( )

Definition at line 224 of file set_graph.cpp.

224 {
225 // ---------------------------------------------------------------------------------
226 // Destroy the graph & clean the memory
227 // ---------------------------------------------------------------------------------
228 set_of_set.delete_tree();
229
230 }

◆ set_graph_sort_()

void _FCALL set_graph_sort_ ( int * dependancy_list,
int * check )

Definition at line 210 of file set_graph.cpp.

210 {
211 // ---------------------------------------------------------------------------------
212 // Sort the sets according to their dependency
213 // Child SET are placed before Parent SET.
214 // ---------------------------------------------------------------------------------
215 // OUTPUT
216 // int * dependancy_list : sorted dependency list
217 // int * check : check flag - 0=ok -SET=circular dependancy on SET
218 // --------------------------------------------------------------------------------
219 *check = 0;
220 set_of_set.dependancy_sort(dependancy_list,check);
221
222 }

Variable Documentation

◆ set_of_set

set_graph set_of_set

Definition at line 179 of file set_graph.cpp.