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 /
18 rasdaman 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"
28 #include "rasodmg/dirdecompose.hh"
29 
30 // Class definition
31 
32 //@ManMemo: Module: {\bf rasodmg}
33 
45 {
46  // ******************* PUBLIC SECTION *******************
47 
48 public:
50  enum SubTiling
51  {
54  NUMBER = 2
55  };
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 
86  r_Tiling_Scheme get_tiling_scheme() const override;
87 
88  //@ManMemo: Module: {\bf raslib}
92  static r_Dir_Tiling::SubTiling get_subtiling_from_name(const char *name);
93  //@ManMemo: Module: {\bf raslib}
97  static const char *get_name_from_subtiling(SubTiling st);
98 
99  static const char *description;
100 
101 protected: // data
103  std::vector<r_Dir_Decompose> dim_decomp;
104 
107 
108  //@ManMemo: Module: {\bf raslib}
117  static const char *subtiling_name_withsubtiling;
118 
120 };
121 
122 #endif
r_Dir_Tiling::NUMBER
@ NUMBER
Definition: dirtiling.hh:54
r_Dimension_Tiling
Definition: tiling.hh:168
r_Dir_Tiling::description
static const char * description
Definition: dirtiling.hh:99
r_Dimension
std::uint32_t r_Dimension
number of dimensions in r_Point and r_Minterval.
Definition: mddtypes.hh:56
r_Dir_Tiling::WITH_SUBTILING
@ WITH_SUBTILING
Definition: dirtiling.hh:53
tiling.hh
r_Tiling_Scheme
r_Tiling_Scheme
Tiling of the object:
Definition: mddtypes.hh:316
r_Dir_Tiling::sub_tile
SubTiling sub_tile
If sub-tiling should occour.
Definition: dirtiling.hh:106
r_Dir_Tiling::SubTiling
SubTiling
Constants that specify if subtiling will occur inside the blocks.
Definition: dirtiling.hh:50
r_Dir_Tiling::WITHOUT_SUBTILING
@ WITHOUT_SUBTILING
Definition: dirtiling.hh:52
r_Dir_Tiling::print_status
void print_status(std::ostream &os) const override
Prints the current status of the object.
r_Tiling::defaultTileSize
static const r_Bytes defaultTileSize
Definition: tiling.hh:92
r_Dir_Tiling::subtiling_name_withoutsubtiling
static const char * subtiling_name_withoutsubtiling
The names of all subtiling types, to avoid redundant storage and inconsistencies.
Definition: dirtiling.hh:116
r_Tiling
The r_Tiling class is used to specify in which way the tiling is done by the system.
Definition: tiling.hh:52
r_Bytes
size_t r_Bytes
number of bytes in an tile or mdd or type.
Definition: mddtypes.hh:43
r_Dir_Tiling::compute_tiles
std::vector< r_Minterval > compute_tiles(const r_Minterval &obj_domain, r_Bytes cell_size) const override
Decompose an object in tiles.
r_Dir_Tiling::all_subtiling_names
static const char * all_subtiling_names[r_Dir_Tiling::NUMBER]
Definition: dirtiling.hh:119
r_Dir_Tiling::subtiling_name_withsubtiling
static const char * subtiling_name_withsubtiling
Definition: dirtiling.hh:117
r_Dir_Tiling::dim_decomp
std::vector< r_Dir_Decompose > dim_decomp
The decomposition to be used.
Definition: dirtiling.hh:103
dirdecompose.hh
r_Dir_Tiling::get_name_from_subtiling
static const char * get_name_from_subtiling(SubTiling st)
Get a tilisize limit name for a tilesize limit.
r_Dir_Tiling::~r_Dir_Tiling
~r_Dir_Tiling() override=default
The user has to give the number of dimensions of the space and the decomposition wanted for that spac...
r_Dir_Tiling::clone
r_Tiling * clone() const override
This method provides the core funcionality of this class.
r_Dir_Tiling::get_subtiling_from_name
static r_Dir_Tiling::SubTiling get_subtiling_from_name(const char *name)
Get a tilesize limit for a tilisize limit name.
r_Minterval
The spatial domain of an MDD is represented by an object of class r_Minterval.
Definition: minterval.hh:225
r_Dir_Tiling::r_Dir_Tiling
r_Dir_Tiling(const char *encoded)
read everything from encoded string e.g.
r_Dir_Tiling::get_tiling_scheme
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.
r_Dir_Tiling
This class implements the "Directional Tiling" tiling method.
Definition: dirtiling.hh:44
r_Dir_Tiling::is_compatible
bool is_compatible(const r_Minterval &obj_domain, r_Bytes type_len) const override
Check compatibility of object domain with this tiling.