summaryrefslogtreecommitdiff
path: root/export
diff options
context:
space:
mode:
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>2017-08-23 20:40:11 +0200
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>2017-08-23 23:31:28 +0200
commit96a6529e2ef4a75a1232d42a13552599d7fb6e28 (patch)
tree1ae167f65210e2b00eb53c08841209619ef03155 /export
parentcc63df7e8d7e7f1ed255773398ff30c23205153c (diff)
Improve getting a Bundle total channel count
|Bundle::nchannels()| creates a ChanCount on demand, by iterating over the |_channel| member variable. The sum of all |nchannels().n(t)| over all non-NIL DataTypes |t| is thus equal to |_channel.size()|. Consequently, calling |nchannels().n_total()| is a convoluted (and slow) way of getting |_channel.size()|. Add a method |Bundle::n_total()| that directly returns the latter.
Diffstat (limited to 'export')
0 files changed, 0 insertions, 0 deletions