buds  0.1
FORTRAN reference counted types
Modules | Data Types | Functions/Subroutines | Variables
Complex (float)

Detailed Description

complex(selected_real_kind(6)) data type

Collaboration diagram for Complex (float):

Modules

module  bud_carray3d
 

Data Types

type  carray3d
 Array data type. More...
 
interface  new
 Create a new cArray3D. More...
 
interface  new_carray3d
 See interface #new More...
 
interface  arrayp
 Retrieve pointer to array in the bud. More...
 
interface  size
 Query dimension of array (or total size) More...
 
interface  init_array
 Initialize array values to a specific value. More...
 
interface  print
 Print, to std-out, some basic information of the data-container. More...
 
interface  assignment(=)
 Assignment of bud to another bud. More...
 
interface  initialize
 Initialization of data container. More...
 
interface  is_initialized
 Query whether bud is associated with any data. More...
 
interface  initialized
 See interface is_initialized More...
 
interface  is_initd
 See interface is_initialized More...
 
interface  is_same
 Check whether two buds point to the same data (function) More...
 
interface  same
 See interface #is_same More...
 
interface  delete
 Deletes the bud by decreasing references to the underlying data. More...
 
interface  nullify
 Nullifies the current bud. More...
 
interface  references
 Query number of references to the bud. More...
 
interface  refs
 See interface #references More...
 

Functions/Subroutines

procedure, public delete => delete_
 See interface delete More...
 
procedure, public nullify => nullify_
 See interface nullify More...
 
procedure, public initialize => initialize_
 See interface initialize More...
 
procedure, public is_initialized => is_initialized_
 See interface is_initialized More...
 
procedure, public is_initd => is_initialized_
 See interface is_initialized More...
 
procedure, public initialized => is_initialized_
 See interface is_initialized More...
 
procedure, public is_same => is_same_
 See interface is_same More...
 
procedure, public same => is_same_
 See interface is_same More...
 
procedure, public references => references_
 See interface references More...
 
procedure, public refs => references_
 See interface references More...
 
procedure, public print => print_
 See interface print More...
 
procedure, private new_dim_
 
procedure, private new_copy_
 
generic, public new => new_dim_, new_copy_
 See interface new More...
 
procedure, public arrayp => get_arrayp_
 See interface arrayp More...
 
procedure, public size => size_
 See interface size More...
 
procedure, public init_array => init_array_
 See interface init_array More...
 
subroutine new_dim_ (this, d1, d2, d3, val)
 
subroutine new_copy_ (this, array)
 
subroutine new_dim_ (this, d1, d2, d3, val)
 
subroutine new_copy_ (this, array)
 
complex(rr_) function, dimension(:,:,:), pointer, contiguous get_arrayp_ (this)
 
pure integer function size_ (this, dim)
 
subroutine init_array_ (this, v)
 
subroutine print_ (this, info, indent)
 
subroutine assign_ (lhs, rhs)
 
subroutine initialize_ (this)
 
pure logical function is_initialized_ (this)
 
pure logical function is_initialized_ (this)
 
pure logical function is_initialized_ (this)
 
elemental logical function is_same_ (lhs, rhs)
 
elemental logical function is_same_ (lhs, rhs)
 
elemental subroutine delete_ (this)
 
elemental subroutine nullify_ (this)
 
elemental integer function references_ (this)
 
elemental integer function references_ (this)
 
subroutine initialize_ (this)
 
pure logical function is_initialized_ (this)
 
elemental logical function is_same_ (lhs, rhs)
 
elemental subroutine delete_ (this)
 
elemental subroutine nullify_ (this)
 
subroutine assign_ (lhs, rhs)
 
elemental integer function references_ (this)
 
pure subroutine, private delete_data (this)
 Internal routine for cleaning up the data container. More...
 
subroutine new_dim_ (this, d1, d2, d3, val)
 
subroutine new_copy_ (this, array)
 
complex(rr_) function, dimension(:,:,:), pointer, contiguous get_arrayp_ (this)
 
pure complex(rr_) function get_array_idx_ (this, i1, i2, i3 )
 
pure integer function size_ (this, dim)
 
subroutine init_array_ (this, v)
 
subroutine print_ (this, info, indent)
 

Variables

integer, parameter, private bud_id_len = 36
 bud_cArray3D documentation More...
 
character(len=*), parameter, private bud_mod = "bud_" // "bud_cArray3D"
 Name of module. More...
 
character(len=*), parameter, private bud_type = "cArray3D"
 Name of bud in this module. More...
 

Function/Subroutine Documentation

procedure, public arrayp ( )

See interface arrayp

