/[svn]/linuxsampler/trunk/src/scriptvm/tree.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/tree.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3311 by schoenebeck, Sat Jul 15 16:24:59 2017 UTC revision 3455 by persson, Sun Jan 27 10:07:54 2019 UTC
# Line 1  Line 1 
1  /*                                                              -*- c++ -*-  /*                                                              -*- c++ -*-
2   *   *
3   * Copyright (c) 2014 - 2017 Christian Schoenebeck and Andreas Persson   * Copyright (c) 2014 - 2019 Christian Schoenebeck and Andreas Persson
4   *   *
5   * http://www.linuxsampler.org   * http://www.linuxsampler.org
6   *   *
# Line 197  class BuiltInIntArrayVariable : public I Line 197  class BuiltInIntArrayVariable : public I
197      VMInt8Array* array;      VMInt8Array* array;
198  public:  public:
199      BuiltInIntArrayVariable(const String& name, VMInt8Array* array);      BuiltInIntArrayVariable(const String& name, VMInt8Array* array);
200      int arraySize() const { return array->size; }      int arraySize() const OVERRIDE { return array->size; }
201      int evalIntElement(uint i);      int evalIntElement(uint i) OVERRIDE;
202      bool isAssignable() const OVERRIDE { return !array->readonly; }      bool isAssignable() const OVERRIDE { return !array->readonly; }
203      void assignIntElement(uint i, int value);      void assignIntElement(uint i, int value) OVERRIDE;
204      void dump(int level = 0);      void dump(int level = 0) OVERRIDE;
205  };  };
206  typedef Ref<BuiltInIntArrayVariable,Node> BuiltInIntArrayVariableRef;  typedef Ref<BuiltInIntArrayVariable,Node> BuiltInIntArrayVariableRef;
207    
# Line 350  public: Line 350  public:
350      String evalCastToStr() OVERRIDE;      String evalCastToStr() OVERRIDE;
351      int arraySize() const OVERRIDE { return dynVar->asIntArray()->arraySize(); }      int arraySize() const OVERRIDE { return dynVar->asIntArray()->arraySize(); }
352      int evalIntElement(uint i) OVERRIDE { return dynVar->asIntArray()->evalIntElement(i); }      int evalIntElement(uint i) OVERRIDE { return dynVar->asIntArray()->evalIntElement(i); }
353      void assignIntElement(uint i, int value) { return dynVar->asIntArray()->assignIntElement(i, value); }      void assignIntElement(uint i, int value) OVERRIDE { return dynVar->asIntArray()->assignIntElement(i, value); }
354      void dump(int level = 0) OVERRIDE;      void dump(int level = 0) OVERRIDE;
355  };  };
356  typedef Ref<DynamicVariableCall,Node> DynamicVariableCallRef;  typedef Ref<DynamicVariableCall,Node> DynamicVariableCallRef;

Legend:
Removed from v.3311  
changed lines
  Added in v.3455

  ViewVC Help
Powered by ViewVC