rasdaman API
Public Member Functions | Protected Attributes | List of all members
r_Dimension_Tiling Class Referenceabstract

#include <tiling.hh>

Inheritance diagram for r_Dimension_Tiling:
r_Size_Tiling r_Tiling r_Aligned_Tiling r_Dir_Tiling r_Interest_Tiling r_Stat_Tiling

Public Member Functions

 r_Dimension_Tiling (r_Dimension dim, r_Bytes ts=RMInit::clientTileSize)
 Constructor for this object (Takes dim (no of dimension) and tile size as parameter) More...
 
virtual ~r_Dimension_Tiling ()
 does not do anything More...
 
r_Dimension get_dimension () const
 Gets the current dimension. 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 =0 throw (r_Error)
 returns true if the cellTypeSize is smaller or equal to the tile size and the dimension fits the obj_domain More...
 
virtual r_Tilingclone () const =0
 Clones this object. More...
 
- Public Member Functions inherited from r_Size_Tiling
 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 r_Tiling_Scheme get_tiling_scheme () const
 
- Public Member Functions inherited from r_Tiling
virtual ~r_Tiling ()
 does not do anything More...
 

Protected Attributes

r_Dimension dimension
 dimension the mdd must have More...
 
- Protected Attributes inherited from r_Size_Tiling
r_Bytes tile_size
 Tile size. More...
 

Additional Inherited Members

- Static Public Attributes inherited from r_Size_Tiling
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
 

Constructor & Destructor Documentation

r_Dimension_Tiling::r_Dimension_Tiling ( r_Dimension  dim,
r_Bytes  ts = RMInit::clientTileSize 
)

Constructor for this object (Takes dim (no of dimension) and tile size as parameter)

virtual r_Dimension_Tiling::~r_Dimension_Tiling ( )
virtual

does not do anything

Member Function Documentation

virtual r_Tiling* r_Dimension_Tiling::clone ( ) const
pure 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.

Reimplemented from r_Size_Tiling.

Implemented in r_Stat_Tiling, r_Aligned_Tiling, r_Interest_Tiling, and r_Dir_Tiling.

virtual std::vector<r_Minterval>* r_Dimension_Tiling::compute_tiles ( const r_Minterval obj_domain,
r_Bytes  cellTypeSize 
) const
throw (r_Error
)
pure virtual

returns true if the cellTypeSize is smaller or equal to the tile size and the dimension fits the obj_domain

Reimplemented from r_Size_Tiling.

Implemented in r_Stat_Tiling, r_Aligned_Tiling, r_Interest_Tiling, and r_Dir_Tiling.

r_Dimension r_Dimension_Tiling::get_dimension ( ) const

Gets the current dimension.

virtual bool r_Dimension_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

Reimplemented from r_Size_Tiling.

Reimplemented in r_Dir_Tiling.

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

Prints the current status of the object.

Reimplemented from r_Size_Tiling.

Reimplemented in r_Stat_Tiling, r_Aligned_Tiling, r_Interest_Tiling, and r_Dir_Tiling.

Member Data Documentation

r_Dimension r_Dimension_Tiling::dimension
protected

dimension the mdd must have


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