rasdaman client API 10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
dirtiling.hh
Go to the documentation of this file.
1/*
2* This file is part of rasdaman community.
3*
4* Rasdaman community is free software: you can redistribute it and/or modify
5* it under the terms of the GNU General Public License as published by
6* the Free Software Foundation, either version 3 of the License, or
7* (at your option) any later version.
8*
9* Rasdaman community is distributed in the hope that it will be useful,
10* but WITHOUT ANY WARRANTY; without even the implied warranty of
11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12* GNU General Public License for more details.
13*
14* You should have received a copy of the GNU General Public License
15* along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
16*
17* Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
18rasdaman GmbH.
19*
20* For more information please see <http://www.rasdaman.org>
21* or contact Peter Baumann via <baumann@rasdaman.com>.
22*/
23
24#ifndef _R_DIRTILING_HH_
25#define _R_DIRTILING_HH_
26
27#include "rasodmg/tiling.hh"
29
30// Class definition
31
32//@ManMemo: Module: {\bf rasodmg}
33
45{
46 // ******************* PUBLIC SECTION *******************
47
48public:
58 explicit r_Dir_Tiling(const char *encoded);
59
62 const std::vector<r_Dir_Decompose> &decomp,
76 ~r_Dir_Tiling() override = default;
77
78 std::vector<r_Minterval> compute_tiles(const r_Minterval &obj_domain, r_Bytes cell_size) const override;
79
80 bool is_compatible(const r_Minterval &obj_domain, r_Bytes type_len) const override;
81
82 void print_status(std::ostream &os) const override;
83
84 r_Tiling *clone() const override;
85
87
88 //@ManMemo: Module: {\bf raslib}
93 //@ManMemo: Module: {\bf raslib}
97 static const char *get_name_from_subtiling(SubTiling st);
98
99 static const char *description;
100
101protected: // data
103 std::vector<r_Dir_Decompose> dim_decomp;
104
107
108 //@ManMemo: Module: {\bf raslib}
118
120};
121
122#endif
Definition tiling.hh:169
This class implements the "Directional Tiling" tiling method.
Definition dirtiling.hh:45
static const char * description
Definition dirtiling.hh:99
static const char * get_name_from_subtiling(SubTiling st)
Get a tilisize limit name for a tilesize limit.
r_Tiling * clone() const override
This method provides the core funcionality of this class.
SubTiling sub_tile
If sub-tiling should occour.
Definition dirtiling.hh:106
static const char * subtiling_name_withoutsubtiling
The names of all subtiling types, to avoid redundant storage and inconsistencies.
Definition dirtiling.hh:116
SubTiling
Constants that specify if subtiling will occur inside the blocks.
Definition dirtiling.hh:51
@ NUMBER
Definition dirtiling.hh:54
@ WITH_SUBTILING
Definition dirtiling.hh:53
@ WITHOUT_SUBTILING
Definition dirtiling.hh:52
~r_Dir_Tiling() override=default
The user has to give the number of dimensions of the space and the decomposition wanted for that spac...
std::vector< r_Minterval > compute_tiles(const r_Minterval &obj_domain, r_Bytes cell_size) const override
Decompose an object in tiles.
static r_Dir_Tiling::SubTiling get_subtiling_from_name(const char *name)
Get a tilesize limit for a tilisize limit name.
static const char * subtiling_name_withsubtiling
Definition dirtiling.hh:117
r_Tiling_Scheme get_tiling_scheme() const override
This method is similar to a copy constructor, this is, is returns a copy of the current object.
std::vector< r_Dir_Decompose > dim_decomp
The decomposition to be used.
Definition dirtiling.hh:103
bool is_compatible(const r_Minterval &obj_domain, r_Bytes type_len) const override
returns true if the cellTypeSize is smaller or equal to the tile size and the dimension fits the obj_...
static const char * all_subtiling_names[r_Dir_Tiling::NUMBER]
Definition dirtiling.hh:119
void print_status(std::ostream &os) const override
Prints the current status of the object.
r_Dir_Tiling(const char *encoded)
read everything from encoded string e.g.
r_Dir_Tiling(r_Dimension dims, const std::vector< r_Dir_Decompose > &decomp, r_Bytes ts=r_Tiling::defaultTileSize, SubTiling sub=WITH_SUBTILING)
Class constructor.
The spatial domain of an MDD is represented by an object of class r_Minterval.
Definition minterval.hh:226
The r_Tiling class is used to specify in which way the tiling is done by the system.
Definition tiling.hh:53
static const r_Bytes defaultTileSize
Definition tiling.hh:92
std::uint32_t r_Dimension
number of dimensions in r_Point and r_Minterval.
Definition mddtypes.hh:56
size_t r_Bytes
number of bytes in an tile or mdd or type.
Definition mddtypes.hh:43
r_Tiling_Scheme
Tiling of the object:
Definition mddtypes.hh:317