rasdaman complete source
Public Member Functions | Protected Member Functions | List of all members
DBMinterval Class Reference

#include <dbminterval.hh>

Inheritance diagram for DBMinterval:
DBObject r_Minterval

Public Member Functions

 DBMinterval ()
 
 DBMinterval (const OId &id) throw (r_Error)
 
 DBMinterval (r_Dimension dim)
 
 DBMinterval (const char *dom)
 
 DBMinterval (const r_Minterval &old)
 
 DBMinterval (const DBMinterval &old)
 
 ~DBMinterval ()
 
virtual DBMintervaloperator= (const DBMinterval &old)
 
virtual DBMintervaloperator= (const r_Minterval &old)
 
virtual r_Bytes getMemorySize () const
 
- Public Member Functions inherited from DBObject
virtual void destroy (void)
 
int getReferenceCount (void) const
 
void incrementReferenceCount (void)
 
void decrementReferenceCount (void)
 
virtual ~DBObject ()
 
 DBObject ()
 
 DBObject (const DBObject &old)
 
 DBObject (const OId &id) throw (r_Error)
 
virtual void setPersistent (bool newPersistent) throw (r_Error)
 
bool isPersistent () const
 
void validate () throw (r_Error)
 
virtual void setModified () throw (r_Error)
 
bool isModified () const
 
OId getOId () const
 
EOId getEOId () const
 
OId::OIdType getObjectType () const
 
DBObjectoperator= (const DBObject &old)
 
bool isCached () const
 
virtual void setCached (bool newCached)
 
virtual void printStatus (unsigned int level=0, std::ostream &stream=std::cout) const
 
virtual r_Bytes getTotalStorageSize () const
 
virtual BinaryRepresentation getBinaryRepresentation () const throw (r_Error)
 
virtual void setBinaryRepresentation (const BinaryRepresentation &) throw (r_Error)
 
virtual char * getBinaryName () const
 
- Public Member Functions inherited from r_Minterval
 r_Minterval (r_Dimension)
 constructor getting dimensionality for stream initializing More...
 
 r_Minterval (const char *) throw (r_Eno_interval)
 constructor taking string representation (e.g. [ 1:255, *:200, *:* ]) More...
 
 r_Minterval (char *) throw (r_Eno_interval)
 constructor taking string representation (e.g. [ 1:255, *:200, *:* ]) More...
 
r_Mintervaloperator<< (const r_Sinterval &) throw ( r_Einit_overflow )
 for stream initializing with intervals More...
 
r_Mintervaloperator<< (r_Range) throw ( r_Einit_overflow )
 for stream initializing with point intervals More...
 
 r_Minterval ()
 default constructor More...
 
 r_Minterval (const r_Minterval &)
 copy constructor More...
 
 ~r_Minterval ()
 destructor: cleanup dynamic memory More...
 
void r_deactivate ()
 it is called when an object leaves transient memory More...
 
bool intersects_with (const r_Minterval &) const
 determines if the self minterval intersects with the delivered one More...
 
r_Sinterval operator[] (r_Dimension) const
 read access the i-th interval More...
 
r_Sintervaloperator[] (r_Dimension)
 write access the i-th interval More...
 
const r_Mintervaloperator= (const r_Minterval &)
 assignment: cleanup + copy More...
 
bool operator== (const r_Minterval &) const
 equal operator More...
 
bool operator!= (const r_Minterval &) const
 non equal operator - negation of equal operator More...
 
const bool covers (const r_Point &pnt) const
 does this interval cover the given point More...
 
const bool covers (const r_Minterval &inter) const
 does this interval cover the given interval More...
 
r_Dimension dimension () const
 get dimensionality More...
 
const bool is_origin_fixed () const
 checks if all lower bounds are fixed More...
 
r_Point get_origin () const throw (r_Error)
 get lower left corner of minterval. More...
 
const bool is_high_fixed () const
 checks if all upper bounds are fixed More...
 
r_Point get_high () const throw (r_Error)
 get highest corner of tile. More...
 
r_Point get_extent () const throw (r_Error)
 get size of minterval as point. More...
 
bool is_mergeable (const r_Minterval &other) const
 Checks if this block is mergeable with another block (interval) More...
 
void print_status (std::ostream &s=std::cout) const
 writes the state of the object to the specified stream More...
 
char * get_string_representation () const
 gives back the string representation More...
 
r_Mintervalreverse_translate (const r_Point &) throw ( r_Error, r_Edim_mismatch, r_Eno_interval )
 translates this by a point. More...
 
r_Minterval create_reverse_translation (const r_Point &) const throw ( r_Error, r_Edim_mismatch, r_Eno_interval )
 returns new interval as translation of this by a point. More...
 
r_Mintervaltranslate (const r_Point &) throw ( r_Error, r_Edim_mismatch, r_Eno_interval )
 translates this by a point. More...
 
