AFF --- A container for numbers (array) by Friederich and Forbriger.
aff::FortranArray< C > Class Template Reference

Class to provide Fortran interface values. More...

#include <fortranshape.h>

Inheritance diagram for aff::FortranArray< C >:
Collaboration diagram for aff::FortranArray< C >:

Public Types

typedef C Tarray
 type of corresponding array More...
 
typedef Tarray::Tshape Tshape
 shape class More...
 
typedef Tarray::Trepresentation Trepresentation
 representation class More...
 
typedef Trepresentation::Tpointer Treppointer
 pointer to value used in representation class More...
 
typedef aff::util::FortranShape Tbase
 base class More...
 
typedef Tarray::Tpointer Tpointer
 pointer to array base in memory More...
 
typedef Tarray::Tvalue Tvalue
 value type in array class More...
 
typedef Trepresentation::Tvalue Trepvalue
 value type in representation class More...
 

Public Member Functions

 FortranArray (Tarray array, const bool &BaseOne=true)
 create More...
 
Treppointer pointer () const
 return pointer to first element in Fortran layout More...
 
template<class TT >
TT * castedpointer () const
 return type-casted pointer to first element in Fortran layout More...
 

Private Types

typedef Tshape::TIndexVec TIndexVec
 Vector of index values. More...
 
typedef Tshape::TSizeVec TSizeVec
 Vector of size values. More...
 

Private Member Functions

const Tsubscriptfirst (const Tdim &i) const
 first index in dimension i More...
 
const TIndexVecfirst () const
 full first vector More...
 
const Tsubscriptlast (const Tdim &i) const
 last index in dimension i More...
 
const TIndexVeclast () const
 full last vector More...
 
const Tsubscriptdimlast (const Tdim &i) const
 last index as dimensioned in dimension i More...
 
const TIndexVecdimlast () const
 full dimlast vector More...
 
const Tsubscriptoffset () const
 offset to access representation More...
 

Private Attributes

Treppointer Mpointer
 pointer to memory More...
 

Detailed Description

template<class C>
class aff::FortranArray< C >

Class to provide Fortran interface values.

See also
aff::util::FortranShape
Examples:
tests/f77test.cc.

Definition at line 107 of file fortranshape.h.


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