xc
Public Member Functions | List of all members

Three-dimensional array of pointers to nodes. More...

#include <NodePtrArray3d.h>

Inheritance diagram for XC::NodePtrArray3d:
XC::PtrArray3dBase< NodePtrArray >

Public Member Functions

 NodePtrArray3d (const size_t n_layers=0)
 Default constructor.
 
 NodePtrArray3d (const size_t, const size_t, const size_t)
 Constructor.
 
NodefindNode (const int &tag)
 Returns (if it exists) a pointer to the node which tag is being passed as parameter. More...
 
const NodefindNode (const int &tag) const
 Returns (if it exists) a pointer to the node which tag is being passed as parameter. More...
 
NodegetNearestNode (const Pos3d &p)
 Returns the node closest to the point being passed as parameter.
 
const NodegetNearestNode (const Pos3d &p) const
 Returns the node closest to the point being passed as parameter.
 
ID getNodeIndices (const Node *) const
 Returns the indexes of the node identified by the pointer being passed as parameter. More...
 
template<class F >
std::deque< double > RowSimpsonIntegration (const F &, const std::string &, const size_t &, const ExprAlgebra &, const size_t &) const
 
Vector IRowSimpsonIntegration (const size_t &, const size_t &, const ExprAlgebra &, const size_t &n=10) const
 
Vector JRowSimpsonIntegration (const size_t &, const size_t &, const ExprAlgebra &, const size_t &n=10) const
 
Vector KRowSimpsonIntegration (const size_t &, const size_t &, const ExprAlgebra &, const size_t &n=10) const
 
void fix (const SFreedom_Constraint &) const
 Impone desplazamiento nulo en the nodes de this set.
 
std::vector< int > getTags (void) const
 
void Print (std::ostream &os) const
 
- Public Member Functions inherited from XC::PtrArray3dBase< NodePtrArray >
 PtrArray3dBase (const size_t &n_layers=0)
 Default constructor.
 
 PtrArray3dBase (const size_t &n_layers, const NodePtrArray &)
 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 NodePtrArrayoperator() (const size_t &layer) const
 Return the i-th layer.
 
NodePtrArrayoperator() (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< NodePtrArray > &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

- Public Types inherited from XC::PtrArray3dBase< NodePtrArray >
typedef NodePtrArray ::value_type value_type
 
typedef NodePtrArray ::reference reference
 
typedef NodePtrArray ::const_reference const_reference
 
typedef std::vector< NodePtrArray >::iterator iterator
 
typedef std::vector< NodePtrArray >::const_iterator const_iterator
 
typedef Array3dBoxConstRef< PtrArray3dBase< NodePtrArray > > box_const_ref
 
typedef ConstantILayerConstRef< PtrArray3dBase< NodePtrArray > > constant_i_layer_const_ref
 
typedef ConstantJLayerConstRef< PtrArray3dBase< NodePtrArray > > constant_j_layer_const_ref
 
typedef ConstantKLayerConstRef< PtrArray3dBase< NodePtrArray > > constant_k_layer_const_ref
 
typedef IRowConstRef< PtrArray3dBase< NodePtrArray > > const_ref_i_row
 
typedef JRowConstRef< PtrArray3dBase< NodePtrArray > > const_ref_j_row
 
typedef KRowConstRef< PtrArray3dBase< NodePtrArray > > const_ref_k_row
 
typedef Array3dBoxVarRef< PtrArray3dBase< NodePtrArray > > box_var_ref
 
typedef ConstantILayerVarRef< PtrArray3dBase< NodePtrArray > > constant_i_layer_variable_ref
 
typedef ConstantJLayerVarRef< PtrArray3dBase< NodePtrArray > > constant_j_layer_variable_ref
 
typedef ConstantKLayerVarRef< PtrArray3dBase< NodePtrArray > > constant_k_layer_variable_ref
 
typedef IRowVarRef< PtrArray3dBase< NodePtrArray > > var_ref_i_row
 
typedef JRowVarRef< PtrArray3dBase< NodePtrArray > > var_ref_j_row
 
typedef KRowVarRef< PtrArray3dBase< NodePtrArray > > var_ref_k_row
 
- Protected Member Functions inherited from XC::PtrArray3dBase< NodePtrArray >
void set_owner_matrices (void)
 Sets the owner for the matrices.
 

Detailed Description

Three-dimensional array of pointers to nodes.

Member Function Documentation

§ findNode() [1/2]

XC::Node * XC::NodePtrArray3d::findNode ( const int &  tag)

Returns (if it exists) a pointer to the node which tag is being passed as parameter.

§ findNode() [2/2]

const XC::Node * XC::NodePtrArray3d::findNode ( const int &  tag) const

Returns (if it exists) a pointer to the node which tag is being passed as parameter.

§ getNodeIndices()

XC::ID XC::NodePtrArray3d::getNodeIndices ( const Node n) const

Returns the indexes of the node identified by the pointer being passed as parameter.


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