Subrange.h
inter/Subrange.h · 509 B
From the archive interlude_1beta5.tar.gz
Download the archive « Back to the archive contents
#ifndef SUBRANGE_H
#define SUBRANGE_H
#pragma interface
#include "value.h"
#include "List.h"
#include <String.h>
class Subrange {
friend class Value;
friend class Val_List;
friend class Frame;
protected:
Value* original;
int length;
Val_List *sublist;
public:
/** must range-check externally **/
Subrange (Value* instr , int begin , int end);
~Subrange ();
Value* copy_full_val();
Val_List* copy_full_list();
int get_length();
Value* nth (int i);
};
#endif /* SUBRANGE_H */