subroutine bud_carray3d::assign_ ( class(carray3d), intent(inout)  lhs,
class(carray3d), intent(in)  rhs 
)
private
Parameters
[in,out]lhscontains rhs after exit
[in]rhscopy the containing element bud
subroutine assign_ ( class(carray3d), intent(inout)  lhs,
class(carray3d), intent(in)  rhs 
)
private
Parameters
[in,out]lhscontains rhs after exit
[in]rhscopy the containing element bud
procedure, public delete ( )

See interface delete

elemental subroutine delete_ ( class(carray3d), intent(inout)  this)
private
Parameters
[in,out]thisreturned bud is un-initialized with no data associated
elemental subroutine bud_carray3d::delete_ ( class(carray3d), intent(inout)  this)
private
Parameters
[in,out]thisreturned bud is un-initialized with no data associated

Here is the call graph for this function:

pure subroutine, private bud_carray3d::delete_data ( type(carray3d_), intent(inout)  this)
private

Internal routine for cleaning up the data container.

Developer This routine is only used internally to clean-up any data in the type. Should never be made public.

Here is the caller graph for this function:

pure complex(rr_) function bud_carray3d::get_array_idx_ ( class(carray3d), intent(in)  this,
integer, intent(in)  i1,
integer, intent(in)  i2,
integer, intent(in)  i3 
)
private
Parameters
[in]thisthe containing bud
[in]i1index in the array
[in]i2index in the array
[in]i3index in the array
Returns
the value in the specific indexed location of the array
complex(rr_) function, dimension (:,:,:), pointer, contiguous get_arrayp_ ( class(carray3d), intent(in)  this)
private
Parameters
[in]thisarray bud
Returns
a pointer to the data (contiguous)
complex(rr_) function, dimension (:,:,:), pointer, contiguous bud_carray3d::get_arrayp_ ( class(carray3d), intent(in)  this)
private
Parameters
[in]thisarray bud
Returns
a pointer to the data (contiguous)
procedure, public init_array ( )

See interface init_array

subroutine bud_carray3d::init_array_ ( class(carray3d), intent(inout)  this,
complex(rr_), intent(in)  v 
)
private
Parameters
[in]thisarray bud
[in]vall elements of the contained array will be equal to v after the call
subroutine init_array_ ( class(carray3d), intent(inout)  this,
complex(rr_), intent(in)  v 
)
private
Parameters
[in]thisarray bud
[in]vall elements of the contained array will be equal to v after the call
procedure, public initialize ( )

See interface initialize

subroutine bud_carray3d::initialize_ ( class(carray3d), intent(inout)  this)
private
Parameters
[in,out]thisbud that is initialized
subroutine initialize_ ( class(carray3d), intent(inout)  this)
private
Parameters
[in,out]thisbud that is initialized
procedure, public initialized ( )

See interface is_initialized

procedure, public is_initd ( )

See interface is_initialized

procedure, public is_initialized ( )

See interface is_initialized

pure logical function bud_carray3d::is_initialized_ ( class(carray3d), intent(in)  this)
private
Parameters
[in]thischeck if this bud is initialized
Returns
.true. if it is associated, else .false.
pure logical function is_initialized_ ( class(carray3d), intent(in)  this)
private
Parameters
[in]thischeck if this bud is initialized
Returns
.true. if it is associated, else .false.
pure logical function is_initialized_ ( class(carray3d), intent(in)  this)
private
Parameters
[in]thischeck if this bud is initialized
Returns
.true. if it is associated, else .false.
pure logical function is_initialized_ ( class(carray3d), intent(in)  this)
private
Parameters
[in]thischeck if this bud is initialized
Returns
.true. if it is associated, else .false.
procedure, public is_same ( )

See interface is_same

elemental logical function is_same_ ( class(carray3d), intent(in)  lhs,
class(carray3d), intent(in)  rhs 
)
private
Parameters
[in]lhsfirst bud
[in]rhssecond bud
Returns
.true. if lhs and rhs point to the same data
elemental logical function bud_carray3d::is_same_ ( class(carray3d), intent(in)  lhs,
class(carray3d), intent(in)  rhs 
)
private
Parameters
[in]lhsfirst bud
[in]rhssecond bud
Returns
.true. if lhs and rhs point to the same data
elemental logical function is_same_ ( class(carray3d), intent(in)  lhs,
class(carray3d), intent(in)  rhs 
)
private
Parameters
[in]lhsfirst bud
[in]rhssecond bud
Returns
.true. if lhs and rhs point to the same data
generic, public new ( )

See interface new

