xc
Public Member Functions | List of all members

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

#include <NodePtrArray.h>

Inheritance diagram for XC::NodePtrArray:
Inheritance graph
[legend]
Collaboration diagram for XC::NodePtrArray:
Collaboration graph
[legend]

Public Member Functions

 NodePtrArray (const size_t &f=0, const size_t &c=0)
 Constructor.
 
m_int getTags (void) const
 Returns an array with the identifiers of the nodes.
 
void fix (const SFreedom_Constraint &) const
 Impone desplazamiento nulo en the nodes de this set.
 
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.
 
boost::python::list getPyNodeList (void) const
 Returns a Python list containing the nodes of this array.
 
- Public Member Functions inherited from XC::PtrArrayBase< Node >
virtual bool operator== (const PtrArrayBase< Node > &) const
 Comparison operator.
 
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 any of the pointers are NULL.
 
void dim (const size_t &, const size_t &)
 Matrix dimensions.
 
std::vector< int > getRowObjectsTags (const size_t &)
 Asks each of the objects in the row to execute the code being passed as parameter. More...
 
std::vector< int > getColumnObjectsTags (const size_t &)
 Asks each of the objects in the column to execute the code being passed as parameter. More...
 
std::vector< int > getRowInteriorObjectsTags (const size_t &)
 Asks each of the objects at the interior of the row to execute the code being passed as parameter. More...
 
std::vector< int > getColumnInteriorObjectsTags (const size_t &)
 Asks each of the objects at the interior of the column to execute the code being passed as parameter. More...
 
std::vector< int > getTagsInteriorObjs (void)
 Asks each of the objects at the interior to execute the code being passed as parameter. More...
 
std::vector< int > getTagsObjs (void)
 
- Public Member Functions inherited from TMatrix< Node *, std::vector< Node *> >
 TMatrix (size_t rows=1, size_t n_columns=1)
 Constructor por defecto.
 
 TMatrix (size_t n_rows, size_t n_columns, Node * val)
 Constructor.
 
 TMatrix (const size_t &n_rows, const size_t &n_columns, InputIterator b, InputIterator e)
 Constructor con lista inicialización.
 
 TMatrix (const TMatrix< Node *, std::vector< Node * > > &)
 Constructor de copia.
 
TMatrix< Node *, std::vector< Node * > > & operator= (const TMatrix< Node *, std::vector< Node * > > &m)
 Assignment operator.
 
TMatrix< Node *, std::vector< Node * > > & operator= (const Node * &n)
 
virtual bool operator== (const TMatrix< Node *, std::vector< Node * > > &) const
 Comparison operator.
 
void resize (size_t n_rows, size_t n_columns, Node * val)
 Assignment operator.
 
size_t size (void) const
 
const std::vector< Node * > & getVector (void) const
 
const_reference front () const
 
reference front ()
 
const_reference back () const
 
reference back ()
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator end () const
 
iterator end ()
 
TMatrix< Node *, std::vector< Node * > > & Con (const Node * &t)
 
virtual reference operator() (size_t iRow=1, size_t col=1)
 
virtual const_reference operator() (size_t iRow=1, size_t col=1) const
 
virtual reference at (size_t iRow=1, size_t col=1)
 
virtual const_reference at (size_t iRow=1, size_t col=1) const
 
void assign (size_t row, size_t col, const Node * &value)
 Put the box int the position (f,c) of this matrix.
 
void swap (size_t f1, size_t c1, size_t f2, size_t c2)
 
TMatrix< Node *, std::vector< Node * > > & Trn (void)
 
TMatrix< Node *, std::vector< Node * > > GetTrn (void) const
 
TMatrix< Node *, std::vector< Node * > > getBox (size_t f1, size_t c1, size_t f2, size_t c2) const
 
box_const_ref GetBoxConstRef (size_t f1, size_t c1, size_t f2, size_t c2) const
 
box_const_ref GetBoxConstRef (const RangoIndice &row_range, const RangoIndice &column_range) const
 
box_const_ref GetBoxConstRef (size_t f=1, size_t c=1) const
 
TMatrix< Node *, std::vector< Node * > > getRow (size_t iRow) const
 
row_const_ref getRowConstRef (size_t f, size_t c1, size_t c2) const
 
row_const_ref getRowConstRef (size_t f, const RangoIndice &column_range) const
 
