rasdaman API
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
r_Size_Tiling Class Reference

#include <tiling.hh>

Inheritance diagram for r_Size_Tiling:
r_Tiling r_Dimension_Tiling r_Aligned_Tiling r_Dir_Tiling r_Interest_Tiling r_Stat_Tiling

Public Member Functions

 r_Size_Tiling (const char *encoded) throw (r_Error)
 Constructor that reads everything from a string e.g."100". More...
 
 r_Size_Tiling (r_Bytes ts=RMInit::clientTileSize)
 Constructor for this object (Takes tile size as parameter) More...
 
virtual ~r_Size_Tiling ()
 does not do anything More...
 
r_Bytes get_tile_size () const
 Gets the current tile size. More...
 
virtual void print_status (std::ostream &os) const
 Prints the current status of the object. More...
 
virtual bool is_compatible (const r_Minterval &obj_domain, r_Bytes cellTypeSize) const
 returns true if the cellTypeSize is smaller or equal to the tile size and obj_domain has more than 0 dimensions More...
 
virtual std::vector
< r_Minterval > * 
compute_tiles (const r_Minterval &obj_domain, r_Bytes cellTypeSize) const throw (r_Error)
 Decompose an object in tiles. More...
 
virtual r_Tilingclone () const
 Clones this object. More...
 
virtual r_Tiling_Scheme get_tiling_scheme () const
 
- Public Member Functions inherited from r_Tiling
virtual ~r_Tiling ()
 does not do anything More...
 

Static Public Attributes

static const char * description
 
- Static Public Attributes inherited from r_Tiling
static const char * ASTERIX
 
static const char * TCOLON
 
static const char * TCOMMA
 
static const char * LSQRBRA
 
static const char * RSQRBRA
 
static const long DefaultBase
 

Protected Attributes

r_Bytes tile_size
 Tile size. More...
 

Constructor & Destructor Documentation

r_Size_Tiling::r_Size_Tiling ( const char *  encoded)
throw (r_Error
)

Constructor that reads everything from a string e.g."100".

r_Size_Tiling::r_Size_Tiling ( r_Bytes  ts = RMInit::clientTileSize)

Constructor for this object (Takes tile size as parameter)

virtual r_Size_Tiling::~r_Size_Tiling ( )
virtual

does not do anything

Member Function Documentation

virtual r_Tiling* r_Size_Tiling::clone ( ) const
virtual

Clones this object.

This method provides the core funcionality of this class. All derived classes must implement it. As input parameters it takes the big object to be decomposed and returns a set of tiles that compose the big object. This method throws an exeception when the dimension specified, extend or the cell_size are incompatible with the current tiling. You can check compatibility by invoking is_compatible.

Implements r_Tiling.

Reimplemented in r_Stat_Tiling, r_Dimension_Tiling, r_Aligned_Tiling, r_Interest_Tiling, and r_Dir_Tiling.

virtual std::vector<r_Minterval>* r_Size_Tiling::compute_tiles ( const r_Minterval obj_domain,
r_Bytes  cell_size 
) const
throw (r_Error
)
virtual

Decompose an object in tiles.

Implements r_Tiling.

Reimplemented in r_Stat_Tiling, r_Dimension_Tiling, r_Aligned_Tiling, r_Interest_Tiling, and r_Dir_Tiling.

r_Bytes r_Size_Tiling::get_tile_size ( ) const

Gets the current tile size.

virtual r_Tiling_Scheme r_Size_Tiling::get_tiling_scheme ( ) const
virtual

This method is similar to a copy constructor, this is, is returns a copy of the current object. Derived classes must explicitly implement this method.

Implements r_Tiling.

Reimplemented in r_Stat_Tiling, r_Aligned_Tiling, r_Interest_Tiling, and r_Dir_Tiling.

virtual bool r_Size_Tiling::is_compatible ( const r_Minterval obj_domain,
r_Bytes  cellTypeSize 
) const
virtual

returns true if the cellTypeSize is smaller or equal to the tile size and obj_domain has more than 0 dimensions

Implements r_Tiling.

Reimplemented in r_Dimension_Tiling, and r_Dir_Tiling.

virtual void r_Size_Tiling::print_status ( std::ostream &  os) const
virtual

Prints the current status of the object.

Implements r_Tiling.

Reimplemented in r_Stat_Tiling, r_Dimension_Tiling, r_Aligned_Tiling, r_Interest_Tiling, and r_Dir_Tiling.

Member Data Documentation

const char* r_Size_Tiling::description
static
r_Bytes r_Size_Tiling::tile_size
protected

Tile size.


The documentation for this class was generated from the following file: