xc
|
Matrix of pointers to elements. More...
#include <ElemPtrArray.h>
Public Member Functions | |
ElemPtrArray (const size_t &f=0, const size_t &c=0) | |
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 node closest to the point being passed as parameter. | |
const Element * | getNearestElement (const Pos3d &p) const |
Returns the node closest to the point being passed as parameter. | |
boost::python::list | getPyElementList (void) const |
Returns a Python list containing the elements of this array. | |
std::set< const Element * > | getConnectedElements (const Node *) const |
Return the elements connected to the node being passed as parameter. | |
std::set< Element * > | getConnectedElements (const Node *) |
Return the elements connected to the node being passed as parameter. | |
boost::python::list | getConnectedElementsPy (const Node *) |
Return the elements connected to the node being passed as parameter. | |
Public Member Functions inherited from XC::PtrArrayBase< Element > | |
virtual bool | operator== (const PtrArrayBase< Element > &) 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< Element *, std::vector< Element *> > | |
TMatrix (size_t rows=1, size_t n_columns=1) | |
Constructor por defecto. | |
TMatrix (size_t n_rows, size_t n_columns, Element * 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< Element *, std::vector< Element * > > &) | |
Constructor de copia. | |
TMatrix< Element *, std::vector< Element * > > & | operator= (const TMatrix< Element *, std::vector< Element * > > &m) |
Assignment operator. | |
TMatrix< Element *, std::vector< Element * > > & | operator= (const Element * &n) |
virtual bool | operator== (const TMatrix< Element *, std::vector< Element * > > &) const |
Comparison operator. | |
void | resize (size_t n_rows, size_t n_columns, Element * val) |
Assignment operator. | |
size_t | size (void) const |
const std::vector< Element * > & | 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< Element *, std::vector< Element * > > & | Con (const Element * &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 Element * &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< Element *, std::vector< Element * > > & | Trn (void) |
TMatrix< Element *, std::vector< Element * > > | GetTrn (void) const |
TMatrix< Element *, std::vector< Element * > > | 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< Element *, std::vector< Element * > > | 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< Element *, std::vector< Element * > > | getColumn (size_t col) const |
TMatrix< Element *, std::vector< Element * > > | 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< Element *, std::vector< Element * > > &) |
Put the box int the position (f,c) of this matrix. | |
void | putRow (size_t iRow, const TMatrix< Element *, std::vector< Element * > > &f) |
void | PutCol (size_t col, const TMatrix< Element *, std::vector< Element * > > &c) |
void | OrlaCol (const TMatrix< Element *, std::vector< Element * > > &c) |
void | decorateRow (const TMatrix< Element *, std::vector< Element * > > &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) | |
ProtoMatrix & | operator= (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. | |
CommandEntity * | Owner (void) |
Return a pointer to the object owner. | |
const CommandEntity * | Owner (void) const |
Return un puntero al objeto propietario de ESTE. | |
const StandardOutputWrapper & | getStandardOutputWrapper (void) const |
Return the regular output stream wrapper. | |
StandardOutputWrapper & | getStandardOutputWrapper (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. | |
EntityWithOwner & | operator= (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. | |
EntityWithOwner * | Owner (void) |
const EntityWithOwner * | Owner (void) const |
Additional Inherited Members | |
Public Types inherited from XC::PtrArrayBase< Element > | |
typedef TMatrix< Element *, std::vector< Element *> > | 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< Element *, std::vector< Element *> > | |
typedef std::list< Element * > | lst_T |
typedef std::vector< Element * > ::iterator | iterator |
typedef std::vector< Element * > ::const_iterator | const_iterator |
typedef std::vector< Element * > ::value_type | value_type |
typedef std::vector< Element * > ::reference | reference |
typedef std::vector< Element * > ::const_reference | const_reference |
typedef BoxConstRef< TMatrix< Element *, std::vector< Element * > > > | box_const_ref |
typedef RowConstRef< TMatrix< Element *, std::vector< Element * > > > | row_const_ref |
typedef ColumnConstRef< TMatrix< Element *, std::vector< Element * > > > | 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< Element > | |
PtrArrayBase (const size_t &f=0, const size_t &c=0, const value_type &def_value=nullptr) | |
Constructor. | |
Protected Member Functions inherited from TMatrix< Element *, std::vector< Element *> > | |
virtual size_t | Indice (const size_t &iRow, const size_t &iCol) const |
bool | equal_to (const TMatrix< Element *, std::vector< Element * > > &m2) const |
TMatrix (const TMatrix< Element *, std::vector< Element * > > &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 CommandEntity * | entcmd_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... | |
Matrix of pointers to elements.
XC::Element * XC::ElemPtrArray::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::ElemPtrArray::findElement | ( | const int & | tag | ) | const |
Returns (if it exists) a pointer to the element identified by the tag being passed as parameter.