An Attribute object is a data member of a window. More...
#include <Attribute.h>
Public Types | |
enum | Copy_dir { COPY_IN, COPY_OUT } |
typedef unsigned char | Shorter_size |
One byte unsighed int. More... | |
typedef unsigned int | Size |
Unsighed int. More... | |
Public Member Functions | |
void | set_size (int nitems, int ngitems=0) throw (COM_exception) |
Set the size of items and ghost items. More... | |
void * | allocate (int strd, int cap, bool force) throw (COM_exception) |
Allocate memory for the attribute. More... | |
int | deallocate () throw (COM_exception) |
Deallocate memory if it was allocated by allocate(). More... | |
void | copy_array (void *buf, int strd, int nitem, int offset=0, int direction=COPY_IN) throw (COM_exception) |
void | append_array (const void *from, int strd, int nitem) throw (COM_exception) |
Identity | |
const std::string & | name () const |
Obtain the name of the attribute. More... | |
std::string | fullname () const |
Obtain the full name of the attribute including window name suitable for printing out error messages. More... | |
int | id () const |
Obtain the id (or index) of the attribute. More... | |
Attribute * | parent () |
Parent attribute used by this object. More... | |
const Attribute * | parent () const |
Attribute * | root () |
Root of use-inheritance. More... | |
const Attribute * | root () const |
Physical address | |
const void * | pointer () const |
Obtain a constant pointer to the physical address. More... | |
void * | pointer () throw (COM_exception) |
Obtain a modifiable pointer to the physical address. More... | |
const void * | get_addr (int i, int j=0) const throw (COM_exception) |
Obtain the address of the jth component of the ith item, where 0<=i<size_of_items. More... | |
void * | get_addr (int i, int j=0) throw (COM_exception) |
Protected Types | |
enum | { STATUS_NOT_INITIALIZED =0, STATUS_SET =1, STATUS_SET_CONST =2, STATUS_USE =3, STATUS_ALLOCATED =4 } |
Protected Member Functions | |
void | set_pointer (void *p, int strd, int cap, int offset, bool is_const) throw (COM_exception) |
Set the physical address of the attribute values. More... | |
void | inherit (Attribute *a, bool clone, bool withghost, int depth=0) throw (COM_exception) |
Inherit from parent. If depth>0, then the procedure is for the subcomponents. More... | |
Protected Attributes | |
Pane * | _pane |
Pointer to its owner pane. More... | |
Attribute * | _parent |
Parent attribute being used. More... | |
std::string | _name |
Name of the attribute. More... | |
int | _id |
Id field data. More... | |
Shorter_size | _loc |
Location. More... | |
int | _ncomp |
Number of components. More... | |
COM_Type | _type |
Base data type of the attribute. More... | |
std::string | _unit |
Unit of the attribute. More... | |
int | _nitems |
Size of total items. Default value is -1. More... | |
int | _ngitems |
Size of ghost items. More... | |
int | _gap |
Gap between the IDs of real and ghost items. More... | |
Shorter_size | _status |
Indicating whether it has been initialized. More... | |
void * | _ptr |
Physical address of the attribute. More... | |
int | _strd |
Stride. More... | |
int | _nbytes_strd |
Number of bytes of the stride. More... | |
int | _cap |
Capacity. More... | |
Static Protected Attributes | |
Keywords | |
static const char * | _keywords [COM_NUM_KEYWORDS] |
List of keywords. More... | |
static const char | _keylocs [COM_NUM_KEYWORDS] |
Default locations. More... | |
static const COM_Type | _keytypes [COM_NUM_KEYWORDS] |
Default data types. More... | |
static const int | _keysizes [COM_NUM_KEYWORDS] |
Default sizes. More... | |
Private Member Functions | |
Attribute (const Attribute &a) | |
Disable copy constructor and copy operator. More... | |
Attribute & | operator= (const Attribute &) |
Constructors and destructors | |
Attribute () | |
Default constructor. More... | |
Attribute (Pane *pane, const std::string &name, int id, Shorter_size loc, int type, const int ncomp, const std::string &unit) | |
Create an attribute with name n in window w. More... | |
Attribute (Pane *pane, Attribute *parent, const std::string &name, int id) | |
Inherit an attribute from another. More... | |
~Attribute () | |
Destructors. More... | |
Attribute (Pane *pane, int i) | |
Constructor for keywords. The default nitems for keywords is 0. More... | |
Access methods | |
const Pane * | pane () const |
Obtain a constant pointer to the owner pane of the attribute. More... | |
Pane * | pane () |
Obtain a modifiable pointer to the owner pane of the attribute. More... | |
const Window * | window () const |
Obtain a constant pointer to the parent window of the attribute. More... | |
Window * | window () |
Obtain a modifiable pointer to the parent window of the attribute. More... | |
Shorter_size | location () const |
Obtain the location of the attribute. More... | |
bool | is_windowed () const |
Checks whether the attribute is associated with the window. More... | |
bool | is_panel () const |
Checks whether the attribute is associated with a pane. More... | |
bool | is_elemental () const |
Checks whether the attribute is associated with an element. More... | |
bool | is_nodal () const |
Checks whether the attribute is associated with a node. More... | |
COM_Type | data_type () const |
Obtain the data type of each component of the attribute. More... | |
const std::string & | unit () const |
Obtain the unit of the attribute. More... | |
int | size_of_components () const |
Obtain the number of components in the attribute. More... | |
int | size_of_items () const |
Obtain the number of items in the attribute. More... | |
int | maxsize_of_items () const |
Obtain the maximum allowed number of items in the attribute. More... | |
int | size_of_ghost_items () const |
Obtain the number of ghost items in the attribute. More... | |
int | maxsize_of_ghost_items () const |
Obtain the maximum allowed number of items in the attribute. More... | |
int | size_of_real_items () const |
Obtain the number of real items in the attribute. More... | |
int | maxsize_of_real_items () const |
Obtain the maximum allowed number of real items in the attribute. More... | |
bool | empty () const |
Check whether the number of items of the attribute is zero. More... | |
int | capacity () const |
Obtain the capacity of the array. More... | |
int | stride () const |
Obtain the stride of the attribute in base datatype. More... | |
int | stride_in_bytes () const |
Obtain the stride of the attribute in bytes. More... | |
int | status () const |
Obtain the status of the attribute. More... | |
bool | initialized () const |
Returns whether the array for the attribute has been set or allocated. More... | |
bool | size_set () const |
Returns whether the size for the attribute has been set. More... | |
bool | allocated () const |
Returns whether the array for the attribute has been set or allocated. More... | |
bool | is_const () const |
Returns whether the array is set to be read-only. More... | |
bool | is_staggered () const |
Check how the attribute values are organized. More... | |
static int | get_sizeof (COM_Type type, int count=1) |
static bool | compatible_types (COM_Type t1, COM_Type t2) |
static bool | is_digit (char c) |
An Attribute object is a data member of a window.
It can be associated with a window, a pane, nodes, or elements. An attribute can be a vector of length size_of_items() with size_of_components() components.
Definition at line 51 of file Attribute.h.
typedef unsigned char Shorter_size |
One byte unsighed int.
Definition at line 53 of file Attribute.h.
typedef unsigned int Size |
Unsighed int.
Definition at line 54 of file Attribute.h.
|
protected |
Enumerator | |
---|---|
STATUS_NOT_INITIALIZED | |
STATUS_SET | |
STATUS_SET_CONST | |
STATUS_USE | |
STATUS_ALLOCATED |
Definition at line 316 of file Attribute.h.
enum Copy_dir |
Enumerator | |
---|---|
COPY_IN | |
COPY_OUT |
Definition at line 280 of file Attribute.h.
|
inline |
Default constructor.
Definition at line 60 of file Attribute.h.
Referenced by Attribute().
Constructor for keywords. The default nitems for keywords is 0.
Definition at line 67 of file Attribute.h.
|
inline |
Create an attribute with name n in window w.
pane | pointer to its owner pane object. |
name | attribute name. |
id | attribute index. |
loc | location ('w', 'p', 'n', or 'e'). |
type | base data type. |
ncomp | number of components. |
unit | unit of the attribute. |
Definition at line 83 of file Attribute.h.
Inherit an attribute from another.
pane | pointer to its owner pane object. |
parent | parent attribute (for supporting inheritance). |
name | attribute name. |
id | attribute index. |
Definition at line 63 of file Attribute.C.
References _cap, _loc, _name, _nbytes_strd, _ncomp, _ngitems, _nitems, _parent, _status, _strd, _type, _unit, append_frame, Attribute(), COM_ERR_ATTRIBUTE_NOTEXIST, fullname(), name(), root(), and STATUS_NOT_INITIALIZED.
|
inline |
Destructors.
Definition at line 101 of file Attribute.h.
References _cap, _id, _loc, _nbytes_strd, _ncomp, _ngitems, _nitems, _pane, _parent, _ptr, _status, _strd, _type, deallocate(), and STATUS_NOT_INITIALIZED.
void * allocate | ( | int | strd, |
int | cap, | ||
bool | force | ||
) | |||
throw | ( | COM_exception | |
) |
Allocate memory for the attribute.
The attribute must be a root if the attribute is to be allocated. If from is not NULL, copy its value to the newly allocated array.
Definition at line 345 of file Attribute.C.
References _cap, _ptr, _status, _strd, append_frame, CATCHBADALLOC_APPEND, CATCHEXP_APPEND, COM_ERR_INVALID_CAPACITY, COM_ERR_INVALID_STRIDE, COM_ERR_OUT_OF_MEMORY, COM_ERR_RESIZE, copy_array(), get_sizeof(), i, max(), min(), and set_pointer().
Referenced by Connectivity::allocate(), inherit(), Pane::reinit_attr(), and Connectivity::set_pointer().
|
inline |
Returns whether the array for the attribute has been set or allocated.
Definition at line 250 of file Attribute.h.
References _status, and STATUS_ALLOCATED.
void append_array | ( | const void * | from, |
int | strd, | ||
int | nitem | ||
) | |||
throw | ( | COM_exception | |
) |
Definition at line 334 of file Attribute.C.
References append_frame, COM_ERR_APPEND_ARRAY, and offset().
Referenced by Window::append_array().
|
inline |
Obtain the capacity of the array.
Definition at line 230 of file Attribute.h.
References _cap, _status, and root().
Referenced by Pane::init_done(), maxsize_of_items(), and Pane::reinit_attr().
Definition at line 531 of file Attribute.C.
References COM_BYTE, COM_CHAR, COM_CHARACTER, COM_DOUBLE, COM_DOUBLE_PRECISION, COM_FLOAT, COM_INT, COM_INTEGER, COM_LONG, COM_REAL, COM_SHORT, COM_UNSIGNED, COM_UNSIGNED_CHAR, COM_UNSIGNED_LONG, COM_UNSIGNED_SHORT, and get_sizeof().
Referenced by Pane::inherit().
void copy_array | ( | void * | buf, |
int | strd, | ||
int | nitem, | ||
int | offset = 0 , |
||
int | direction = COPY_IN |
||
) | |||
throw | ( | COM_exception | |
) |
Definition at line 249 of file Attribute.C.
References append_frame, COM_ERR_ATTRIBUTE_CONST, COM_ERR_INVALID_SIZE, COM_ERR_INVALID_STRIDE, COM_ERR_NULL_POINTER, get_sizeof(), i, j, min(), n, ni, and offset().
Referenced by allocate(), and Pane::inherit().
|
inline |
Obtain the data type of each component of the attribute.
Definition at line 197 of file Attribute.h.
References _type.
Referenced by Rocblas::acos(), Rocblas::add(), Rocblas::add_scalar(), Rocblas::axpy(), Rocblas::axpy_gen(), Rocblas::axpy_scalar(), Rocblas::calc(), Rocblas::calcDot(), Roccom_base::call_function(), Rocblas::copy(), Rocblas::copy_scalar(), Rocblas::div(), Rocblas::div_scalar(), Rocblas::dot_MPI(), Rocblas::dot_scalar_MPI(), Rocblas::gen2arg(), Window::get_attribute(), Roccom_base::get_f90pointer(), Pane::inherit(), Rocblas::limit1(), Rocblas::maxof_scalar(), Rocblas::mul(), Rocblas::mul_scalar(), Rocblas::neg(), Rocblas::rand(), Rocblas::rand_scalar(), Rocblas::reduce_MPI(), Rocblas::reduce_scalar_MPI(), Element_node_vectors_k_const< Value >::set(), Element_vectors_k_const< Value >::set(), Roccom_base::set_f90pointer(), Roccom_base::set_member_function_helper(), Rocblas::sqrt(), Rocblas::sub(), Rocblas::sub_scalar(), Rocblas::swap(), and write_attr_CGNS().
int deallocate | ( | ) | ||
throw | ( | COM_exception | ||
) |
Deallocate memory if it was allocated by allocate().
Return 0 if deallocation is successful.
Definition at line 473 of file Attribute.C.
References _id, _ncomp, _ptr, _status, CATCHEXP_APPEND, i, STATUS_ALLOCATED, and STATUS_NOT_INITIALIZED.
Referenced by Pane::reinit_attr(), and ~Attribute().
|
inline |
Check whether the number of items of the attribute is zero.
Definition at line 227 of file Attribute.h.
References _nitems, and root().
Referenced by Roccom_base::clone_attribute(), Roccom_base::copy_attribute(), and Roccom_base::use_attribute().
std::string fullname | ( | ) | const |
Obtain the full name of the attribute including window name suitable for printing out error messages.
Definition at line 82 of file Attribute.C.
References Window::name(), name(), and window().
Referenced by Rocblas::acos(), Rocblas::add(), Attribute(), Rocblas::axpy(), Rocblas::axpy_gen(), Rocblas::calc(), Rocblas::calcDot(), Rocblas::copy(), Rocblas::div(), Rocblas::dot_MPI(), Rocblas::gen2arg(), Pane::inherit(), Pane::init_done(), Rocblas::limit1(), Rocblas::mul(), Rocblas::neg(), Rocblas::rand(), Rocblas::reduce_MPI(), Rocblas::reduce_scalar_MPI(), Pane::reinit_attr(), Rocblas::sqrt(), and Rocblas::sub().
const void * get_addr | ( | int | i, |
int | j = 0 |
||
) | const | ||
throw | ( | COM_exception | |
) |
Obtain the address of the jth component of the ith item, where 0<=i<size_of_items.
This function is recursive and relatively expensive, and hence should be used only for performance-insenstive tasks.
Definition at line 85 of file Attribute.C.
References append_frame, COM_ERR_INDEX_OUT_OF_BOUNDS, COM_ERR_INVALID_DIMENSION, i, and j.
Referenced by Connectivity::get_addr().
|
inline |
Definition at line 162 of file Attribute.h.
References COM_ERR_ATTRIBUTE_CONST, is_const(), and j.
|
static |
Definition at line 488 of file Attribute.C.
References COM_assertion, COM_BOOL, COM_BYTE, COM_CHAR, COM_CHARACTER, COM_COMPLEX, COM_DOUBLE, COM_DOUBLE_COMPLEX, COM_DOUBLE_PRECISION, COM_F90POINTER, COM_FLOAT, COM_INT, COM_INTEGER, COM_LOGICAL, COM_LONG, COM_LONG_DOUBLE, COM_METADATA, COM_MPI_COMMC, COM_MPI_COMMF, COM_OBJECT, COM_REAL, COM_SHORT, COM_STRING, COM_UNSIGNED, COM_UNSIGNED_CHAR, COM_UNSIGNED_LONG, COM_UNSIGNED_SHORT, and COM_VOID.
Referenced by compatible_types(), Roccom_base::get_f90pntoffsets(), and Roccom_base::get_sizeof().
|
inline |
Obtain the id (or index) of the attribute.
Definition at line 120 of file Attribute.h.
References _id.
Referenced by Pane::attribute(), Window::attribute(), Rocblas::axpy_gen(), Rocblas::calc(), Rocblas::calcDot(), Rocblas::copy(), Window::delete_attribute(), Rocblas::gen2arg(), Pane_ghost_connectivity::get_ents_to_send(), Pane_ghost_connectivity::get_node_total_order(), Pane::inherit(), Rocblas::rand(), Window::set_size(), Rocblas::swap(), and write_attr_CGNS().
|
protected |
Inherit from parent. If depth>0, then the procedure is for the subcomponents.
Definition at line 426 of file Attribute.C.
References _cap, _loc, _ncomp, _strd, _type, _unit, allocate(), CATCHBADALLOC_APPEND, CATCHEXP_APPEND, get_sizeof(), i, and root().
Referenced by Connectivity::inherit(), Window::inherit(), Pane::inherit(), and MarkerParticles_3::multiply_nodal_normals().
|
inline |
Returns whether the array for the attribute has been set or allocated.
Definition at line 244 of file Attribute.h.
References _status, and root().
Referenced by Pane::init_done().
|
inline |
Returns whether the array is set to be read-only.
Definition at line 253 of file Attribute.h.
References _status, root(), and STATUS_SET_CONST.
Referenced by Roccom_base::call_function(), get_addr(), Connectivity::is_const(), and pointer().
|
inlinestatic |
Definition at line 264 of file Attribute.h.
Referenced by Window::attribute(), Window::delete_attribute(), Window::new_attribute(), Pane::reinit_attr(), and Window::Window().
|
inline |
Checks whether the attribute is associated with an element.
Definition at line 192 of file Attribute.h.
References _loc.
Referenced by FaceOffset_3::obtain_face_offset(), and Element_vectors_k_const< Value >::set().
|
inline |
Checks whether the attribute is associated with a node.
Definition at line 194 of file Attribute.h.
References _loc.
Referenced by FaceOffset_3::obtain_face_offset(), and Element_node_vectors_k_const< Value >::set().
|
inline |
Checks whether the attribute is associated with a pane.
Definition at line 190 of file Attribute.h.
References _loc.
|
inline |
Check how the attribute values are organized.
It returns true if the components of the attribute associated with
Definition at line 258 of file Attribute.h.
References size_of_components(), and stride().
|
inline |
Checks whether the attribute is associated with the window.
Definition at line 188 of file Attribute.h.
References _loc.
Referenced by Rocblas::acos(), Rocblas::axpy(), Rocblas::axpy_gen(), Rocblas::calc(), Rocblas::calcChoose(), Rocblas::calcDot(), Rocblas::copy_helper(), Rocblas::dot_MPI(), Rocblas::gen2arg(), Pane::inherit(), Rocblas::neg(), Pane::Pane(), Rocblas::rand(), Rocblas::reduce_MPI(), Pane::reinit_attr(), Window::set_size(), and Rocblas::sqrt().
|
inline |
Obtain the location of the attribute.
It is encoded as follows: 'w' for windowed attribute, 'p' for panal attribute, 'n' for nodal attribute, and 'e' for elemental attribute.
Definition at line 186 of file Attribute.h.
References _loc.
Referenced by Window::get_attribute(), Roccom_base::get_f90pointer(), Pane::inherit(), Roccom_base::set_f90pointer(), and write_attr_CGNS().
int maxsize_of_ghost_items | ( | ) | const |
Obtain the maximum allowed number of items in the attribute.
Reserved for Roccom3.1
Definition at line 153 of file Attribute.C.
References _cap, _id, _loc, _ngitems, _nitems, _pane, _parent, Pane::attribute(), COM_CONN, COM_NC, Pane::ignore_ghost(), and maxsize_of_ghost_items().
Referenced by maxsize_of_ghost_items().
int maxsize_of_items | ( | ) | const |
Obtain the maximum allowed number of items in the attribute.
Reserved for Roccom3.1
Definition at line 125 of file Attribute.C.
References _id, _loc, _pane, _parent, Pane::attribute(), capacity(), COM_CONN, COM_NC, Pane::ignore_ghost(), maxsize_of_items(), and maxsize_of_real_items().
Referenced by maxsize_of_items().
int maxsize_of_real_items | ( | ) | const |
Obtain the maximum allowed number of real items in the attribute.
Reserved for Roccom3.1
Definition at line 179 of file Attribute.C.
References _id, _loc, _ngitems, _nitems, _pane, _parent, Pane::attribute(), COM_CONN, COM_NC, and maxsize_of_real_items().
Referenced by maxsize_of_items(), and maxsize_of_real_items().
|
inline |
Obtain the name of the attribute.
Definition at line 113 of file Attribute.h.
Referenced by Attribute(), Roccom_base::call_function(), Roccom_base::copy_attribute(), Window::delete_attribute(), fullname(), inrt_setmaterial(), io_pane_attribute(), Pane::new_attribute(), Pane::reinit_attr(), and Window::Window().
|
inline |
Obtain a constant pointer to the owner pane of the attribute.
Definition at line 172 of file Attribute.h.
Referenced by Pane::attributes(), Pane::delete_attribute(), Rocblas::gen2arg(), Pane::inherit(), Pane::init_done(), Pane::Pane(), Pane::reinit_attr(), rocfracsubinterface::rocfracinterfaceinitial(), Element_node_vectors_k_const< Value >::set(), and Element_vectors_k_const< Value >::set().
|
inline |
Obtain a modifiable pointer to the owner pane of the attribute.
Definition at line 174 of file Attribute.h.
References _pane.
|
inline |
Parent attribute used by this object.
It determines the the meta-data of the attribute. If the array of this attribute is not set, then this attribute also uses the pointer of its parant.
Definition at line 125 of file Attribute.h.
References _parent.
|
inline |
|
inline |
Obtain a constant pointer to the physical address.
Definition at line 150 of file Attribute.h.
Referenced by Rocblas::axpy_gen(), Rocblas::calc(), Rocblas::calcDot(), Roccom_base::call_function(), Rocblas::gen2arg(), Pane_ghost_connectivity::get_cpanes(), Pane_ghost_connectivity::get_ents_to_send(), Roccom_base::get_f90pointer(), Pane_ghost_connectivity::get_node_total_order(), Window::inherit(), Pane::inherit(), io_pane_attribute(), Connectivity::pointer(), Rocblas::reduce_MPI(), Element_node_vectors_k_const< Value >::set(), Element_vectors_k_const< Value >::set(), Roccom_base::set_f90pointer(), and write_attr_CGNS().
|
inline |
Obtain a modifiable pointer to the physical address.
Definition at line 152 of file Attribute.h.
References _ptr, _status, COM_ERR_ATTRIBUTE_CONST, is_const(), and root().
|
inline |
Root of use-inheritance.
The basic properties of the attribute (location, data type, number of components, and unit) are copied from the root during inheritance and hence later changes in the root (by renewing the root) will not be reflected in sub-attribute. Other types of information (sizes, pointer, stride, and capacity) always use those of the root attribute.
Definition at line 134 of file Attribute.h.
References _parent.
Referenced by Attribute(), capacity(), empty(), inherit(), initialized(), is_const(), pointer(), Connectivity::root(), stride(), and stride_in_bytes().
|
inline |
|
protected |
Set the physical address of the attribute values.
Definition at line 208 of file Attribute.C.
References append_frame, COM_ERR_INVALID_CAPACITY, COM_ERR_INVALID_STRIDE, get_sizeof(), i, and offset().
Referenced by allocate(), and Connectivity::set_pointer().
void set_size | ( | int | nitems, |
int | ngitems = 0 |
||
) | |||
throw | ( | COM_exception | |
) |
Set the size of items and ghost items.
Can be changed only if the attribute is a root.
Definition at line 191 of file Attribute.C.
References append_frame, COM_assertion, COM_CONN, COM_ERR_CHANGE_INHERITED, COM_NC, and i.
Referenced by Window::append_array(), Pane::reinit_attr(), and Connectivity::set_pointer().
|
inline |
Obtain the number of components in the attribute.
Definition at line 203 of file Attribute.h.
References _ncomp.
Referenced by Rocblas::acos(), Window::attribute(), Pane::attributes(), Rocblas::axpy(), Rocblas::axpy_gen(), Rocblas::calc(), Rocblas::calcChoose(), Rocblas::calcDot(), Rocblas::copy_helper(), Window::delete_attribute(), Pane::delete_attribute(), Rocblas::dot_MPI(), Rocblas::gen2arg(), Window::get_attribute(), Roccom_base::get_f90pntoffsets(), Pane::inherit(), is_staggered(), Rocblas::neg(), FaceOffset_3::obtain_face_offset(), Element_node_vectors_k_const< Value >::operator()(), Element_vectors_k_const< Value >::operator()(), Pane::Pane(), Rocblas::rand(), Rocblas::reduce_MPI(), Pane::reinit_attr(), Element_node_vectors_k_const< Value >::set(), Element_vectors_k_const< Value >::set(), Roccom_base::set_f90pointer(), Rocblas::sqrt(), and write_attr_CGNS().
int size_of_ghost_items | ( | ) | const |
Obtain the number of ghost items in the attribute.
Definition at line 139 of file Attribute.C.
References _id, _loc, _ngitems, _pane, _parent, Pane::attribute(), COM_CONN, COM_NC, Pane::ignore_ghost(), and size_of_ghost_items().
Referenced by Connectivity::size_of_ghost_elements(), size_of_ghost_items(), and write_attr_CGNS().
int size_of_items | ( | ) | const |
Obtain the number of items in the attribute.
Definition at line 111 of file Attribute.C.
References _id, _loc, _nitems, _pane, _parent, Pane::attribute(), COM_CONN, COM_NC, Pane::ignore_ghost(), size_of_items(), and size_of_real_items().
Referenced by Window::append_array(), Rocblas::axpy_gen(), Rocblas::calc(), Rocblas::calcDot(), Rocblas::gen2arg(), Rocblas::get_stride(), Pane::inherit(), Pane::init_done(), Pane::reinit_attr(), Connectivity::size_of_elements(), size_of_items(), and write_attr_CGNS().
int size_of_real_items | ( | ) | const |
Obtain the number of real items in the attribute.
Definition at line 167 of file Attribute.C.
References _gap, _id, _loc, _ngitems, _nitems, _pane, _parent, Pane::attribute(), COM_CONN, COM_NC, and size_of_real_items().
Referenced by Pane_ghost_connectivity::finalize_pconn(), Pane_ghost_connectivity::get_cpanes(), Pane_ghost_connectivity::get_ents_to_send(), Pane::inherit(), size_of_items(), Connectivity::size_of_real_elements(), size_of_real_items(), and write_attr_CGNS().
bool size_set | ( | ) | const |
Returns whether the size for the attribute has been set.
Definition at line 99 of file Attribute.C.
References _id, _loc, _nitems, _pane, _parent, Pane::attribute(), COM_CONN, COM_NC, and size_set().
Referenced by Window::append_array(), Pane::reinit_attr(), and size_set().
|
inline |
Obtain the status of the attribute.
Definition at line 240 of file Attribute.h.
References _parent, _status, and STATUS_USE.
Referenced by apn_input_0d(), prep_modbcdistribution::bcdistributionfiles(), feminp(), genxwriterocinout(), Window::get_status(), inrt_readinputfile(), inrt_readmaterialinput(), peri_readinputfile(), peul_clearsendrequests(), peul_readbcinputfile(), peul_readinputfile(), peul_readsolution(), peul_readsolutionregion(), peul_receivecorneredgecells(), peul_receivedummyvals(), peul_writesolution(), plag_binsortnozzleinlet(), plag_binsortspatialdist(), plag_modsurfstats::plag_opensurfstatsascii(), plag_modsurfstats::plag_opensurfstatsbinary(), plag_processeulerfield(), plag_readinputfile(), plag_readpdffromfile(), plag_readsolution(), plag_readsolutionfilepost(), plag_readstatpost(), plag_rflo_modstats::plag_rflo_clearreqstatbuff(), plag_rflo_clearsendrequests(), plag_rflo_modstats::plag_rflo_readstat(), plag_rflo_recvmetrics(), plag_rflo_modstats::plag_rflo_recvstatbuff(), plag_rflo_modstats::plag_rflo_writestat(), plag_rflu_modcomm::plag_rflu_clearrequest(), plag_moddimensions::plag_rflu_readdimensions(), plag_rflu_readsolutionascii(), plag_rflu_readsolutionbinary(), plag_rflu_modcomm::plag_rflu_recvcounters(), plag_rflu_modcomm::plag_rflu_recvdata(), plag_moddimensions::plag_rflu_writedimensions(), plag_rflu_writesolutionascii(), plag_rflu_writesolutionbinary(), plag_writesolution(), plag_writestattecascii(), plag_writetecplotascii(), radi_floflimrecvcornedgecells(), radi_floflimrecvdummyvals(), radi_rflo_flimclearsendrequests(), radi_rflo_readsolution(), radi_rflo_writesolution(), read_files(), read_frac(), read_io_files(), read_msh(), setup_py::read_properties(), readbcinputfile(), readinp(), readinputfile(), setup_py::readtable(), rflo_clearsendrequests(), rflo_exchangednoderecv(), rflo_exchangegeometryprepare(), rflo_exchangegeometryrecv(), rflo_initflowsolver(), rflo_openconverfile(), rflo_modforcesmoments::rflo_openforcemomcofile(), rflo_openprobefile(), rflo_modrestartinfo::rflo_openrestartinfo(), rflo_openthrustfile(), rflo_readbcfromfile(), rflo_readbcinputfile(), rflo_readgrid(), rflo_readgridregion(), rflo_modpatchaerocoeffs::rflo_readpatchaerocoeffs(), rflo_modpatchaerocoeffs::rflo_readpatchaerocoeffsreg(), rflo_readrandomstate(), rflo_readregionmapsection(), rflo_readregiontopology(), rflo_readsolution(), rflo_readsolutionregion(), rflo_readstat(), rflo_readstatregion(), rflo_readtbcinputfile(), rflo_receivecorneredgecells(), rflo_receivedummyvals(), rflo_moddegeneratecornedge::rflo_writedegeneratec(), rflo_writegrid(), rflo_writegridregion(), rflo_modforcesmoments::rflo_writeintegralforcemomco(), rflo_modpatchaerocoeffs::rflo_writepatchaerocoeffs(), rflo_modforcesmoments::rflo_writepatchcoeffsinfo(), rflo_writerandomstate(), rflo_writeregiontopology(), rflo_writesolution(), rflo_writesolutionregion(), rflo_writestat(), rflu_modboundxvutils::rflu_bxv_readvarsascii(), rflu_modboundxvutils::rflu_bxv_readvarsbinary(), rflu_modboundxvutils::rflu_bxv_writevarsascii(), rflu_modboundxvutils::rflu_bxv_writevarsbinary(), rflu_modcoloring::rflu_col_readcoloring(), rflu_modcoloring::rflu_col_writecoloring(), rflu_modcommlists::rflu_comm_readcommlists(), rflu_modcommlists::rflu_comm_writecommlists(), rflu_computeexactflowprobeerror(), rflu_modcobalt::rflu_convcobalt2rocflu(), rflu_modgambit::rflu_convgambit2rocflu(), rflu_modmesh3d::rflu_convmesh3d2rocflu(), rflu_modtetmesh::rflu_convtetmesh2rocflu(), rflu_modvgridns::rflu_convvgridns2rocflu(), rflu_modensight::rflu_ens_openfilegeometry(), rflu_modensight::rflu_ens_openfilescalarvector(), rflu_modensight::rflu_ens_writefilecase(), rflu_modextractflowdata::rflu_extractflowdatablasius(), rflu_modextractflowdata::rflu_extractflowdatalinefarf(), rflu_modextractflowdata::rflu_extractflowdatanscbc(), rflu_modextractflowdata::rflu_extractflowdataproudman(), rflu_modextractflowdata::rflu_extractflowdataskews(), rflu_modextractflowdata::rflu_extractflowdatasod(), rflu_modextractflowdata::rflu_extractflowdatasommspi(), rflu_modextractflowdata::rflu_extractflowdatastg1d(), rflu_modextractflowdata::rflu_extractflowdatastg2d(), rflu_modrocstario::rflu_genx_openrocinctrlfiles(), rflu_modrocstaradmin::rflu_genx_readctrlfile(), rflu_modmpi::rflu_mpi_clearrequest(), rflu_modmpi::rflu_mpi_recvcelldata(), rflu_openconverfile(), rflu_modpatchcoeffs::rflu_openpatchcoeffsascii(), rflu_modpatchcoeffs::rflu_openpatchcoeffsbinary(), rflu_openpostinfo(), rflu_modprobes::rflu_openprobefiles(), rflu_modregionmapping::rflu_openregionmappingfile(), rflu_openrestartinfo(), rflu_openstatsfileoles(), rflu_opentotalmassfile(), rflu_modreadwritebcdatafile::rflu_readbcdatafile(), rflu_modreadbcinputfile::rflu_readbcinputfile(), rflu_moddimensions::rflu_readdimensions(), rflu_modreadwriteflow::rflu_readflowascii(), rflu_modreadwriteflow::rflu_readflowbinary(), rflu_modreadwritegrid::rflu_readgridascii(), rflu_modreadwritegrid::rflu_readgridbinary(), rflu_modcentaur::rflu_readgridcentaurascii(), rflu_modcentaur::rflu_readgridcentaurbinary(), rflu_modcobalt::rflu_readgridcobalt(), rflu_modgambit::rflu_readgridgambitneutral(), rflu_modmesh3d::rflu_readgridmesh3d(), rflu_modreadwritegridspeeds::rflu_readgridspeedsascii(), rflu_modreadwritegridspeeds::rflu_readgridspeedsbinary(), rflu_modtetmesh::rflu_readgridtetmesh(), rflu_modvgridns::rflu_readgridvgridns(), rflu_readintegrals1245oles(), rflu_modcellmapping::rflu_readloc2globcellmapping(), rflu_readstat(), rflu_readtbcinputfile(), rflu_modrenumberings::rflu_rnmb_readpxx2sxxmaps(), rflu_modrenumberings::rflu_rnmb_readsc2rmap(), rflu_modrenumberings::rflu_rnmb_writepxx2sxxmaps(), rflu_modrenumberings::rflu_rnmb_writesc2rmap(), rflu_modstl::rflu_stl_writesurfgridascii(), rflu_modsymmetryperiodic::rflu_sype_readtransforms(), rflu_modsymmetryperiodic::rflu_sype_setsypepatchesflag(), rflu_modsymmetryperiodic::rflu_sype_writetransforms(), rflu_modtecplot::rflu_tec_openfilepnt(), rflu_modthrustspecimpulse::rflu_tsi_openglobalvals(), rflu_modreadwritebcdatafile::rflu_writebcdatafile(), rflu_moddimensions::rflu_writedimensions(), rflu_moddimensions::rflu_writedimensionsborders(), rflu_modreadwriteflow::rflu_writeflowascii(), rflu_modreadwriteflow::rflu_writeflowbinary(), rflu_modforcesmoments::rflu_writeglobalforcesmoments(), rflu_modreadwritegrid::rflu_writegridascii(), rflu_modreadwritegrid::rflu_writegridbinary(), rflu_modreadwritegridspeeds::rflu_writegridspeedsascii(), rflu_modreadwritegridspeeds::rflu_writegridspeedsbinary(), rflu_writeintegrals1245oles(), rflu_modcellmapping::rflu_writeloc2globcellmapping(), rflu_modextractflowdata::rflu_writemeshbump(), rflu_writestat(), rflu_modtetmesh::rflu_writesurfgridtetmesh(), rflu_writeversionstring(), rocflo_2dto3d(), rocflo_surf(), rocfracprep(), rvav_blasiussolution(), rvav_computeanalyticalsolution(), rvav_readfilestream2analyt(), rvav_readfilestream2experm(), rvav_readinputfile(), scale_mesh(), select_bbx(), spec_readinputfile(), spec_rflu_readbcinputfile(), spec_rflu_modreadwritevars::spec_rflu_readcvascii(), spec_rflu_modreadwritevars::spec_rflu_readcvbinary(), spec_rflu_modreadwritevars::spec_rflu_readeevascii(), spec_rflu_modreadwritevars::spec_rflu_readeevbinary(), spec_rflu_modreadwritevars::spec_rflu_writecvascii(), spec_rflu_modreadwritevars::spec_rflu_writecvbinary(), spec_rflu_modreadwritevars::spec_rflu_writeeevascii(), spec_rflu_modreadwritevars::spec_rflu_writeeevbinary(), turb_coranswalldistov(), turb_floransrecvcornedgecells(), turb_floransrecvdummyvals(), turb_readbcinputfile(), turb_readinputfile(), turb_rflo_ransclearsendrequests(), turb_rflo_readsolution(), turb_rflo_readsolutionregion(), turb_rflo_writesolution(), turb_rflu_readsolutionascii(), turb_rflu_readsolutionbinary(), turb_rflu_writesolutionascii(), turb_rflu_writesolutionbinary(), write_grda(), write_grdb(), write_output(), write_output_2(), prep_modbcdistribution::writebctofile(), writeflucellmap(), writefludimens(), writeflugrid(), writegeneric(), writeprobe(), writetecplotascii(), writethrust(), and zn_input_0d().
|
inline |
Obtain the stride of the attribute in base datatype.
Definition at line 233 of file Attribute.h.
References _status, _strd, and root().
Referenced by Window::append_array(), Rocblas::calcDot(), Rocblas::get_stride(), Pane::inherit(), io_pane_attribute(), is_staggered(), Pane::reinit_attr(), Element_node_vectors_k_const< Value >::set(), Element_vectors_k_const< Value >::set(), and write_attr_CGNS().
|
inline |
Obtain the stride of the attribute in bytes.
Definition at line 236 of file Attribute.h.
References _nbytes_strd, _status, and root().
|
inline |
Obtain the unit of the attribute.
Definition at line 200 of file Attribute.h.
References _unit.
Referenced by __scalegrd.f90__(), apn_input_0d(), Window::get_attribute(), read_files(), read_frac(), read_io_files(), setup_py::read_properties(), scale_mesh(), write_attr_CGNS(), and zn_input_0d().
const Window * window | ( | ) | const |
Obtain a constant pointer to the parent window of the attribute.
Definition at line 80 of file Attribute.C.
References _pane, and Pane::window().
Referenced by Rocblas::axpy_gen(), Rocblas::calc(), Rocblas::calcDot(), Roccom_base::call_function(), Rocblas::copy(), Roccom_base::copy_attribute(), fullname(), Rocblas::gen2arg(), Window::inherit(), Rocblas::rand(), Rocblas::swap(), and Rocout::write_attr_internal().
Window * window | ( | ) |
Obtain a modifiable pointer to the parent window of the attribute.
Definition at line 79 of file Attribute.C.
References _pane, and Pane::window().
|
protected |
Capacity.
Definition at line 323 of file Attribute.h.
Referenced by allocate(), Attribute(), capacity(), inherit(), maxsize_of_ghost_items(), and ~Attribute().
|
protected |
Gap between the IDs of real and ghost items.
Definition at line 314 of file Attribute.h.
Referenced by size_of_real_items().
|
protected |
Id field data.
Definition at line 302 of file Attribute.h.
Referenced by deallocate(), id(), maxsize_of_ghost_items(), maxsize_of_items(), maxsize_of_real_items(), size_of_ghost_items(), size_of_items(), size_of_real_items(), size_set(), and ~Attribute().
|
staticprotected |
Default locations.
The locations of keywords.
Definition at line 326 of file Attribute.h.
|
staticprotected |
Default sizes.
The sizes of keywords.
Definition at line 328 of file Attribute.h.
|
staticprotected |
Default data types.
The datatypes of keywords.
Definition at line 327 of file Attribute.h.
|
staticprotected |
List of keywords.
The names of the keywords.
Definition at line 325 of file Attribute.h.
|
protected |
Location.
'w' for windowed attribute, 'p' for panal attribute, 'n' for nodal attribute, 'e' for elemental attribute
Definition at line 303 of file Attribute.h.
Referenced by Attribute(), inherit(), is_elemental(), is_nodal(), is_panel(), is_windowed(), location(), maxsize_of_ghost_items(), maxsize_of_items(), maxsize_of_real_items(), size_of_ghost_items(), size_of_items(), size_of_real_items(), size_set(), and ~Attribute().
|
protected |
|
protected |
Number of bytes of the stride.
Definition at line 322 of file Attribute.h.
Referenced by Attribute(), stride_in_bytes(), and ~Attribute().
|
protected |
Number of components.
Definition at line 308 of file Attribute.h.
Referenced by Attribute(), deallocate(), inherit(), size_of_components(), and ~Attribute().
|
protected |
Size of ghost items.
Definition at line 313 of file Attribute.h.
Referenced by Attribute(), maxsize_of_ghost_items(), maxsize_of_real_items(), Connectivity::size_of_elements(), Connectivity::size_of_ghost_elements(), size_of_ghost_items(), Connectivity::size_of_ghost_nodes(), Connectivity::size_of_nodes(), Connectivity::size_of_real_elements(), size_of_real_items(), Connectivity::size_of_real_nodes(), and ~Attribute().
|
protected |
Size of total items. Default value is -1.
Definition at line 312 of file Attribute.h.
Referenced by Attribute(), empty(), maxsize_of_ghost_items(), maxsize_of_real_items(), size_of_items(), size_of_real_items(), size_set(), and ~Attribute().
|
protected |
Pointer to its owner pane.
Definition at line 298 of file Attribute.h.
Referenced by maxsize_of_ghost_items(), maxsize_of_items(), maxsize_of_real_items(), pane(), Connectivity::size_of_elements(), size_of_ghost_items(), Connectivity::size_of_ghost_nodes(), size_of_items(), Connectivity::size_of_nodes(), size_of_real_items(), Connectivity::size_of_real_nodes(), size_set(), window(), and ~Attribute().
|
protected |
Parent attribute being used.
Definition at line 299 of file Attribute.h.
Referenced by Attribute(), maxsize_of_ghost_items(), maxsize_of_items(), maxsize_of_real_items(), Connectivity::parent(), parent(), root(), size_of_ghost_items(), size_of_items(), size_of_real_items(), size_set(), status(), and ~Attribute().
|
protected |
Physical address of the attribute.
Definition at line 320 of file Attribute.h.
Referenced by allocate(), deallocate(), pointer(), and ~Attribute().
|
protected |
Indicating whether it has been initialized.
Definition at line 318 of file Attribute.h.
Referenced by allocate(), allocated(), Attribute(), capacity(), deallocate(), initialized(), is_const(), pointer(), status(), stride(), stride_in_bytes(), and ~Attribute().
|
protected |
Stride.
Definition at line 321 of file Attribute.h.
Referenced by allocate(), Attribute(), inherit(), stride(), and ~Attribute().
|
protected |
Base data type of the attribute.
Definition at line 309 of file Attribute.h.
Referenced by Attribute(), data_type(), inherit(), and ~Attribute().
|
protected |
Unit of the attribute.
Definition at line 310 of file Attribute.h.
Referenced by Attribute(), inherit(), and unit().