ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
gsl::complex_long_double_ptr Class Reference

This class can be used like a pointer for complex_long_double objects so that we can iterate over a vector (for example) of them. More...

#include <complex_long_double.hpp>

Inheritance diagram for gsl::complex_long_double_ptr:
Inheritance graph
Collaboration diagram for gsl::complex_long_double_ptr:
Collaboration graph

Public Member Functions

 complex_long_double_ptr (long double *dat)
 Typically we are given a pointer to the data storing the complex_long_double and need to construct a complex_long_double_ptr from it. More...
 
complex_long_double_ref operator* ()
 Dereference the pointer. More...
 
complex_long_double_refoperator-> ()
 Dereference the pointer. More...
 
complex_long_double_ref const operator* () const
 Dereference the pointer. More...
 
complex_long_double_ref const * operator-> () const
 Dereference the pointer. More...
 

Additional Inherited Members

- Private Member Functions inherited from gsl::complex_long_double_ref
 complex_long_double_ref (long double *dat)
 We use this in constructing complex_long_double_ptr objects. More...
 
 operator gsl_complex_long_double () const
 Make sure this is convertible to gsl_complex_long_double. More...
 
 operator complex_long_double () const
 Make sure this is convertible to complex_long_double. More...
 
 complex_long_double_ref ()
 The default constructor is only really useful for assigning to. More...
 
 complex_long_double_ref (complex_long_double &z)
 Make sure we can construct from a complex_long_double. More...
 
complex_long_double_refoperator= (complex_long_double const &z)
 Assignment from complex_long_double. More...
 
void set_complex_long_double (long double x, long double y)
 C++ version of GSL_SET_COMPLEX(). More...
 
long double real () const
 C++ version of GSL_REAL(). More...
 
long double imag () const
 C++ version of GSL_IMAG(). More...
 
void set_real (long double x)
 C++ version of GSL_SET_REAL(). More...
 
void set_imag (long double y)
 C++ version of GSL_SET_IMAG(). More...
 
- Private Attributes inherited from gsl::complex_long_double_ref
long double * dat
 The data. More...
 

Detailed Description

This class can be used like a pointer for complex_long_double objects so that we can iterate over a vector (for example) of them.

Definition at line 281 of file complex_long_double.hpp.

Constructor & Destructor Documentation

◆ complex_long_double_ptr()

gsl::complex_long_double_ptr::complex_long_double_ptr ( long double *  dat)
inline

Typically we are given a pointer to the data storing the complex_long_double and need to construct a complex_long_double_ptr from it.

Parameters
datA pointer to the data

Definition at line 288 of file complex_long_double.hpp.

Member Function Documentation

◆ operator*() [1/2]

complex_long_double_ref gsl::complex_long_double_ptr::operator* ( )
inline

Dereference the pointer.

Returns
the complex_long_double object

Definition at line 293 of file complex_long_double.hpp.

◆ operator*() [2/2]

complex_long_double_ref const gsl::complex_long_double_ptr::operator* ( ) const
inline

Dereference the pointer.

Returns
the complex_long_double object

Definition at line 303 of file complex_long_double.hpp.

◆ operator->() [1/2]

complex_long_double_ref * gsl::complex_long_double_ptr::operator-> ( )
inline

Dereference the pointer.

Returns
a pointer to the complex_long_double object

Definition at line 298 of file complex_long_double.hpp.

◆ operator->() [2/2]

complex_long_double_ref const * gsl::complex_long_double_ptr::operator-> ( ) const
inline

Dereference the pointer.

Returns
a pointer to the complex_long_double object

Definition at line 308 of file complex_long_double.hpp.


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