row_const_ref getRowConstRef (size_t f=1, size_t c=1) const
 
const_ref_col getColumnConstRef (size_t c, size_t f1, size_t f2) const
 
const_ref_col getColumnConstRef (const RangoIndice &row_range, size_t c) const
 
const_ref_col getColumnConstRef (size_t c=1, size_t f=1) const
 
TMatrix< Node *, std::vector< Node * > > getColumn (size_t col) const
 
TMatrix< Node *, std::vector< Node * > > GetMenor (size_t f, size_t c) const
 Return the minor of the matrix that corresponds to the row and the column arguments. More...
 
void putBox (size_t f, size_t c, const TMatrix< Node *, std::vector< Node * > > &)
 Put the box int the position (f,c) of this matrix.
 
void putRow (size_t iRow, const TMatrix< Node *, std::vector< Node * > > &f)
 
void PutCol (size_t col, const TMatrix< Node *, std::vector< Node * > > &c)
 
void OrlaCol (const TMatrix< Node *, std::vector< Node * > > &c)
 
void decorateRow (const TMatrix< Node *, std::vector< Node * > > &f)
 
void swapRows (size_t f1, size_t f2)
 
void swapColumns (size_t c1, size_t c2)
 
virtual void Print (std::ostream &) const
 
virtual void Input (std::istream &)
 Lectura desde istream.
 
virtual void Input (const std::string &)
 Lectura desde string.
 
- Public Member Functions inherited from ProtoMatrix
 ProtoMatrix (size_t n_rows=1, size_t n_columns=1)
 
 ProtoMatrix (const ProtoMatrix &other)
 
ProtoMatrixoperator= (const ProtoMatrix &m)
 
virtual bool operator== (const ProtoMatrix &other) const
 
virtual void resize (size_t n_rows, size_t n_columns)
 
virtual size_t Tam (void)
 
size_t getNumberOfRows (void) const
 
size_t getNumberOfColumns (void) const
 
bool CheckIndices (const size_t &f, const size_t &c) const
 
bool interior (const size_t &i, const size_t &j) const
 Return true if the indices correspond to a component.
 
int Cuadrada (void) const
 
bool isRow (void) const
 
bool isColumn (void) const
 
- Public Member Functions inherited from CommandEntity
 CommandEntity (CommandEntity *owr=nullptr)
 Default constructor.
 
CommandEntityOwner (void)
 Return a pointer to the object owner.
 
const CommandEntityOwner (void) const
 Return un puntero al objeto propietario de ESTE.
 
const StandardOutputWrappergetStandardOutputWrapper (void) const
 Return the regular output stream wrapper.
 
StandardOutputWrappergetStandardOutputWrapper (void)
 Return the regular output stream wrapper.
 
const std::string & getLogFileName (void) const
 Returns log file name.
 
void setLogFileName (const std::string &)
 Sets log file name.
 
const std::string & getErrFileName (void) const
 Returns err file name.
 
void setErrFileName (const std::string &)
 Sets error file name.
 
const std::string & getOutputFileName (void) const
 Returns regular output file name.
 
void setOutputFileName (const std::string &)
 Sets regular output file name.
 
boost::python::object evalPy (boost::python::object dict, const std::string &)
 Return the Python object that results from evaluating the argument.
 
boost::python::object execPy (boost::python::object dict, const std::string &)
 Return the Python objects that results from executing the code in the string argument.
 
boost::python::object execFilePy (boost::python::object dict, const std::string &)
 Return the Python object that results from executing the code in the file.
 
- Public Member Functions inherited from EntityWithProperties
 EntityWithProperties (EntityWithProperties *owr=nullptr)
 Default constructor.
 
virtual bool operator== (const EntityWithProperties &) const
 Comparison operator.
 
void clearPyProps (void)
 Clear python properties map.
 
bool hasPyProp (const std::string &)
 Returns true if property exists.
 
boost::python::object getPyProp (const std::string &str)
 Return the Python object with the name being passed as parameter.
 
void setPyProp (std::string str, boost::python::object val)
 Sets/appends a value tho the Python object's dictionary.
 
void copyPropsFrom (const EntityWithProperties &)
 Copy the properties from the argument.
 
boost::python::list getPropNames (void) const
 Return the names of the object properties weightings.
 
