/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk

« back to all changes in this revision

Viewing changes to src/utils/named_vector.vala

  • Committer: Gustav Hartvigsson
  • Date: 2022-05-30 18:46:35 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20220530184635-d8k8pofyyifu017d
Woops.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * The contects of this file is in the Public Domain.
3
 
 *
4
 
 * Created by Gustav Hartivgsson.
5
 
 */
6
 
 
7
 
namespace Vee {
8
 
  [Compact]
 
1
namespace Utils {
 
2
  [Compact] // Using compact does not compile for some reason.
9
3
  public class NamedVector<T> {
10
4
    public T[] values;
11
5
    public string[] names;
25
19
      size_t i = 1;
26
20
 
27
21
      while (tmp_name != null && tmp_val != null) {
28
 
        T_buf[i] = tmp_val;
29
 
        N_buf[i] = tmp_name;
 
22
        T_buf[i] = tmp_val; N_buf[i] = tmp_name;
30
23
        i++;
31
24
        tmp_name = list.arg<string?> ();
32
25
        tmp_val = list.arg<T?> ();