#include <Array3DShape.hpp>

Public Member Functions | |
| bool | operator== (const Array3DShape &s) const |
| size_t | operator() (const size_t &i, const size_t &j, const size_t &k) const |
| size_t | operator() (const TinyVector< 3, size_t > &index) const |
| const size_t & | nx () const |
| Access to the first component of the shape. | |
| const size_t & | ny () const |
| Access to the second component of the shape. | |
| const size_t & | nz () const |
| Access to the third component of the shape. | |
| const size_t & | operator[] (const size_t &i) const |
| size_t | size () const |
| Returns the product of shape components (ie: the number of elements when tensorized). | |
| Array3DShape | operator- (size_t i) const |
| Array3DShape & | operator= (const Array3DShape &s) |
| Array3DShape (const size_t &i, const size_t &j, const size_t &k) | |
| Constructs a Array3DShape. | |
| Array3DShape (const TinyVector< 3, size_t > &shape) | |
| Array3DShape (const Array3DShape &s) | |
| Copy constructor. | |
| Array3DShape () | |
| Default Constructor. | |
| ~Array3DShape () | |
Private Attributes | |
| TinyVector< 3, size_t > | __shape |
| The shape. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Array3DShape &a) |
Definition at line 35 of file Array3DShape.hpp.
| Array3DShape::Array3DShape | ( | const size_t & | i, | |
| const size_t & | j, | |||
| const size_t & | k | |||
| ) | [inline] |
| Array3DShape::Array3DShape | ( | const TinyVector< 3, size_t > & | shape | ) | [inline] |
Constructs an Array3DShape by a TinyVector
| shape | given shape |
Definition at line 131 of file Array3DShape.hpp.
00132 : __shape(shape) 00133 { 00134 ; 00135 }
| Array3DShape::Array3DShape | ( | const Array3DShape & | s | ) | [inline] |
| Array3DShape::Array3DShape | ( | ) | [inline] |
| Array3DShape::~Array3DShape | ( | ) | [inline] |
| bool Array3DShape::operator== | ( | const Array3DShape & | s | ) | const [inline] |
| size_t Array3DShape::operator() | ( | const size_t & | i, | |
| const size_t & | j, | |||
| const size_t & | k | |||
| ) | const [inline] |
| size_t Array3DShape::operator() | ( | const TinyVector< 3, size_t > & | index | ) | const [inline] |
| const size_t& Array3DShape::nx | ( | ) | const [inline] |
Access to the first component of the shape.
Definition at line 69 of file Array3DShape.hpp.
References __shape.
Referenced by Structured3DVector< bool >::__buildView(), Structured3DVector< bool >::__clean(), Structured3DMesh::cellIndex(), SpectralMesh::cellIndex(), Structured3DMesh::find(), SpectralMesh::find(), MultiGrid::MultiGrid(), Structured3DMeshShape::numberOfCells(), Structured3DMeshShape::numberOfEdges(), Structured3DMeshShape::numberOfVertices(), Structured3DVector< bool >::nx(), Structured3DMeshShape::nx(), Structured3DVector< bool >::operator()(), MeshExpressionSpectral::put(), MeshExpressionStructured::put(), SpectralMesh::SpectralMesh(), Structured3DMesh::Structured3DMesh(), and MultiGrid::weightJacobi().
00070 { 00071 return __shape[0]; 00072 }
| const size_t& Array3DShape::ny | ( | ) | const [inline] |
Access to the second component of the shape.
Definition at line 75 of file Array3DShape.hpp.
References __shape.
Referenced by Structured3DVector< bool >::__buildView(), Structured3DMesh::cellIndex(), SpectralMesh::cellIndex(), Structured3DMesh::find(), SpectralMesh::find(), MultiGrid::MultiGrid(), Structured3DMeshShape::numberOfCells(), Structured3DMeshShape::numberOfEdges(), Structured3DMeshShape::numberOfVertices(), Structured3DVector< bool >::ny(), Structured3DMeshShape::ny(), Structured3DVector< bool >::operator()(), MeshExpressionSpectral::put(), MeshExpressionStructured::put(), SpectralMesh::SpectralMesh(), Structured3DMesh::Structured3DMesh(), and MultiGrid::weightJacobi().
00076 { 00077 return __shape[1]; 00078 }
| const size_t& Array3DShape::nz | ( | ) | const [inline] |
Access to the third component of the shape.
Definition at line 81 of file Array3DShape.hpp.
References __shape.
Referenced by Structured3DVector< bool >::__buildView(), Structured3DMesh::cellIndex(), SpectralMesh::cellIndex(), Structured3DMesh::find(), SpectralMesh::find(), MultiGrid::MultiGrid(), Structured3DMeshShape::numberOfCells(), Structured3DMeshShape::numberOfEdges(), Structured3DMeshShape::numberOfVertices(), Structured3DVector< bool >::nz(), Structured3DMeshShape::nz(), Structured3DVector< bool >::operator()(), MeshExpressionSpectral::put(), MeshExpressionStructured::put(), SpectralMesh::SpectralMesh(), Structured3DMesh::Structured3DMesh(), and MultiGrid::weightJacobi().
00082 { 00083 return __shape[2]; 00084 }
| const size_t& Array3DShape::operator[] | ( | const size_t & | i | ) | const [inline] |
| size_t Array3DShape::size | ( | ) | const [inline] |
Returns the product of shape components (ie: the number of elements when tensorized).
Definition at line 93 of file Array3DShape.hpp.
References __shape.
Referenced by Structured3DVector< bool >::resize().
| Array3DShape Array3DShape::operator- | ( | size_t | i | ) | const [inline] |
Computes the Array3DShape of an object for which 1 element is removed in each direction. Example:
Definition at line 101 of file Array3DShape.hpp.
References __shape, Array3DShape(), and ASSERT.
00102 { 00103 ASSERT ((i<__shape[0])&&(i<__shape[1])&&(i<__shape[2])); 00104 return Array3DShape(__shape[0]-i, __shape[1]-i, __shape[2]-i); 00105 }

| Array3DShape& Array3DShape::operator= | ( | const Array3DShape & | s | ) | [inline] |
Computes the Array3DShape of an object for which 1 element is removed in each direction. Example:
Definition at line 110 of file Array3DShape.hpp.
References __shape.
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const Array3DShape & | a | |||
| ) | [friend] |
Definition at line 42 of file Array3DShape.hpp.
00043 { 00044 os << a.__shape; 00045 return os; 00046 }
TinyVector<3,size_t> Array3DShape::__shape [private] |
The shape.
Definition at line 39 of file Array3DShape.hpp.
Referenced by Array3DShape(), nx(), ny(), nz(), operator()(), operator-(), operator=(), operator==(), operator[](), and size().
1.5.6