AFF --- A container for numbers (array) by Friederich and Forbriger.
aff::util::FortranShape Class Reference

find appropriate leading dimensions More...

#include <fortranshape.h>

Inheritance diagram for aff::util::FortranShape:
Collaboration diagram for aff::util::FortranShape:

Public Types

typedef aff::Strided Tshape
 This is coded for Strided shapes. More...
 
typedef Tshape::TIndexVec TIndexVec
 Vector of index values. More...
 
typedef Tshape::TSizeVec TSizeVec
 Vector of size values. More...
 

Public Member Functions

 FortranShape (const Tshape &shape, const bool &BaseOne=true)
 construct from shape More...
 
const Tsubscriptfirst (const Tdim &i) const
 first index in dimension i More...
 
const Tsubscriptlast (const Tdim &i) const
 last index in dimension i More...
 
const Tsubscriptdimlast (const Tdim &i) const
 last index as dimensioned in dimension i More...
 
const Tsubscriptoffset () const
 offset to access representation More...
 
const TIndexVecfirst () const
 full first vector More...
 
const TIndexVeclast () const
 full last vector More...
 
const TIndexVecdimlast () const
 full dimlast vector More...
 

Private Attributes

TIndexVec Mfirst
 first index More...
 
TIndexVec Mlast
 last index More...
 
TIndexVec Mdimlast
 last index as dimensioned in memory More...
 
Tsubscript Moffset
 offset of first element in representation More...
 

Detailed Description

find appropriate leading dimensions

This class is used to calculate appropriate leading dimensions from a aff::Strided shape. These values are needed to pass an array to a Fortran 77 subroutine.

See also
aff::FortranArray
Examples:
tests/f77test.cc.

Definition at line 64 of file fortranshape.h.


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