michael@0: michael@0: /* michael@0: * Copyright 2011 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: #ifndef SkOpArray_DEFINED michael@0: #define SkOpArray_DEFINED michael@0: michael@0: #include "SkOperand2.h" michael@0: #include "SkTDArray_Experimental.h" michael@0: michael@0: typedef SkLongArray(SkOperand2) SkTDOperand2Array; michael@0: michael@0: class SkOpArray : public SkTDOperand2Array { michael@0: public: michael@0: SkOpArray(); michael@0: SkOpArray(SkOperand2::OpType type); michael@0: bool getIndex(int index, SkOperand2* operand); michael@0: SkOperand2::OpType getType() { return fType; } michael@0: void setType(SkOperand2::OpType type) { michael@0: fType = type; michael@0: } michael@0: protected: michael@0: SkOperand2::OpType fType; michael@0: }; michael@0: michael@0: #endif // SkOpArray_DEFINED