rasdaman client API  10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
dirdecompose.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_DIRDECOMPOSE_HH_
25 #define _R_DIRDECOMPOSE_HH_
26 
27 #include "raslib/sinterval.hh"
28 #include <vector>
29 
30 //@ManMemo: Module {\bf rasodmg}
54 {
55 public:
56  r_Dir_Decompose() = default;
57  ~r_Dir_Decompose() = default;
58  r_Dir_Decompose(const r_Dir_Decompose &) = default;
59 
62 
65 
67  size_t get_num_intervals() const;
68 
70  r_Range get_partition(size_t number) const;
71 
73  void print_status(std::ostream &os) const;
74 
75 protected:
77 
79  std::vector<r_Range> intervals;
80 };
81 
82 //@ManMemo: Module: {\bf rasodmg}
86 extern std::ostream &operator<<(std::ostream &os, const r_Dir_Decompose &d);
87 
88 #endif
The r_Dir_Decompose class is used to specify a decomposition on an n-dimensional cube (for use in r_D...
Definition: dirdecompose.hh:54
r_Dir_Decompose & operator<<(r_Range limit)
Reads a new limit for the current dimension.
r_Dir_Decompose(const r_Dir_Decompose &)=default
r_Range get_partition(size_t number) const
Gets a restriction.
r_Dir_Decompose()=default
r_Sinterval get_total_interval()
void print_status(std::ostream &os) const
Prints the current status of the object.
size_t get_num_intervals() const
Gets the number of intervals the dimension is to be split into.
~r_Dir_Decompose()=default
std::vector< r_Range > intervals
The buffer that holds the information.
Definition: dirdecompose.hh:79
r_Dir_Decompose & prepend(r_Range limit)
Reads a new limit for the current dimension and prepends it to the list of limits.
The class represents an interval with lower and upper bound.
Definition: sinterval.hh:214
std::ostream & operator<<(std::ostream &os, const r_Dir_Decompose &d)
Prints the status of an r_Dir_Decompose object to a stream.
std::int64_t r_Range
for axis indexing, e.g.
Definition: mddtypes.hh:53