const PythonDict & getPropertiesDict (void) const
 Return a std::map container with the properties of the object.
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary containing the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
- Public Member Functions inherited from EntityWithOwner
 EntityWithOwner (EntityWithOwner *owr=nullptr)
 Default constructor.
 
 EntityWithOwner (const EntityWithOwner &)
 Copy constructor.
 
EntityWithOwneroperator= (const EntityWithOwner &)
 Assignment operator.
 
virtual bool operator== (const EntityWithOwner &) const
 Comparison operator.
 
virtual ~EntityWithOwner (void)
 Virtual destructor.
 
virtual std::string getClassName (void) const
 Returns demangled class name.
 
void set_owner (EntityWithOwner *owr)
 Assigns the owner of the object.
 
EntityWithOwnerOwner (void)
 
const EntityWithOwnerOwner (void) const
 

Additional Inherited Members

- Public Types inherited from XC::PtrArrayBase< Node >
typedef TMatrix< Node *, std::vector< Node *> > m_ptr
 
typedef m_ptr::iterator iterator
 
typedef m_ptr::const_iterator const_iterator
 
typedef m_ptr::value_type value_type
 
typedef m_ptr::reference reference
 
typedef m_ptr::const_reference const_reference
 
- Public Types inherited from TMatrix< Node *, std::vector< Node *> >
typedef std::list< Node * > lst_T
 
typedef std::vector< Node * > ::iterator iterator
 
typedef std::vector< Node * > ::const_iterator const_iterator
 
typedef std::vector< Node * > ::value_type value_type
 
typedef std::vector< Node * > ::reference reference
 
typedef std::vector< Node * > ::const_reference const_reference
 
typedef BoxConstRef< TMatrix< Node *, std::vector< Node * > > > box_const_ref
 
typedef RowConstRef< TMatrix< Node *, std::vector< Node * > > > row_const_ref
 
typedef ColumnConstRef< TMatrix< Node *, std::vector< Node * > > > const_ref_col
 
- Public Types inherited from EntityWithProperties
typedef std::map< std::string, boost::python::object > PythonDict
 
- Static Public Member Functions inherited from CommandEntity
static void resetStandardOutput (void)
 Reset the standard output streams to its defaults buffers.
 
- Static Public Member Functions inherited from EntityWithOwner
static int getVerbosityLevel (void)
 Get the value of the verbosity level.
 
static void setVerbosityLevel (const int &)
 Set the value of the verbosity level.
 
- Protected Member Functions inherited from XC::PtrArrayBase< Node >
 PtrArrayBase (const size_t &f=0, const size_t &c=0, const value_type &def_value=nullptr)
 Constructor.
 
- Protected Member Functions inherited from TMatrix< Node *, std::vector< Node *> >
virtual size_t Indice (const size_t &iRow, const size_t &iCol) const
 
bool equal_to (const TMatrix< Node *, std::vector< Node * > > &m2) const
 
 TMatrix (const TMatrix< Node *, std::vector< Node * > > &orig, size_t f1, size_t c1, size_t f2, size_t c2)
 
- Protected Member Functions inherited from ProtoMatrix
void PutDim (size_t nRows, size_t nCols)
 
void inic (size_t n_rows, size_t n_columns)
 
virtual bool check_range (const size_t &iRow, const size_t &col) const
 
void check_put_box (size_t f, size_t c, const ProtoMatrix &box) const
 
void check_get_box (size_t f1, size_t c1, size_t f2, size_t c2) const
 
void check_sto_sum (const ProtoMatrix &m) const
 
void check_sto_dif (const ProtoMatrix &m) const
 
void check_traza (void) const
 
- Protected Member Functions inherited from CommandEntity
template<class T >
void string_to (T &, const std::string &) const
 
- Static Protected Member Functions inherited from CommandEntity
static CommandEntityentcmd_cast (boost::any &data)
 
- Protected Attributes inherited from ProtoMatrix
size_t n_rows
 
size_t n_columns
 
- Static Protected Attributes inherited from EntityWithOwner
static int verbosity = 1
 Object that owns THIS ONE. More...
 

Detailed Description

Two-dimensional array of pointers to nodes.

Member Function Documentation

◆ findNode() [1/2]

XC::Node * XC::NodePtrArray::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::NodePtrArray::findNode ( const int &  tag) const

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


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