![]() |
rasdaman client API
10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
|
The r_Dir_Decompose class is used to specify a decomposition on an n-dimensional cube (for use in r_Dir_Tiling).
More...
#include <dirdecompose.hh>
Public Member Functions | |
| r_Dir_Decompose ()=default | |
| ~r_Dir_Decompose ()=default | |
| r_Dir_Decompose (const r_Dir_Decompose &)=default | |
| r_Dir_Decompose & | operator<< (r_Range limit) |
| Reads a new limit for the current dimension. More... | |
| r_Dir_Decompose & | prepend (r_Range limit) |
| Reads a new limit for the current dimension and prepends it to the list of limits. More... | |
| size_t | get_num_intervals () const |
| Gets the number of intervals the dimension is to be split into. More... | |
| r_Range | get_partition (size_t number) const |
| Gets a restriction. More... | |
| void | print_status (std::ostream &os) const |
| Prints the current status of the object. More... | |
Protected Member Functions | |
| r_Sinterval | get_total_interval () |
Protected Attributes | |
| std::vector< r_Range > | intervals |
| The buffer that holds the information. More... | |
The r_Dir_Decompose class is used to specify a decomposition on an n-dimensional cube (for use in r_Dir_Tiling).
For instance, to specify a tiling restriction on a dimension with the form: [0, 2, 4, 5], the following code would apply:
r_Dir_Decompose decomp;
decomp << 0 << 2 << 4 << 5;
Note that the first and the last elements input into the object must be the origin and limit of that dimension or else a cross-section of the domain will occur (as if the elements outside the specification wouldn't mind).
If one dimension is considered to be a prefered access direction, then the r_Dir_Decompose should be empty, this is, no restriction should be entered.
|
default |
|
default |
|
default |
| size_t r_Dir_Decompose::get_num_intervals | ( | ) | const |
Gets the number of intervals the dimension is to be split into.
| r_Range r_Dir_Decompose::get_partition | ( | size_t | number | ) | const |
Gets a restriction.
|
protected |
| r_Dir_Decompose& r_Dir_Decompose::operator<< | ( | r_Range | limit | ) |
Reads a new limit for the current dimension.
| r_Dir_Decompose& r_Dir_Decompose::prepend | ( | r_Range | limit | ) |
Reads a new limit for the current dimension and prepends it to the list of limits.
| void r_Dir_Decompose::print_status | ( | std::ostream & | os | ) | const |
Prints the current status of the object.
|
protected |
The buffer that holds the information.
1.8.17