38#define G_INSERT "GFitsTableCFloatCol::insert(int&, int&)"
39#define G_REMOVE "GFitsTableCFloatCol::remove(int&, int&)"
134 if (
this != &column) {
182 const int& inx)
const
349 for (
int i = 0; i < n_before; ++i) {
352 for (
int i = 0; i < n_insert; ++i) {
357 for (
int i = 0; i < n_after; ++i) {
428 int n_after =
m_number * (length - row);
433 for (
int i = 0; i < n_before; ++i) {
437 for (
int i = 0; i < n_after; ++i) {
543 for (
int i = 0; i <
m_size; ++i) {
552 #if defined(G_SMALL_MEMORY)
661 int left = index -
number;
665 for (
int i = 0; i < num; ++i) {
677 int left =
m_size - index;
682 for (
int i = 0; i < index; ++i) {
685 for (
int i = 0; i <
number; ++i) {
690 for (
int i = 0; i < left; ++i) {
750 for (
int i = 0; i <
m_size; ++i) {
Exception handler interface definition.
CFITSIO interface header.
FITS table float complex column class interface definition.
FITS table float complex column.
void copy_members(const GFitsTableCFloatCol &column)
Copy class members.
void alloc_nulval(const GFits::cfloat *value)
Allocates null value.
virtual void alloc_data(void)
Allocates column data.
virtual void insert(const int &row, const int &nrows)
Insert rows in column.
virtual std::string ascii_format(void) const
Returns format string of ASCII table.
virtual void init_data(void)
Initialise column data.
virtual int integer(const int &row, const int &col=0) const
Get integer value (real part)
virtual void release_data(void)
Release column data.
virtual GFitsTableCFloatCol * clone(void) const
Clone column.
GFits::cfloat & operator()(const int &row, const int &inx=0)
Column data access operator.
GFitsTableCFloatCol & operator=(const GFitsTableCFloatCol &column)
Assignment operator.
void free_members(void)
Delete class members.
void init_members(void)
Initialise class members.
virtual void clear(void)
Clear instance.
virtual void resize_data(const int &index, const int &number)
Resize column data.
virtual double real(const int &row, const int &col=0) const
Get double precision value (real part)
GFits::cfloat * m_nulval
NULL value.
virtual void remove(const int &row, const int &nrows)
Remove rows from column.
virtual void fetch_data(void) const
Fetch column data.
GFits::cfloat * nulval(void)
Returns pointer to nul value.
GFitsTableCFloatCol(void)
Constructor.
GFits::cfloat * m_data
Data vector.
virtual bool is_loaded(void) const
Checks if column has been loaded.
virtual std::string string(const int &row, const int &col=0) const
Get string value.
virtual ~GFitsTableCFloatCol(void)
Destructor.
Abstract interface for FITS table column.
int m_length
Length of column (number of rows)
const int & nrows(void) const
Returns number of rows in column.
std::vector< int > m_rowstart
Start index of each row.
int m_size
Size of allocated data area (0 if not loaded)
int m_width
Width in Bytes of single column element.
int m_varlen
Maximum number of elements in variable-length.
GFitsTableCol & operator=(const GFitsTableCol &column)
Assignment operator.
const int & number(void) const
Returns number of elements in column.
void free_members(void)
Delete class members.
virtual void load_column(void)
Load table column from FITS file.
void init_members(void)
Initialise class members.
virtual int offset(const int &row, const int &inx) const
Compute offset of column element in memory.
int m_number
Number of elements in column.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.