xc
Public Member Functions | Protected Member Functions | Friends | List of all members

Three-dimenstional array of point pointers. More...

#include <PntPtrArray3d.h>

Inheritance diagram for XC::PntPtrArray3d:
XC::PtrArray3dBase< PntPtrArray >

Public Member Functions

PntfindPoint (const int &tag)
 Returns (if it exists) a pointer to the point identified by the tag being passed as parameter. More...
 
const PntfindPoint (const int &tag) const
 Returns (if it exists) a pointer to the point identified by the tag being passed as parameter. More...
 
PntgetNearestPnt (const Pos3d &p)
 Return the point closest to the one being passed as parameter.
 
const PntgetNearestPnt (const Pos3d &p) const
 Return the point closest to the one being passed as parameter.
 
const MultiBlockTopologygetMultiBlockTopology (void) const
 Returns a pointer to the MultiBlockTopology object.
 
MultiBlockTopologygetMultiBlockTopology (void)
 Returns a pointer to the MultiBlockTopology object.
 
std::deque< size_t > copyPoints (const Array3dRange &, const std::vector< size_t > &, const Vector3d &)
 Copy the points from the range being passed as parameter, and places the at the positions of the matrix that result form adding to the (i,j,k) indexes of the point the values of the offsetIndices vector; i.e. More...
 
PntPtrArray3d getPointsOnRange (const Array3dRange &)
 Return the points del rango being passed as parameter.
 
PntgetPoint (const VIndices &i)
 Return the points which indices are being passed as parameter.
 
PntPtrArray3d getPoints (const Indices3dArray &)
 Return the points which indices are being passed as parameter.
 
PntPtrArray getPoints (const IndicesMatrix &)
 Return the points which indices are being passed as parameters.
 
PntPtrArray3d getCellPoints (const size_t &, const size_t &, const size_t &, const Indices3dArray &)
 Return the cell builded by the points obtained from the positions of the tritrix that result for adding to the indexex (i,j,k) of each point the values of the vector offsetIndices i. More...
 
PntPtrArray getCellPoints (const size_t &, const size_t &, const IndicesMatrix &)
 Return the cell builded by the points obtained from the positions of the tritrix that result for adding to the indexes (i,j) of each point the values of the vector offsetIndices i. More...
 
Pos3d getCentroide (void) const
 Return the framework centroid.
 
void setPnt (const size_t &, const size_t &, const size_t &, const int &)
 
PntgetPnt (const size_t &, const size_t &, const size_t &)
 
void Print (std::ostream &os) const
 
- Public Member Functions inherited from XC::PtrArray3dBase< PntPtrArray >
 PtrArray3dBase (const size_t &n_layers=0)
 Default constructor.
 
 PtrArray3dBase (const size_t &n_layers, const PntPtrArray &)
 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 PntPtrArrayoperator() (const size_t &layer) const
 Return the i-th layer.
 
PntPtrArrayoperator() (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< PntPtrArray > &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.
 

Protected Member Functions

 PntPtrArray3d (const size_t n_layers=0)
 Default constructor.
 
 PntPtrArray3d (const size_t, const size_t, const size_t)
 Constructor.
 
- Protected Member Functions inherited from XC::PtrArray3dBase< PntPtrArray >
void set_owner_matrices (void)
 Sets the owner for the matrices.
 

Friends

class Framework3d
 

Additional Inherited Members

- Public Types inherited from XC::PtrArray3dBase< PntPtrArray >
typedef PntPtrArray ::value_type value_type
 
typedef PntPtrArray ::reference reference
 
typedef PntPtrArray ::const_reference const_reference
 
typedef std::vector< PntPtrArray >::iterator iterator
 
typedef std::vector< PntPtrArray >::const_iterator const_iterator
 
typedef Array3dBoxConstRef< PtrArray3dBase< PntPtrArray > > box_const_ref
 
typedef ConstantILayerConstRef< PtrArray3dBase< PntPtrArray > > constant_i_layer_const_ref
 
typedef ConstantJLayerConstRef< PtrArray3dBase< PntPtrArray > > constant_j_layer_const_ref
 
typedef ConstantKLayerConstRef< PtrArray3dBase< PntPtrArray > > constant_k_layer_const_ref
 
typedef IRowConstRef< PtrArray3dBase< PntPtrArray > > const_ref_i_row
 
typedef JRowConstRef< PtrArray3dBase< PntPtrArray > > const_ref_j_row
 
typedef KRowConstRef< PtrArray3dBase< PntPtrArray > > const_ref_k_row
 
typedef Array3dBoxVarRef< PtrArray3dBase< PntPtrArray > > box_var_ref
 
typedef ConstantILayerVarRef< PtrArray3dBase< PntPtrArray > > constant_i_layer_variable_ref
 
typedef ConstantJLayerVarRef< PtrArray3dBase< PntPtrArray > > constant_j_layer_variable_ref
 
typedef ConstantKLayerVarRef< PtrArray3dBase< PntPtrArray > > constant_k_layer_variable_ref
 
typedef IRowVarRef< PtrArray3dBase< PntPtrArray > > var_ref_i_row
 
typedef JRowVarRef< PtrArray3dBase< PntPtrArray > > var_ref_j_row
 
typedef KRowVarRef< PtrArray3dBase< PntPtrArray > > var_ref_k_row
 

Detailed Description

Three-dimenstional array of point pointers.

Member Function Documentation

§ copyPoints()

std::deque< size_t > XC::PntPtrArray3d::copyPoints ( const Array3dRange &  rango,
const std::vector< size_t > &  offsetIndices,
const Vector3d &  vectorOffset = Vector3d() 
)

Copy the points from the range being passed as parameter, and places the at the positions of the matrix that result form adding to the (i,j,k) indexes of the point the values of the offsetIndices vector; i.e.

: (i,j,k)->(i+offsetIndices[0],j+offsetIndices[1],k+offsetIndices[2]) and moving the by the vectorOffset vector.

§ findPoint() [1/2]

XC::Pnt * XC::PntPtrArray3d::findPoint ( const int &  tag)

Returns (if it exists) a pointer to the point identified by the tag being passed as parameter.

§ findPoint() [2/2]

const XC::Pnt * XC::PntPtrArray3d::findPoint ( const int &  tag) const

Returns (if it exists) a pointer to the point identified by the tag being passed as parameter.

§ getCellPoints() [1/2]

XC::PntPtrArray3d XC::PntPtrArray3d::getCellPoints ( const size_t &  i,
const size_t &  j,
const size_t &  k,
const Indices3dArray &  offsetIndices 
)

Return the cell builded by the points obtained from the positions of the tritrix that result for adding to the indexex (i,j,k) of each point the values of the vector offsetIndices i.

e.: Point (i,j,k): (i+offsetIndices(i,j,k)[0],j+offsetIndices(i,j,k)[1],k+offsetIndices(i,j,k)[2])

§ getCellPoints() [2/2]

XC::PntPtrArray XC::PntPtrArray3d::getCellPoints ( const size_t &  i,
const size_t &  j,
const IndicesMatrix &  offsetIndices 
)

Return the cell builded by the points obtained from the positions of the tritrix that result for adding to the indexes (i,j) of each point the values of the vector offsetIndices i.

e.: Point (i,j): (i+offsetIndices(i,j)[0],j+offsetIndices(i,j)[1])


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