File: raster_img.hpp

package info (click to toggle)
libsdsl 2.1.1%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,020 kB
  • sloc: cpp: 42,286; makefile: 1,171; ansic: 318; sh: 201; python: 27
file content (28 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef SDSL_INC_RASTER_IMG
#define SDSL_INC_RASTER_IMG

#include <sdsl/bit_vectors.hpp>

namespace sdsl
{

struct raster_img {
    typedef uint64_t size_type;

    uint64_t     max_x; // max x value
    uint64_t     max_y; // max y value
    uint64_t     max_z; // max z value in the compacted range
    uint32_t     offset;
    bit_vector   value_map;
    int_vector<> data;

    //! Serializes the data structure into the given ostream
    uint64_t serialize(std::ostream& out, structure_tree_node* v=nullptr, std::string name="")const;

    //! Loads the data structure from the given istream.
    void load(std::istream& in);
};

}

#endif