Chombo + EB  3.0
CHArray_fwd.H
Go to the documentation of this file.
1 #ifdef CH_LANG_CC
2 /*
3  * _______ __
4  * / ___/ / ___ __ _ / / ___
5  * / /__/ _ \/ _ \/ V \/ _ \/ _ \
6  * \___/_//_/\___/_/_/_/_.__/\___/
7  * Please refer to Copyright.txt, in Chombo's root directory.
8  */
9 #endif
10 
11 #ifndef _CHARRAY_FWD_H_
12 #define _CHARRAY_FWD_H_
13 
14 
15 /******************************************************************************/
16 /**
17  * \file
18  *
19  * \brief Forward declarations for class CHArray
20  *
21  * These class declarations have to be in a separate file to ensure that the
22  * default template parameters are only specified once. Include this file like
23  * normal if all you want is a foward declaration of class CHArray.
24  *
25  *//***************************************************************************/
26 
27 #ifdef CH_SPACEDIM
28 // In Chombo land
29  #include "NamespaceHeader.H"
30 #endif
31 
32 /// Array configuration parameters
33 enum
34 {
35  ArZeroRow, ///< Zero lower bound and row-storage
36  ArZeroCol, ///< Zero lower bound and column-storage
37  ArRangeRow, ///< Range of subscripts and row-storage
38  ArRangeCol ///< Range of subscripts and column-
39  ///< storage
40 };
41 
42 /// Array limits
43 enum
44 {
45  CHArrayMaximumRank = 7 ///< Maximum supported rank
46 };
47 
48 namespace ArSp
49 {
50  template <typename T> class DefaultArrayAlloc;
51 }
52 template <typename T,
53  unsigned Rank,
54  int ArConf = ArZeroCol,
55  typename Alloc = ArSp::DefaultArrayAlloc<T> >
56 class CHArray;
57 
58 #ifdef CH_SPACEDIM
59  #include "NamespaceFooter.H"
60 #endif
61 #endif
Multidimensional array class.
Definition: CHArray.H:1276
Maximum supported rank.
Definition: CHArray_fwd.H:45
Definition: CHArray.H:132
Range of subscripts and row-storage.
Definition: CHArray_fwd.H:37
Zero lower bound and row-storage.
Definition: CHArray_fwd.H:35
Definition: CHArray_fwd.H:38
Default allocator.
Definition: CHArray.H:337
Zero lower bound and column-storage.
Definition: CHArray_fwd.H:36