cwFlowTypes.h/cpp : Added proc_t.internal_net_cnt and network_t.label.
This commit is contained in:
parent
cb401cdb9b
commit
ccdac53013
@ -785,15 +785,6 @@ errLabel:
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned cw::flow::network_poly_count( const network_t& net )
|
|
||||||
{
|
|
||||||
unsigned n =1;
|
|
||||||
for(const network_t* n0 = net.poly_link; n0!=nullptr; n0=n0->poly_link)
|
|
||||||
++n;
|
|
||||||
|
|
||||||
return n;
|
|
||||||
}
|
|
||||||
|
|
||||||
void cw::flow::proc_destroy( proc_t* proc )
|
void cw::flow::proc_destroy( proc_t* proc )
|
||||||
{
|
{
|
||||||
if( proc == nullptr )
|
if( proc == nullptr )
|
||||||
@ -1184,7 +1175,7 @@ cw::rc_t cw::flow::var_call_custom_value_func( variable_t* var )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("\n");
|
cwLogPrint("\n");
|
||||||
for(variable_t* ch_var = var; ch_var!=nullptr; ch_var=ch_var->ch_link)
|
for(variable_t* ch_var = var; ch_var!=nullptr; ch_var=ch_var->ch_link)
|
||||||
{
|
{
|
||||||
_var_print(ch_var);
|
_var_print(ch_var);
|
||||||
|
@ -139,6 +139,7 @@ namespace cw
|
|||||||
|
|
||||||
// For 'poly' proc's 'internal_net' is a list linked by network_t.poly_link.
|
// For 'poly' proc's 'internal_net' is a list linked by network_t.poly_link.
|
||||||
struct network_str* internal_net;
|
struct network_str* internal_net;
|
||||||
|
unsigned internal_net_cnt; // count of hetergenous networks contained in the internal_net linked list.
|
||||||
|
|
||||||
} proc_t;
|
} proc_t;
|
||||||
|
|
||||||
@ -161,8 +162,6 @@ namespace cw
|
|||||||
kDirectPresetValueTId,
|
kDirectPresetValueTId,
|
||||||
kNetRefPresetValueTId,
|
kNetRefPresetValueTId,
|
||||||
} preset_val_tid_t;
|
} preset_val_tid_t;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// preset_value_t holds a preset value and the proc/var to which it will be applied.
|
// preset_value_t holds a preset value and the proc/var to which it will be applied.
|
||||||
typedef struct preset_value_str
|
typedef struct preset_value_str
|
||||||
@ -229,6 +228,8 @@ namespace cw
|
|||||||
|
|
||||||
typedef struct network_str
|
typedef struct network_str
|
||||||
{
|
{
|
||||||
|
const char* label;
|
||||||
|
|
||||||
const object_t* procsCfg; // network proc list
|
const object_t* procsCfg; // network proc list
|
||||||
const object_t* presetsCfg; // presets designed for this network
|
const object_t* presetsCfg; // presets designed for this network
|
||||||
|
|
||||||
@ -242,9 +243,9 @@ namespace cw
|
|||||||
network_preset_pair_t* preset_pairA;
|
network_preset_pair_t* preset_pairA;
|
||||||
unsigned preset_pairN;
|
unsigned preset_pairN;
|
||||||
|
|
||||||
const proc_t* owner_proc; // The proc which owns this network (null for top level network)
|
|
||||||
unsigned polyN; // Count of networks in poly net or 1 if not part of a poly net
|
unsigned polyN; // Count of networks in poly net or 1 if not part of a poly net
|
||||||
unsigned poly_idx; // Index in poly net or 0 if polyN == 1
|
// (for het. poly net's this counts the number of net's for each het. array)
|
||||||
|
unsigned poly_idx; // Index in poly net.
|
||||||
struct network_str* poly_link; // Link to next net in poly.
|
struct network_str* poly_link; // Link to next net in poly.
|
||||||
|
|
||||||
ui_net_t* ui_net;
|
ui_net_t* ui_net;
|
||||||
@ -277,8 +278,8 @@ namespace cw
|
|||||||
class_desc_t* classDescA; //
|
class_desc_t* classDescA; //
|
||||||
unsigned classDescN; //
|
unsigned classDescN; //
|
||||||
|
|
||||||
class_desc_t* udpDescA; //
|
class_desc_t* udpDescA; //
|
||||||
unsigned udpDescN; //
|
unsigned udpDescN; //
|
||||||
|
|
||||||
external_device_t* deviceA; // deviceA[ deviceN ] external device description array
|
external_device_t* deviceA; // deviceA[ deviceN ] external device description array
|
||||||
unsigned deviceN; //
|
unsigned deviceN; //
|
||||||
@ -353,11 +354,6 @@ namespace cw
|
|||||||
unsigned proc_mult_count( const network_t& net, const char* proc_label );
|
unsigned proc_mult_count( const network_t& net, const char* proc_label );
|
||||||
|
|
||||||
rc_t proc_mult_sfx_id_array( const network_t& net, const char* proc_label, unsigned* idA, unsigned idAllocN, unsigned& idN_ref );
|
rc_t proc_mult_sfx_id_array( const network_t& net, const char* proc_label, unsigned* idA, unsigned idAllocN, unsigned& idN_ref );
|
||||||
|
|
||||||
unsigned network_poly_count( const network_t& net );
|
|
||||||
|
|
||||||
inline bool network_is_part_of_poly( const network_t& net ) { return net.poly_idx > 0 || net.poly_link!=nullptr; }
|
|
||||||
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user