procedure, private new_copy_ ( )
private
subroutine new_copy_ ( class(carray3d), intent(inout)  this,
complex(rr_), dimension (:,:,:), intent(in)  array 
)
private
Parameters
[in,out]thisarray bud
[in]arrayarray to dublicate in this (dimensions and values)
subroutine new_copy_ ( class(carray3d), intent(inout)  this,
complex(rr_), dimension (:,:,:), intent(in)  array 
)
private
Parameters
[in,out]thisarray bud
[in]arrayarray to dublicate in this (dimensions and values)
subroutine bud_carray3d::new_copy_ ( class(carray3d), intent(inout)  this,
complex(rr_), dimension (:,:,:), intent(in)  array 
)
private
Parameters
[in,out]thisarray bud
[in]arrayarray to dublicate in this (dimensions and values)

Here is the call graph for this function:

procedure, private new_dim_ ( )
private
subroutine new_dim_ ( class(carray3d), intent(inout)  this,
integer, intent(in)  d1,
integer, intent(in)  d2,
integer, intent(in)  d3,
complex(rr_), intent(in), optional  val 
)
private
Parameters
[in,out]thisarray bud
[in]d1size of the internal reference counted array (dim=1)
[in]d2size of the internal reference counted array (dim=2)
[in]d3size of the internal reference counted array (dim=3)
[in]valoptional=__null__ initial value of all elements
subroutine new_dim_ ( class(carray3d), intent(inout)  this,
integer, intent(in)  d1,
integer, intent(in)  d2,
integer, intent(in)  d3,
complex(rr_), intent(in), optional  val 
)
private
Parameters
[in,out]thisarray bud
[in]d1size of the internal reference counted array (dim=1)
[in]d2size of the internal reference counted array (dim=2)
[in]d3size of the internal reference counted array (dim=3)
[in]valoptional=__null__ initial value of all elements
subroutine bud_carray3d::new_dim_ ( class(carray3d), intent(inout)  this,
integer, intent(in)  d1,
integer, intent(in)  d2,
integer, intent(in)  d3,
complex(rr_), intent(in), optional  val 
)
private
Parameters
[in,out]thisarray bud
[in]d1size of the internal reference counted array (dim=1)
[in]d2size of the internal reference counted array (dim=2)
[in]d3size of the internal reference counted array (dim=3)
[in]valoptional=__null__ initial value of all elements

Here is the caller graph for this function:

procedure, public nullify ( )

See interface nullify

elemental subroutine nullify_ ( class(carray3d), intent(inout)  this)
private
Parameters
[in,out]thisnullify references from this bud
elemental subroutine bud_carray3d::nullify_ ( class(carray3d), intent(inout)  this)
private
Parameters
[in,out]thisnullify references from this bud
procedure, public print ( )

See interface print

subroutine bud_carray3d::print_ ( class(carray3d), intent(in)  this,
character(len=*), intent(in), optional  info,
integer, intent(in), optional  indent 
)
private
Parameters
[in]thisarray bud
[in]infooptional="cArray3D" additional information printed
[in]indentoptional=1 possible indentation of printed statement

Here is the call graph for this function:

subroutine print_ ( class(carray3d), intent(in)  this,
character(len=*), intent(in), optional  info,
integer, intent(in), optional  indent 
)
private
Parameters
[in]thisarray bud
[in]infooptional="cArray3D" additional information printed
[in]indentoptional=1 possible indentation of printed statement
procedure, public references ( )

See interface references

elemental integer function references_ ( class(carray3d), intent(in)  this)
private
Parameters
[in]thisreference counted bud
Returns
number of times this has been referenced
elemental integer function references_ ( class(carray3d), intent(in)  this)
private
Parameters
[in]thisreference counted bud
Returns
number of times this has been referenced
elemental integer function bud_carray3d::references_ ( class(carray3d), intent(in)  this)
private
Parameters
[in]thisreference counted bud
Returns
number of times this has been referenced
procedure, public refs ( )

See interface references

procedure, public same ( )

See interface is_same

procedure, public size ( )

See interface size

pure integer function size_ ( class(carray3d), intent(in)  this,
integer, intent(in), optional  dim 
)
private
Parameters
[in]thisbud container
[in]dimoptional=__null__ along the specified dimension
Returns
the size of the contained array
pure integer function bud_carray3d::size_ ( class(carray3d), intent(in)  this,
integer, intent(in), optional  dim 
)
private
Parameters
[in]thisbud container
[in]dimoptional=__null__ along the specified dimension
Returns
the size of the contained array

Here is the caller graph for this function:

Variable Documentation

integer, parameter, private bud_id_len = 36
private

bud_cArray3D documentation

The detailed implementation of the cArray3D type.

Note This documentation is duplicated in all types with different precision. Size of ID parameter for bud data-containers

character(len=*), parameter, private bud_mod = "bud_" // "bud_cArray3D"
private

Name of module.

character(len=*), parameter, private bud_type = "cArray3D"
private

Name of bud in this module.