rasdaman client API  10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
Public Member Functions | List of all members
r_Complex Class Reference

Class r_Complex represents a complex type value. More...

#include <complex.hh>

Inheritance diagram for r_Complex:
r_Primitive r_Scalar

Public Member Functions

 r_Complex (const char *newBuffer, const r_Complex_Type *newType)
 constructs a scalar type value More...
 
 r_Complex (const r_Complex &obj)
 copy constructor More...
 
 ~r_Complex () override=default
 destructor More...
 
virtual bool isComplex () const override
 
virtual r_Scalarclone () const override
 clone operator More...
 
const r_Complexoperator= (const r_Complex &)
 operator for assigning a primitive More...
 
r_Double get_re () const
 
r_Double get_im () const
 
void set_re (r_Double)
 
void set_im (r_Double)
 
r_Long get_re_long () const
 
r_Long get_im_long () const
 
void set_re_long (r_Long)
 
void set_im_long (r_Long)
 
- Public Member Functions inherited from r_Primitive
 r_Primitive (const char *newBuffer, const r_Primitive_Type *newType)
 
 r_Primitive (const r_Primitive &obj)
 
 ~r_Primitive () override
 
r_Scalarclone () const override
 clone operator More...
 
const r_Primitiveoperator= (const r_Primitive &)
 operator for assigning a primitive More...
 
const char * get_buffer () const
 gets the pointer to the buffer More...
 
void print_status (std::ostream &s) const override
 debug output More...
 
bool isPrimitive () const override
 
r_Boolean get_boolean () const
 
r_Char get_char () const
 
r_Octet get_octet () const
 
r_Short get_short () const
 
r_UShort get_ushort () const
 
r_Long get_long () const
 
r_ULong get_ulong () const
 
r_Float get_float () const
 
r_Double get_double () const
 
void set_boolean (r_Boolean)
 
void set_char (r_Char)
 
void set_octet (r_Octet)
 
void set_short (r_Short)
 
void set_ushort (r_UShort)
 
void set_long (r_Long)
 
void set_ulong (r_ULong)
 
void set_float (r_Float)
 
void set_double (r_Double)
 
- Public Member Functions inherited from r_Scalar
 r_Scalar (const r_Base_Type *newType)
 
 r_Scalar (const r_Scalar &obj)
 
virtual ~r_Scalar ()
 
const r_Scalaroperator= (const r_Scalar &)
 
virtual const r_Base_Typeget_type () const
 
virtual bool isStructure () const
 

Additional Inherited Members

- Protected Member Functions inherited from r_Primitive
void checkBufferAndType () const
 
void checkBufferAndType (r_Type::r_Type_Id type)
 
- Protected Attributes inherited from r_Primitive
char * valueBuffer {NULL}
 buffer More...
 
- Protected Attributes inherited from r_Scalar
r_Base_TypevalueType {NULL}
 

Detailed Description

Class r_Complex represents a complex type value.

Constructor & Destructor Documentation

◆ r_Complex() [1/2]

r_Complex::r_Complex ( const char *  newBuffer,
const r_Complex_Type newType 
)
explicit

constructs a scalar type value

◆ r_Complex() [2/2]

r_Complex::r_Complex ( const r_Complex obj)

copy constructor

◆ ~r_Complex()

r_Complex::~r_Complex ( )
overridedefault

destructor

Member Function Documentation

◆ clone()

virtual r_Scalar* r_Complex::clone ( ) const
overridevirtual

clone operator

Implements r_Scalar.

◆ get_im()

r_Double r_Complex::get_im ( ) const

◆ get_im_long()

r_Long r_Complex::get_im_long ( ) const

◆ get_re()

r_Double r_Complex::get_re ( ) const

◆ get_re_long()

r_Long r_Complex::get_re_long ( ) const

◆ isComplex()

virtual bool r_Complex::isComplex ( ) const
overridevirtual

Reimplemented from r_Scalar.

◆ operator=()

const r_Complex& r_Complex::operator= ( const r_Complex )

operator for assigning a primitive

◆ set_im()

void r_Complex::set_im ( r_Double  )

◆ set_im_long()

void r_Complex::set_im_long ( r_Long  )

◆ set_re()

void r_Complex::set_re ( r_Double  )

◆ set_re_long()

void r_Complex::set_re_long ( r_Long  )

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