xc
|
Three-dimensional array of pointers to elements. More...
#include <ElemPtrArray3d.h>
Public Member Functions | |
ElemPtrArray3d (const size_t n_layers=0, const ElemPtrArray &m=ElemPtrArray()) | |
Default constructor. | |
ElemPtrArray3d (const size_t, const size_t, const size_t) | |
Constructor. | |
Element * | findElement (const int &) |
Returns (if it exists) a pointer to the element identified by the tag being passed as parameter. More... | |
const Element * | findElement (const int &) const |
Returns (if it exists) a pointer to the element identified by the tag being passed as parameter. More... | |
Element * | getNearestElement (const Pos3d &p) |
Returns the element closest to the point being passed as parameter. | |
const Element * | getNearestElement (const Pos3d &p) const |
Returns the element closest to the point being passed as parameter. | |
![]() | |
PtrArray3dBase (const size_t &n_layers=0) | |
Default constructor. | |
PtrArray3dBase (const size_t &n_layers, const ElemPtrArray &) | |
Constructor. | |
PtrArray3dBase (const size_t &, const size_t &, const size_t &) | |
Constructor. | |
bool | check_range (const size_t &, const size_t &, const size_t &) const |
void | resize (const size_t &) |
Resize the array. | |
void | resize (const size_t &, const size_t &, const size_t &, const value_type &v=value_type()) |
Resize the array. | |
size_t | getNumberOfLayers (void) const |
size_t | getNumberOfRows (void) const |
size_t | getNumberOfColumns (void) const |
size_t | GetDim (void) const |
bool | isIRow (void) const |
Returns true if only index I varies. | |
bool | isJRow (void) const |
Returns true if only index J varies. | |
bool | isKRow (void) const |
Returns true if only index K varies. | |
bool | isIConstantLayer (void) const |
Returns true if the indexes that vary are los J y K. | |
bool | isJConstantLayer (void) const |
Returns true if the indexes that vary are los I y K. | |
bool | isKConstantLayer (void) const |
Returns true if the indexes that vary are los I y J. | |
size_t | NumPtrs (void) const |
Return the number of elements of the array. | |
bool | Null (void) const |
Returns true if it's empty or the pointers are null. | |
bool | HasNull (void) const |
Returns true if it's empty or some of the pointers are null. | |
void | clearAll (void) |
Clears all. | |
void | dim (const size_t &, const size_t &, const size_t &) |
Matrix dimensions. | |
const ElemPtrArray & | operator() (const size_t &layer) const |
Return the i-th layer. | |
ElemPtrArray & | operator() (const size_t &layer) |
Return the i-th layer. | |
const_reference | operator() (const size_t &i, const size_t &j, const size_t &k) const |
reference | operator() (const size_t &i, const size_t &j, const size_t &k) |
reference | getAtI (const size_t &i) |
const_reference | getAtI (const size_t &) const |
reference | getAtIJ (const size_t &, const size_t &) |
const_reference | getAtIJ (const size_t &, const size_t &) const |
value_type | getAtIJK (const size_t &, const size_t &, const size_t &) |
box_const_ref | getBoxConstRef (size_t layer=1, size_t f=1, size_t c=1) const |
box_const_ref | getBoxConstRef (const Array3dRange &rango) const |
constant_i_layer_const_ref | getConstantILayerConstRef (size_t layer=1, size_t f=1, size_t c=1) const |
constant_i_layer_const_ref | getConstantILayerConstRef (size_t layer, const RangoIndice &, const RangoIndice &) const |
constant_j_layer_const_ref | getConstantJLayerConstRef (size_t f=1, size_t layer=1, size_t c=1) const |
constant_j_layer_const_ref | getConstantJLayerConstRef (const RangoIndice &, const size_t &f, const RangoIndice &) const |
constant_k_layer_const_ref | getConstantKLayerConstRef (size_t c=1, size_t layer=1, size_t f=1) const |
constant_k_layer_const_ref | getConstantKLayerConstRef (const RangoIndice &, const RangoIndice &, const size_t &) const |
const_ref_i_row | getIRowConstRef (size_t f=1, size_t c=1) const |
const_ref_i_row | getIRowConstRef (const RangoIndice &, const size_t &f, const size_t &c) const |
const_ref_j_row | getJRowConstRef (size_t layer=1, size_t c=1) const |
const_ref_j_row | getJRowConstRef (const size_t &layer, const RangoIndice &, const size_t &c) const |
const_ref_k_row | getKRowConstRef (size_t layer=1, size_t f=1) const |
const_ref_k_row | getKRowConstRef (const size_t &layer, const size_t &f, const RangoIndice &) const |
box_var_ref | getBoxVarRef (size_t layer=1, size_t f=1, size_t c=1) |
box_var_ref | getBoxVarRef (const Array3dRange &) |
constant_i_layer_variable_ref | getConstantILayerVarRef (size_t layer=1, size_t f=1, size_t c=1) |
constant_i_layer_variable_ref | getConstantILayerVarRef (const size_t &layer, const RangoIndice &, const RangoIndice &) |
constant_j_layer_variable_ref | getConstantJLayerVarRef (size_t f=1, size_t layer=1, size_t c=1) |
constant_j_layer_variable_ref | getConstantJLayerVarRef (const RangoIndice &, const size_t &f, const RangoIndice &) |
constant_k_layer_variable_ref | getConstantKLayerVarRef (size_t c=1, size_t layer=1, size_t f=1) |
constant_k_layer_variable_ref | getConstantKLayerVarRef (const RangoIndice &, const RangoIndice &, const size_t &c) |
var_ref_i_row | getVarRefIRow (size_t f=1, size_t c=1) |
var_ref_i_row | getVarRefIRow (const RangoIndice &, const size_t &f, const size_t &c) |
var_ref_j_row | getVarRefJRow (size_t layer=1, size_t c=1) |
var_ref_j_row | getVarRefJRow (const size_t &layer, const RangoIndice &, const size_t &c) |
var_ref_k_row | getVarRefKRow (size_t layer=1, size_t f=1) |
var_ref_k_row | getVarRefKRow (const size_t &layer, const size_t &f, const RangoIndice &) |
void | putBox (size_t layer_offset, size_t row_offset, size_t offset_col, const PtrArray3dBase< ElemPtrArray > &otra) |
Put in the array the array argument. | |
std::vector< int > | getLayerObjectsTags (const size_t &) |
Return the identifiers of the objects in the layer. | |
std::vector< int > | getRowObjectsTags (const size_t &, const size_t &) |
Return the identifiers of the objects in the row. | |
std::vector< int > | getRowsObjectsTags (const size_t &) |
Return the identifiers of the objects in the f-th rows. | |
std::vector< int > | getColumnObjectsTags (const size_t &, const size_t &) |
Return the identifiers of the objects in the column. | |
std::vector< int > | getColumnsObjectsTags (const size_t &) |
Return the identifiers of the objects in the c-th columns. | |
std::vector< int > | getLayerInteriorObjectsTags (const size_t &) |
Return the identifiers of the objects in the layer interior. | |
std::vector< int > | getRowInteriorObjectsTags (const size_t &, const size_t &) |
Return the identifiers of the objects in the row interior. | |
std::vector< int > | getRowsInteriorObjectsTags (const size_t &) |
Return the identifiers of the objects in the c-th rows interior. | |
std::vector< int > | getColumnInteriorObjectsTags (const size_t &, const size_t &) |
Return the identifiers of the objects in the c-th column interior. | |
std::vector< int > | getColumnsInteriorObjectsTags (const size_t &) |
Return the identifiers of the objects in the c-th columns interior. | |
std::vector< int > | getTagsInteriorObjs (void) |
Return the tabs of the inerior elements. | |
Additional Inherited Members | |
![]() | |
typedef ElemPtrArray ::value_type | value_type |
typedef ElemPtrArray ::reference | reference |
typedef ElemPtrArray ::const_reference | const_reference |
typedef std::vector< ElemPtrArray >::iterator | iterator |
typedef std::vector< ElemPtrArray >::const_iterator | const_iterator |
typedef Array3dBoxConstRef< PtrArray3dBase< ElemPtrArray > > | box_const_ref |
typedef ConstantILayerConstRef< PtrArray3dBase< ElemPtrArray > > | constant_i_layer_const_ref |
typedef ConstantJLayerConstRef< PtrArray3dBase< ElemPtrArray > > | constant_j_layer_const_ref |
typedef ConstantKLayerConstRef< PtrArray3dBase< ElemPtrArray > > | constant_k_layer_const_ref |
typedef IRowConstRef< PtrArray3dBase< ElemPtrArray > > | const_ref_i_row |
typedef JRowConstRef< PtrArray3dBase< ElemPtrArray > > | const_ref_j_row |
typedef KRowConstRef< PtrArray3dBase< ElemPtrArray > > | const_ref_k_row |
typedef Array3dBoxVarRef< PtrArray3dBase< ElemPtrArray > > | box_var_ref |
typedef ConstantILayerVarRef< PtrArray3dBase< ElemPtrArray > > | constant_i_layer_variable_ref |
typedef ConstantJLayerVarRef< PtrArray3dBase< ElemPtrArray > > | constant_j_layer_variable_ref |
typedef ConstantKLayerVarRef< PtrArray3dBase< ElemPtrArray > > | constant_k_layer_variable_ref |
typedef IRowVarRef< PtrArray3dBase< ElemPtrArray > > | var_ref_i_row |
typedef JRowVarRef< PtrArray3dBase< ElemPtrArray > > | var_ref_j_row |
typedef KRowVarRef< PtrArray3dBase< ElemPtrArray > > | var_ref_k_row |
![]() | |
void | set_owner_matrices (void) |
Sets the owner for the matrices. | |
Three-dimensional array of pointers to elements.
XC::Element * XC::ElemPtrArray3d::findElement | ( | const int & | tag | ) |
Returns (if it exists) a pointer to the element identified by the tag being passed as parameter.
const XC::Element * XC::ElemPtrArray3d::findElement | ( | const int & | tag | ) | const |
Returns (if it exists) a pointer to the element identified by the tag being passed as parameter.