r_Minterval create_translation (const r_Point &) const throw ( r_Error, r_Edim_mismatch, r_Eno_interval )
 returns new interval as translation of this by a point. More...
 
r_Mintervalscale (const double &) throw ( r_Eno_interval )
 scales this by a factor. More...
 
r_Mintervalscale (const vector< double > &) throw ( r_Eno_interval )
 scales this by a factor. More...
 
r_Minterval create_scale (const double &) const throw ( r_Eno_interval )
 returns new interval as scaled from this by a point. More...
 
r_Minterval create_scale (const vector< double > &) const throw ( r_Eno_interval )
 returns new interval as scaled from this by a point. More...
 
r_Mintervalunion_of (const r_Minterval &, const r_Minterval &) throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Mintervalunion_with (const r_Minterval &) throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Mintervaloperator+= (const r_Minterval &) throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Minterval create_union (const r_Minterval &) const throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Minterval operator+ (const r_Minterval &) const throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Mintervaldifference_of (const r_Minterval &, const r_Minterval &) throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Mintervaldifference_with (const r_Minterval &) throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Mintervaloperator-= (const r_Minterval &) throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Minterval create_difference (const r_Minterval &) const throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Minterval operator- (const r_Minterval &) const throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Mintervalintersection_of (const r_Minterval &, const r_Minterval &) throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Mintervalintersection_with (const r_Minterval &) throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Mintervaloperator*= (const r_Minterval &) throw ( r_Edim_mismatch, r_Eno_interval)
 
r_Minterval create_intersection (const r_Minterval &) const throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Minterval operator* (const r_Minterval &) const throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Mintervalclosure_of (const r_Minterval &, const r_Minterval &) throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Mintervalclosure_with (const r_Minterval &) throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Minterval create_closure (const r_Minterval &) const throw ( r_Edim_mismatch, r_Eno_interval )
 
r_Area cell_count () const throw (r_Error)
 calculate number of cells More...
 
r_Area cell_offset (const r_Point &) const throw ( r_Eindex_violation, r_Error )
 calculate offset in cells for one dimensional access (dimension ordering is high first) More...
 
r_Point cell_point (r_Area) const throw ( r_Eno_cell, r_Error )
 calculate point index out of offset More...
 
void delete_dimension (r_Dimension) throw ( r_Eindex_violation )
 delete the specified dimension More...
 
r_Bytes get_storage_size () const
 calculate the size of the storage space occupied More...
 

Protected Member Functions

virtual void insertInDb () throw (r_Error)
 
virtual void updateInDb () throw (r_Error)
 
virtual void deleteFromDb () throw (r_Error)
 
virtual void readFromDb () throw (r_Error)
 
- Protected Member Functions inherited from DBObject
virtual void release ()
 
- Protected Member Functions inherited from r_Minterval
void constructorinit (char *) throw (r_Eno_interval)
 initialization for constructors which take chars More...
 

Additional Inherited Members

- Protected Attributes inherited from DBObject
bool _isPersistent
 
bool _isInDatabase
 
bool _isModified
 
bool _isCached
 
OId myOId
 
OId::OIdType objecttype
 
int referenceCount
 
- Protected Attributes inherited from r_Minterval
r_Sintervalintervals
 array for storing the intervals More...
 
r_Dimension dimensionality
 dimensionality of the domain More...
 
r_Dimension streamInitCnt
 number of components initialized already More...
 

Constructor & Destructor Documentation

DBMinterval::DBMinterval ( )
DBMinterval::DBMinterval ( const OId id)
throw (r_Error
)
DBMinterval::DBMinterval ( r_Dimension  dim)
DBMinterval::DBMinterval ( const char *  dom)
DBMinterval::DBMinterval ( const r_Minterval old)
DBMinterval::DBMinterval ( const DBMinterval old)
DBMinterval::~DBMinterval ( )

Member Function Documentation

virtual void DBMinterval::deleteFromDb ( )
throw (r_Error
)
protectedvirtual

Reimplemented from DBObject.

virtual r_Bytes DBMinterval::getMemorySize ( ) const
virtual

Reimplemented from DBObject.

virtual void DBMinterval::insertInDb ( )
throw (r_Error
)
protectedvirtual

Reimplemented from DBObject.

virtual DBMinterval& DBMinterval::operator= ( const DBMinterval old)
virtual
virtual DBMinterval& DBMinterval::operator= ( const r_Minterval old)
virtual
virtual void DBMinterval::readFromDb ( )
throw (r_Error
)
protectedvirtual

Reimplemented from DBObject.

virtual void DBMinterval::updateInDb ( )
throw (r_Error
)
protectedvirtual

Reimplemented from DBObject.


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