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 /
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_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{
101public:
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;
127 void print_status(std::ostream &s) const;
128
131
133
155protected:
158
161
163 r_Minterval get_opt_size(const r_Minterval &tile_domain, r_Bytes cell_size) const;
164};
165
166#endif
The r_Aligned_Tiling class is used to express the options for aligned tiling of r_Marray objects.
Definition alignedtiling.hh:100
r_Aligned_Tiling(r_Dimension dim, r_Bytes ts=r_Tiling::defaultTileSize)
dimension and tile size.
r_Aligned_Tiling(const r_Minterval &tc, r_Bytes ts=r_Tiling::defaultTileSize)
tile configuration and tile size.
virtual ~r_Aligned_Tiling()=default
r_Aligned_Tiling(const char *encoded)
read everything from encoded string (e.g.
r_Minterval compute_tile_domain(const r_Minterval &dom, r_Bytes cell_size) const
determines the individual tiles domains
virtual r_Tiling * clone() const
This method provides the core funcionality of this class.
std::vector< r_Minterval > compute_tiles(const r_Minterval &obj_domain, r_Bytes cell_size) const
Decompose an object in tiles.
std::string get_string_representation() const
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_Bytes get_min_opt_tile_size() const
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.
r_Minterval tile_config
Determines the individual tiles domains for aligned tiling, using the options expressed in this objec...
Definition alignedtiling.hh:157
r_Minterval get_opt_size(const r_Minterval &tile_domain, r_Bytes cell_size) const
const r_Minterval & get_tile_config() const
returns the current value for the tile configuration option
static const char * description
Definition alignedtiling.hh:102
Definition tiling.hh:169
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