This is the sample program that can see the decode result of barcode data on Watson IoT.
Dependencies: AsciiFont DisplayApp GR-PEACH_video LCD_shield_config LWIPBP3595Interface_STA_for_mbed-os USBDevice
GenericGFPoly.h
00001 // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 00002 /* 00003 * GenericGFPoly.h 00004 * zxing 00005 * 00006 * Created by Lukas Stabe on 13/02/2012. 00007 * Copyright 2012 ZXing authors All rights reserved. 00008 * 00009 * Licensed under the Apache License, Version 2.0 (the "License"); 00010 * you may not use this file except in compliance with the License. 00011 * You may obtain a copy of the License at 00012 * 00013 * http://www.apache.org/licenses/LICENSE-2.0 00014 * 00015 * Unless required by applicable law or agreed to in writing, software 00016 * distributed under the License is distributed on an "AS IS" BASIS, 00017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00018 * See the License for the specific language governing permissions and 00019 * limitations under the License. 00020 */ 00021 00022 #ifndef GENERICGFPOLY_H 00023 #define GENERICGFPOLY_H 00024 00025 #include <vector> 00026 #include <zxing/common/Array.h> 00027 #include <zxing/common/Counted.h> 00028 00029 namespace zxing { 00030 00031 class GenericGF; 00032 00033 class GenericGFPoly : public Counted { 00034 private: 00035 GenericGF &field_; 00036 ArrayRef<int> coefficients_; 00037 00038 public: 00039 GenericGFPoly(GenericGF &field, ArrayRef<int> coefficients); 00040 ArrayRef<int> getCoefficients(); 00041 int getDegree(); 00042 bool isZero(); 00043 int getCoefficient(int degree); 00044 int evaluateAt(int a); 00045 Ref<GenericGFPoly> addOrSubtract(Ref<GenericGFPoly> other); 00046 Ref<GenericGFPoly> multiply(Ref<GenericGFPoly> other); 00047 Ref<GenericGFPoly> multiply(int scalar); 00048 Ref<GenericGFPoly> multiplyByMonomial(int degree, int coefficient); 00049 std::vector<Ref<GenericGFPoly> > divide(Ref<GenericGFPoly> other); 00050 00051 00052 }; 00053 00054 } 00055 00056 #endif //GENERICGFPOLY_H
Generated on Tue Jul 12 2022 18:38:05 by 1.7.2