UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
CubeStorage< T > Class Template Reference

#include <CubeStorage.H>

Public Member Functions

 CubeStorage (int nR, int nC, item_order_t itor=AlaC)
 
 CubeStorage (int dim_n, int *dims, item_order_t itor=AlaC)
 
 CubeStorage (const CubeStorage &cs, item_order_t itor=AlaC)
 
CubeStorageoperator= (const CubeStorage &cs)
 
int dim_number () const
 
int dim (int dim_i) const
 
void new_size (int dim_n, int *dims, item_order_t itor=AlaC)
 
int lin_index (int i0,...) const
 
int lin_index (int *i) const
 
int items_number (int dim_n, int *dims) const
 
T & fetch (int *i)
 
T & fetch (int i0,...)
 
get (int *i) const
 
get (int i0,...) const
 
T & operator() (int *i)
 
T & operator() (int i0,...)
 
T * c () const
 
T * f () const
 
void clean ()
 
void fill (T v)
 
virtual void print_info () const
 
virtual void print_index (int *i) const
 
virtual void print_direction (FILE *fp, const char *format)
 
virtual void print_cell (int *i) const
 
virtual void print_vector (int d, int *i) const
 
virtual void print_matrix (int dv, int dh, int *i) const
 
virtual void stream_dir (const char *dir)
 
const char * stream_dir () const
 
virtual void stream_put (int ii)
 
virtual void stream_get (int ii)
 

Detailed Description

template<class T>
class CubeStorage< T >

Multidimension array of homogeneous items which resides in memory continuously allowing to work with the array directly from C/C++/FORTRAN.

Member Function Documentation

template<class T>
T* CubeStorage< T >::c ( ) const

Get pointer for C/C++

template<class T>
void CubeStorage< T >::clean ( )

Fill the array by zeros

template<class T>
T* CubeStorage< T >::f ( ) const

Get pointer for Fortran

template<class T>
void CubeStorage< T >::fill ( v)

Fill the array by given value

template<class T>
virtual void CubeStorage< T >::print_direction ( FILE *  fp,
const char *  format 
)
virtual

Not a meaningful in case of CuSt_AtomItem is undefined

template<class T >
void CubeStorage< T >::stream_dir ( const char *  dir)
virtual

Setup new directory for stream I/O

template<class T >
const char * CubeStorage< T >::stream_dir ( ) const

Get name of directory for stream I/O

template<class T >
void CubeStorage< T >::stream_get ( int  ii)
virtual

Replace actual contents from stream at given item index

template<class T >
void CubeStorage< T >::stream_put ( int  ii)
virtual

Put actual contents to stream with given item index


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