 |
rasdaman client API
10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
|
Go to the documentation of this file.
102 std::unique_ptr<char[]>
copy_buffer(
const char *buf,
size_t len)
const;
Definition: tiling.hh:168
std::uint32_t r_Dimension
number of dimensions in r_Point and r_Minterval.
Definition: mddtypes.hh:56
unsigned long parse_unsigned_long(const char *encoded) const
std::vector< r_Minterval > compute_tiles(const r_Minterval &obj_domain, r_Bytes cellTypeSize) const override=0
Decompose an object in tiles.
r_Dimension_Tiling(r_Dimension dim, r_Bytes ts=r_Tiling::defaultTileSize)
Constructor for this object (Takes dim (no of dimension) and tile size as parameter)
virtual ~r_Dimension_Tiling()=default
void print_status(std::ostream &os) const override
Prints the current status of the object.
std::unique_ptr< char[]> copy_buffer(const char *buf, size_t len) const
std::ostream & operator<<(std::ostream &os, const r_Tiling &t)
r_Tiling_Scheme
Tiling of the object:
Definition: mddtypes.hh:316
r_Dimension dimension
dimension the mdd must have
Definition: tiling.hh:185
virtual void print_status(std::ostream &os) const =0
Prints the current status of the object.
r_Tiling * clone() const override=0
This method provides the core funcionality of this class.
virtual std::vector< r_Minterval > compute_tiles(const r_Minterval &obj_domain, r_Bytes cell_size) const =0
Decompose an object in tiles.
void check_premature_stream_end(const char *currPos, const char *endPos) const
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.
virtual ~r_Size_Tiling()=default
static const r_Bytes defaultTileSize
Definition: tiling.hh:92
The r_Tiling class is used to specify in which way the tiling is done by the system.
Definition: tiling.hh:52
virtual ~r_No_Tiling()=default
static const char * ASTERIX
return the type of tiling scheme
Definition: tiling.hh:86
size_t r_Bytes
number of bytes in an tile or mdd or type.
Definition: mddtypes.hh:43
static const char * TCOLON
Definition: tiling.hh:87
void check_nonempty_tiling(const char *encoded) const
bool is_compatible(const r_Minterval &obj_domain, r_Bytes cellTypeSize) const override
returns true if the cellTypeSize is smaller or equal to the tile size and obj_domain has more than 0 ...
const char * advance_to_next_char(const char *p, const char *search) const
r_Minterval parse_minterval(const char *encoded) const
virtual r_Tiling * clone() const =0
This method provides the core funcionality of this class.
r_Bytes tile_size
Tile size.
Definition: tiling.hh:162
std::vector< r_Minterval > compute_tiles(const r_Minterval &obj_domain, r_Bytes cellTypeSize) const override
returns true
double parse_double(const char *encoded) const
Definition: tiling.hh:139
void print_status(std::ostream &os) const override
Prints the current status of the object.
virtual ~r_Tiling()=default
Definition: tiling.hh:109
r_Dimension get_dimension() const
virtual bool is_compatible(const r_Minterval &obj_domain, r_Bytes cellTypeSize) const =0
Check compatibility of object domain with this tiling.
bool is_compatible(const r_Minterval &obj_domain, r_Bytes cellTypeSize) const override
returns true if the cellTypeSize is smaller or equal to the tile size and the dimension fits the obj_...
virtual r_Tiling_Scheme get_tiling_scheme() const =0
This method is similar to a copy constructor, this is, is returns a copy of the current object.
r_Size_Tiling(const char *encoded)
Constructor that reads everything from a string e.g."100".
static const int DefaultBase
Definition: tiling.hh:91
unsigned int parse_unsigned(const char *encoded) const
The spatial domain of an MDD is represented by an object of class r_Minterval.
Definition: minterval.hh:225
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.
static const char * TCOMMA
Definition: tiling.hh:88
r_Tiling * clone() const override
This method provides the core funcionality of this class.
long parse_long(const char *encoded) const
std::vector< r_Minterval > compute_tiles(const r_Minterval &obj_domain, r_Bytes cellTypeSize) const override
Decompose an object in tiles.
static const char * LSQRBRA
Definition: tiling.hh:89
void print_status(std::ostream &os) const override
Prints the current status of the object.
static const char * description
Definition: tiling.hh:158
bool is_compatible(const r_Minterval &obj_domain, r_Bytes cellTypeSize) const override
Check compatibility of object domain with this tiling.
r_Tiling * clone() const override
returns obj_domain
r_Bytes get_tile_size() const
static const char * RSQRBRA
Definition: tiling.hh:90
static const char * description
Definition: tiling.hh:133