38 #define G_INSERT "GFitsTableCDoubleCol::insert(int&, int&)"
39 #define G_REMOVE "GFitsTableCDoubleCol::remove(int&, int&)"
134 if (
this != &column) {
182 const int& inx)
const
331 int length = m_length +
nrows;
344 int n_after =
m_number * (m_length - row);
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) {
399 if (nrows < 0 || nrows >
m_length-row) {
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)
665 for (
int i = 0; i < num; ++i) {
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) {
virtual void insert(const int &row, const int &nrows)
Insert rows in column.
virtual std::string string(const int &row, const int &col=0) const
Get string value.
std::string number(const std::string &noun, const int &number)
Convert singular noun into number noun.
int m_number
Number of elements in column.
void free_members(void)
Delete class members.
GFitsTableCol & operator=(const GFitsTableCol &column)
Assignment operator.
FITS table double complex column.
int m_varlen
Maximum number of elements in variable-length.
GFitsTableCDoubleCol(void)
Constructor.
virtual void resize_data(const int &index, const int &number)
Resize column data.
virtual int integer(const int &row, const int &col=0) const
Get integer value (real part)
virtual void load_column(void)
Load table column from FITS file.
GFits::cdouble * m_nulval
NULL value.
const int & number(void) const
Returns number of elements in column.
virtual void fetch_data(void) const
Fetch column data.
void init_members(void)
Initialise class members.
CFITSIO interface header.
Abstract interface for FITS table column.
GFits::cdouble & operator()(const int &row, const int &inx=0)
Column data access operator.
std::vector< int > m_rowstart
Start index of each row.
std::string left(const std::string &s, const int &n, const char &c= ' ')
Left justify string to achieve a length of n characters.
virtual std::string ascii_format(void) const
Returns format string of ASCII table.
virtual void remove(const int &row, const int &nrows)
Remove rows from column.
virtual GFitsTableCDoubleCol * clone(void) const
Clone column.
GFitsTableCDoubleCol & operator=(const GFitsTableCDoubleCol &column)
Assignment operator.
virtual void alloc_data(void)
Allocates column data.
FITS table double complex column class interface definition.
GFits::cdouble * m_data
Data vector.
virtual double real(const int &row, const int &col=0) const
Get double precision value (real part)
int m_length
Length of column (number of rows)
virtual ~GFitsTableCDoubleCol(void)
Destructor.
GFits::cdouble * nulval(void)
Returns pointer to nul value.
int m_size
Size of allocated data area (0 if not loaded)
virtual bool is_loaded(void) const
Checks if column has been loaded.
virtual int offset(const int &row, const int &inx) const
Compute offset of column element in memory.
void free_members(void)
Delete class members.
Exception handler interface definition.
virtual void init_data(void)
Initialise column data.
virtual void release_data(void)
Release column data.
void copy_members(const GFitsTableCDoubleCol &column)
Copy class members.
virtual void clear(void)
Clear instance.
void alloc_nulval(const GFits::cdouble *value)
Allocates null value.
const int & nrows(void) const
Returns number of rows in column.
void init_members(void)
Initialise class members.
int m_width
Width in Bytes of single column element.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.