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
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.
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.
virtual void alloc_data(void)
Allocates column data.
virtual void init_data(void)
Initialise column data.
int m_varlen
Maximum number of elements in variable-length.
virtual void release_data(void)
Release column data.
virtual double real(const int &row, const int &col=0) const
Get double precision value (real part)
GFits::cfloat & operator()(const int &row, const int &inx=0)
Column data access operator.
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.
virtual void remove(const int &row, const int &nrows)
Remove rows from column.
const int & number(void) const
Returns number of elements in column.
virtual void fetch_data(void) const
Fetch column data.
void copy_members(const GFitsTableCFloatCol &column)
Copy class members.
void init_members(void)
Initialise class members.
virtual ~GFitsTableCFloatCol(void)
Destructor.
void alloc_nulval(const GFits::cfloat *value)
Allocates null value.
virtual void clear(void)
Clear instance.
CFITSIO interface header.
Abstract interface for FITS table column.
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 std::string string(const int &row, const int &col=0) const
Get string value.
GFitsTableCFloatCol(void)
Constructor.
int m_length
Length of column (number of rows)
virtual GFitsTableCFloatCol * clone(void) const
Clone column.
GFits::cfloat * m_data
Data vector.
virtual bool is_loaded(void) const
Checks if column has been loaded.
int m_size
Size of allocated data area (0 if not loaded)
GFitsTableCFloatCol & operator=(const GFitsTableCFloatCol &column)
Assignment operator.
GFits::cfloat * m_nulval
NULL value.
virtual int offset(const int &row, const int &inx) const
Compute offset of column element in memory.
Exception handler interface definition.
virtual void resize_data(const int &index, const int &number)
Resize column data.
GFits::cfloat * nulval(void)
Returns pointer to nul value.
const int & nrows(void) const
Returns number of rows in column.
FITS table float complex column.
void free_members(void)
Delete class members.
FITS table float complex column class interface definition.
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.