rasdaman client API  10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
alignedtiling.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_ALIGNEDTILING_HH_
25 #define _R_ALIGNEDTILING_HH_
26 
27 #include "rasodmg/tiling.hh"
28 #include "raslib/minterval.hh"
29 
30 //@ManMemo: Module: {\bf rasodmg}
100 {
101 public:
102  static const char *description;
103 
106  explicit r_Aligned_Tiling(const char *encoded);
107 
110 
113 
114  virtual r_Tiling *clone() const;
115 
116  virtual ~r_Aligned_Tiling() = default;
117 
118  std::vector<r_Minterval> compute_tiles(const r_Minterval &obj_domain, r_Bytes cell_size) const;
119 
120  std::string get_string_representation() const;
126  void print_status(std::ostream &s) const;
128 
130  const r_Minterval &get_tile_config() const;
131 
132  virtual r_Tiling_Scheme get_tiling_scheme() const;
133 
135  r_Minterval compute_tile_domain(const r_Minterval &dom, r_Bytes cell_size) const;
155 protected:
158 
161 
163  r_Minterval get_opt_size(const r_Minterval &tile_domain, r_Bytes cell_size) const;
164 };
165 
166 #endif
r_Aligned_Tiling::~r_Aligned_Tiling
virtual ~r_Aligned_Tiling()=default
r_Aligned_Tiling::compute_tile_domain
r_Minterval compute_tile_domain(const r_Minterval &dom, r_Bytes cell_size) const
determines the individual tiles domains
r_Dimension_Tiling
Definition: tiling.hh:168
r_Dimension
std::uint32_t r_Dimension
number of dimensions in r_Point and r_Minterval.
Definition: mddtypes.hh:56
r_Aligned_Tiling::tile_config
r_Minterval tile_config
Determines the individual tiles domains for aligned tiling, using the options expressed in this objec...
Definition: alignedtiling.hh:157
r_Aligned_Tiling::get_tiling_scheme
virtual r_Tiling_Scheme get_tiling_scheme() const
This method is similar to a copy constructor, this is, is returns a copy of the current object.
tiling.hh
r_Aligned_Tiling::print_status
void print_status(std::ostream &s) const
The string representation delivered by this method is allocated using malloc() and has to be freed u...
r_Tiling_Scheme
r_Tiling_Scheme
Tiling of the object:
Definition: mddtypes.hh:316
minterval.hh
r_Aligned_Tiling::get_min_opt_tile_size
r_Bytes get_min_opt_tile_size() const
r_Aligned_Tiling::get_string_representation
std::string get_string_representation() const
r_Aligned_Tiling::clone
virtual r_Tiling * clone() const
This method provides the core funcionality of this class.
r_Tiling::defaultTileSize
static const r_Bytes defaultTileSize
Definition: tiling.hh:92
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_Aligned_Tiling::r_Aligned_Tiling
r_Aligned_Tiling(const char *encoded)
read everything from encoded string (e.g.
r_Aligned_Tiling::get_tile_config
const r_Minterval & get_tile_config() const
returns the current value for the tile configuration option
r_Aligned_Tiling::get_opt_size
r_Minterval get_opt_size(const r_Minterval &tile_domain, r_Bytes cell_size) const
r_Aligned_Tiling
The r_Aligned_Tiling class is used to express the options for aligned tiling of r_Marray objects.
Definition: alignedtiling.hh:99
r_Aligned_Tiling::description
static const char * description
Definition: alignedtiling.hh:102
r_Aligned_Tiling::compute_tiles
std::vector< r_Minterval > compute_tiles(const r_Minterval &obj_domain, r_Bytes cell_size) const
Decompose an object in tiles.
r_Minterval
The spatial domain of an MDD is represented by an object of class r_Minterval.
Definition: minterval.hh:225