HLIBpro  2.2
Public Member Functions | List of all members
TCoordinate Class Reference

stores coordinate information for indices More...

#include <TCoordinate.hh>

Public Member Functions

 TCoordinate (const std::vector< double * > &acoord, const uint adim, const bool ext=false)
 
 TCoordinate (const std::vector< double * > &acoord, const uint adim, const std::vector< double * > &abbmin, const std::vector< double * > &abbmax, const bool ext=false)
 
size_t ncoord () const
 return number of stored coordinates
 
uint dim () const
 return dimension of stored coordinates
 
const double * coord (const idx_t i) const
 return coordinate i
 
const double * bbmin (const idx_t i) const
 return minimal coordinate of i'th bounding box
 
const double * bbmax (const idx_t i) const
 return maximal coordinate of i'th bounding box
 
bool has_bbox () const
 return true if bounding box data is present
 
void set_periodicity (const TPoint &p)
 set periodicity to p
 
const TPoint & periodicity () const
 return periodicity vector
 
size_t byte_size () const
 return memory consumption
 

Detailed Description

Constructor & Destructor Documentation

TCoordinate ( const std::vector< double * > &  acoord,
const uint  adim,
const bool  ext = false 
)

construct coordinate object with accord holding the coordinate vectors, each of dimension adim; if ext is true, memory is handled externally

TCoordinate ( const std::vector< double * > &  acoord,
const uint  adim,
const std::vector< double * > &  abbmin,
const std::vector< double * > &  abbmax,
const bool  ext = false 
)

construct coordinate object with accord holding the coordinate vectors, each of dimension adim with additional bounding box information in abbmin and abbmax; if ext is true, memory is handled externally