1/*
2 * Copyright (C) 2014, The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * !!!!! DO NOT EDIT THIS FILE !!!!!
19 *
20 * This file was generated from
21 *   dictionary/structure/v4/ver4_pt_node_array_reader.h
22 */
23
24#ifndef LATINIME_BACKWARD_V402_VER4_PT_NODE_ARRAY_READER_H
25#define LATINIME_BACKWARD_V402_VER4_PT_NODE_ARRAY_READER_H
26
27#include "defines.h"
28#include "dictionary/structure/pt_common/pt_node_array_reader.h"
29
30namespace latinime {
31namespace backward {
32namespace v402 {
33
34} // namespace v402
35} // namespace backward
36class BufferWithExtendableBuffer;
37namespace backward {
38namespace v402 {
39
40class Ver4PtNodeArrayReader : public PtNodeArrayReader {
41 public:
42    Ver4PtNodeArrayReader(const BufferWithExtendableBuffer *const buffer) : mBuffer(buffer) {};
43
44    virtual bool readPtNodeArrayInfoAndReturnIfValid(const int ptNodeArrayPos,
45            int *const outPtNodeCount, int *const outFirstPtNodePos) const;
46    virtual bool readForwardLinkAndReturnIfValid(const int forwordLinkPos,
47            int *const outNextPtNodeArrayPos) const;
48
49 private:
50    DISALLOW_COPY_AND_ASSIGN(Ver4PtNodeArrayReader);
51
52    const BufferWithExtendableBuffer *const mBuffer;
53};
54} // namespace v402
55} // namespace backward
56} // namespace latinime
57#endif /* LATINIME_BACKWARD_V402_VER4_PT_NODE_ARRAY_READER_H */
58