Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Pane Class Reference

A Pane object contains a mesh, pane attribute, and field variables. More...

#include <Pane.h>

Inheritance diagram for Pane:
Collaboration diagram for Pane:

Classes

class  Attribute_friend
 
class  Connectivity_friend
 

Public Types

enum  OP_Init {
  OP_SET =1, OP_SET_CONST, OP_ALLOC, OP_RESIZE,
  OP_DEALLOC
}
 
enum  Inherit_Modes { INHERIT_USE =0, INHERIT_CLONE, INHERIT_COPY }
 
typedef std::vector< Attribute * > Attr_set
 Vector of attributs. More...
 
typedef std::vector
< Connectivity * > 
Cnct_set
 Vector of connectivities. More...
 
typedef unsigned int Size
 Unsighed int. More...
 

Public Member Functions

Constructor and destructor
 Pane (Window *w, int i)
 Create a pane in window w with ID i. More...
 
 Pane (Pane *p, int i)
 Create a pane by copying from attribute descriptions from another pane. More...
 
virtual ~Pane ()
 Default destructor. More...
 
Initialization
void init_done () throw (COM_exception)
 Finalize the initialization of a pane. More...
 
Identification
const Windowwindow () const
 Obtain a constant pointer to its owner window object. More...
 
Windowwindow ()
 Obtain a pointer to its owner window object. More...
 
int id () const
 Get the ID of the pane. More...
 
int dimension () const
 Dimension of the pane. More...
 
bool is_unstructured () const
 Is mesh of the pane unstructured? More...
 
bool is_mixed () const
 Does the pane contain more than one type of elements? More...
 
bool is_structured () const
 Is mesh of the pane structured? More...
 
Mesh management
Size size_of_nodes () const
 Get the total number of nodes in the pane (including ghost nodes). More...
 
Size maxsize_of_nodes () const
 Get the maximum number of real nodes in the pane (excluding ghost nodes). More...
 
Size size_of_ghost_nodes () const
 Get the number of ghost nodes. More...
 
Size maxsize_of_ghost_nodes () const
 Get the maximum number of real nodes in the pane (excluding ghost nodes). More...
 
Size size_of_real_nodes () const
 Get the number of real nodes in the pane (excluding ghost nodes). More...
 
Size maxsize_of_real_nodes () const
 Get the maximum number of real nodes in the pane (excluding ghost nodes). More...
 
Size size_of_elements () const
 Get the total number of elements in the pane (including ghost elements). More...
 
Size maxsize_of_elements () const
 Get the maximum number of elements allowed in the pane (including ghost elements) More...
 
Size size_of_ghost_elements () const
 Get the total number of ghost elements. More...
 
Size maxsize_of_ghost_elements () const
 Get the maximum number of elements allowed in the pane (including ghost elements) More...
 
Size size_of_real_elements () const
 Get the number of real elements in the pane (excluding ghost elements). More...
 
Size maxsize_of_real_elements () const
 Get the maximum number of real elements allowed in the pane (excluding ghost elements). More...
 
double * coordinates ()
 Get the pointer to the values of the coordinates. More...
 
double * x_coordinates ()
 Get the pointer to the values of the x-coordinates, if the coordinates are staggered. More...
 
double * y_coordinates ()
 Get the pointer to the values of the y-coordinates, if the coordinates are staggered. More...
 
double * z_coordinates ()
 Get the pointer to the values of the z-coordinates, if the coordinates are staggered. More...
 
const double * coordinates () const
 Get a constant pointer to the values of the coordinates. More...
 
const double * x_coordinates () const
 Get a constant pointer to the values of the x-coordinates, if the coordinates are staggered. More...
 
const double * y_coordinates () const
 Get a constant pointer to the values of the y-coordinates, if the coordinates are staggered. More...
 
const double * z_coordinates () const
 Get a constant pointer to the values of the z-coordinates, if the coordinates are staggered. More...
 
int * pane_connectivity ()
 Get a pointer to the values of the pane connectivity. More...
 
const int * pane_connectivity () const
 Get a const pointer to the values of the pane connectivity. More...
 
bool ignore_ghost () const
 
void set_ignore_ghost (bool ignore)
 
Structured meshes
Size size_of_ghost_layers () const
 Dimension of the pane. More...
 
Size size_i () const
 Get the number of nodes in i-dimension if the mesh is structured. More...
 
Size size_j () const
 Get the number of nodes in j-dimension if the mesh is structured. More...
 
Size size_k () const
 Get the number of nodes in k-dimension if the mesh is structured. More...
 
Attribute management
void attributes (std::vector< Attribute * > &as)
 Obtain all the attributes of the pane. More...
 
void attributes (std::vector< const Attribute * > &as) const
 Obtain all the attributes of the pane. More...
 
Attributeattribute (const std::string &a)
 Obtain the attribute from given name. More...
 
const Attributeattribute (const std::string &a) const
 Obtain the attribute from given name. More...
 
Attributeattribute (int i)
 Obtain the attribute from its ID. More...
 
const Attributeattribute (int i) const
 Obtain the attribute from its ID. More...
 
Connectivity management
void connectivities (std::vector< Connectivity * > &es)
 Obtain all the element connectivities of the pane. More...
 
void connectivities (std::vector< const Connectivity * > &es) const
 
Connectivityconnectivity (Size i) throw (COM_exception)
 Obtain the connectivity table containing the element with the given ID. More...
 
const Connectivityconnectivity (Size i) const throw (COM_exception)
 
void elements (std::vector< Connectivity * > &es)
 Obtain all the element connectivities of the pane. More...
 
void elements (std::vector< const Connectivity * > &es) const
 
void refresh_connectivity () throw (COM_exception)
 Update offsets and sizes of connectivity of an unstructured mesh. More...
 

Protected Member Functions

Attributenew_attribute (const std::string &aname, int aid, const char loc, const int type, int ncomp, const std::string &unit) throw (COM_exception)
 
void insert (Attribute *attr) throw (COM_exception)
 Insert an attribute onto the pane. More...
 
void delete_attribute (int id) throw (COM_exception)
 Delete an existing attribute with given id. More...
 
void reinit_attr (int aid, OP_Init op, void **addr, int strd, int cap) throw (COM_exception)
 
const Connectivityconnectivity (const std::string &a) const throw (COM_exception)
 Obtain the connectivity with the given name. More...
 
Connectivityconnectivity (const std::string &a, bool insert=false) throw (COM_exception)
 
void reinit_conn (Connectivity *con, OP_Init op, int **addr, int strd, int cap) throw (COM_exception)
 
Attributeinherit (Attribute *from, const std::string &aname, int mode, bool withghost) throw (COM_exception)
 Inherit an attribute from another pane onto the current pane: More...
 
void set_size (Attribute *a, int nitems, int ng) throw ( COM_exception)
 Set the size of an attribute. More...
 
void set_size (Connectivity *con, int nitems, int ng) throw ( COM_exception)
 Set the size of a connectivity table. More...
 

Protected Attributes

Window_window
 Point to the parent window. More...
 
int _id
 Pane id. More...
 
Attr_set _attr_set
 Set of attributes. More...
 
Cnct_set _cnct_set
 Set of element connectivity. More...
 
bool _ignore_ghost
 Whether the ghosts were ignored. More...
 

Private Member Functions

 Pane (const Pane &)
 
Paneoperator= (const Pane &)
 

Detailed Description

A Pane object contains a mesh, pane attribute, and field variables.

Mesh data include nodal coordinates and element connectivity.

Definition at line 43 of file Pane.h.

Member Typedef Documentation

typedef std::vector<Attribute*> Attr_set

Vector of attributs.

Definition at line 45 of file Pane.h.

typedef std::vector<Connectivity*> Cnct_set

Vector of connectivities.

Definition at line 46 of file Pane.h.

typedef unsigned int Size

Unsighed int.

Definition at line 47 of file Pane.h.

Member Enumeration Documentation

Enumerator
INHERIT_USE 
INHERIT_CLONE 
INHERIT_COPY 

Definition at line 49 of file Pane.h.

enum OP_Init
Enumerator
OP_SET 
OP_SET_CONST 
OP_ALLOC 
OP_RESIZE 
OP_DEALLOC 

Definition at line 48 of file Pane.h.

Constructor & Destructor Documentation

COM_BEGIN_NAME_SPACE Pane ( Window w,
int  i 
)

Create a pane in window w with ID i.

Definition at line 33 of file Pane.C.

References _attr_set, COM_NUM_KEYWORDS, and i.

33  :
34  _window(w), _id(i), _ignore_ghost(false)
35 {
36  _attr_set.resize( COM_NUM_KEYWORDS);
38 
39  for ( int i=0; i<COM_NUM_KEYWORDS; ++i) {
40  // Call constructor in placement form.
41  _attr_set[i] = new (&as[i]) Attribute_friend(this, i);
42  }
43 }
An Attribute object is a data member of a window.
Definition: Attribute.h:51
bool _ignore_ghost
Whether the ghosts were ignored.
Definition: Pane.h:317
int _id
Pane id.
Definition: Pane.h:314
Window * _window
Point to the parent window.
Definition: Pane.h:313
blockLoc i
Definition: read.cpp:79
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
Pane ( Pane p,
int  i 
)

Create a pane by copying from attribute descriptions from another pane.

Definition at line 45 of file Pane.C.

References _attr_set, COM_NUM_KEYWORDS, i, INHERIT_USE, Attribute::is_windowed(), k, n, nk, Attribute::pane(), and Attribute::size_of_components().

45  :
46  _window(p->_window), _id(id), _ignore_ghost(false)
47 {
48  int n = p->_attr_set.size();
49  _attr_set.resize( n, NULL);
50 
51  // First allocate for keywords
53  for ( int i=0; i<COM_NUM_KEYWORDS; ++i) {
54  _attr_set[i] = new (&as[i]) Attribute( this, p->_attr_set[i], "", i);
55  }
56 
57  for ( int i=COM_NUM_KEYWORDS; i<n; ) {
58  Attribute *ap=p->_attr_set[i];
59  if ( ap==NULL || ap->pane()==NULL) { ++i; continue; }
60  int ncomp=ap->size_of_components();
61 
62  // Allocate for attribute and its components
63  as = new Attribute[ncomp+(ncomp>1)];
64 
65  // Call constructor at the attribute and its individual components
66  for ( int k=0, nk=(ncomp==1)?0:ncomp; k<=nk; ++k,++i)
67  _attr_set[i] = new (&as[k]) Attribute( this, &ap[k], "", i);
68 
69  // Inherit window attributes from dummy pane
70  if ( ap->is_windowed())
71  reinterpret_cast<Attribute_friend*>(as)->inherit( ap, INHERIT_USE, true);
72  }
73 }
An Attribute object is a data member of a window.
Definition: Attribute.h:51
j indices k indices k
Definition: Indexing.h:6
bool _ignore_ghost
Whether the ghosts were ignored.
Definition: Pane.h:317
bool is_windowed() const
Checks whether the attribute is associated with the window.
Definition: Attribute.h:188
int _id
Pane id.
Definition: Pane.h:314
Window * _window
Point to the parent window.
Definition: Pane.h:313
blockLoc i
Definition: read.cpp:79
const NT & n
const Pane * pane() const
Obtain a constant pointer to the owner pane of the attribute.
Definition: Attribute.h:172
void int int * nk
Definition: read.cpp:74
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
int size_of_components() const
Obtain the number of components in the attribute.
Definition: Attribute.h:203

Here is the call graph for this function:

~Pane ( )
virtual

Default destructor.

Definition at line 75 of file Pane.C.

References _attr_set, _cnct_set, COM_ATTS, delete_attribute(), i, and n.

75  {
76  delete [] _attr_set[0]; // Delete all keywords
77 
78  delete_attribute( COM_ATTS); // Delete all user-defined attributes.
79 
80  for ( Size i=0,n=_cnct_set.size(); i<n; ++i)
81  delete _cnct_set[i]; // Delete all connectivity tables.
82 }
void delete_attribute(int id)
Delete an existing attribute with given id.
Definition: Pane.C:240
blockLoc i
Definition: read.cpp:79
const NT & n
unsigned int Size
Unsighed int.
Definition: Pane.h:47
Cnct_set _cnct_set
Set of element connectivity.
Definition: Pane.h:316
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315

Here is the call graph for this function:

Pane ( const Pane )
private

Member Function Documentation

Attribute * attribute ( const std::string &  a)

Obtain the attribute from given name.

Definition at line 148 of file Pane.C.

References _window, Window::attribute(), and Attribute::id().

Referenced by attribute(), Window::attribute(), Window::copy_array(), Window::get_array(), Window::get_parent(), Window::get_size(), Window::get_status(), Window::inherit(), inherit(), Attribute::maxsize_of_ghost_items(), Attribute::maxsize_of_items(), Attribute::maxsize_of_real_items(), Attribute::size_of_ghost_items(), Attribute::size_of_items(), Attribute::size_of_real_items(), Attribute::size_set(), Window::Window(), and write_attr_CGNS().

148  {
149  Attribute *w_attr = _window->attribute(a);
150  if ( w_attr==NULL) return NULL;
151 
152  return attribute( w_attr->id());
153 }
An Attribute object is a data member of a window.
Definition: Attribute.h:51
Attribute * attribute(const std::string &a)
Obtain the attribute from given name.
Definition: Pane.C:148
Window * _window
Point to the parent window.
Definition: Pane.h:313
Attribute * attribute(const std::string &a)
Obtain a pointer to the attribute metadata from its name.
Definition: Window.C:842
int id() const
Obtain the id (or index) of the attribute.
Definition: Attribute.h:120

Here is the call graph for this function:

Here is the caller graph for this function:

const Attribute* attribute ( const std::string &  a) const
inline

Obtain the attribute from given name.

Definition at line 239 of file Pane.h.

References attribute().

240  { return const_cast<Pane*>(this)->attribute(a); }
A Pane object contains a mesh, pane attribute, and field variables.
Definition: Pane.h:43
Attribute * attribute(const std::string &a)
Obtain the attribute from given name.
Definition: Pane.C:148

Here is the call graph for this function:

Attribute * attribute ( int  i)

Obtain the attribute from its ID.

Definition at line 156 of file Pane.C.

References _attr_set, i, and Attribute::id().

156  {
157  if ( (int)_attr_set.size() <= i) return NULL;
158  Attribute *p_attr = _attr_set[ i];
159 
160  if ( p_attr==NULL || p_attr->id () != i) return NULL;
161  return p_attr;
162 }
An Attribute object is a data member of a window.
Definition: Attribute.h:51
blockLoc i
Definition: read.cpp:79
int id() const
Obtain the id (or index) of the attribute.
Definition: Attribute.h:120
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315

Here is the call graph for this function:

const Attribute* attribute ( int  i) const
inline

Obtain the attribute from its ID.

Definition at line 246 of file Pane.h.

References attribute().

247  { return const_cast<Pane*>(this)->attribute(i); }
A Pane object contains a mesh, pane attribute, and field variables.
Definition: Pane.h:43
Attribute * attribute(const std::string &a)
Obtain the attribute from given name.
Definition: Pane.C:148
blockLoc i
Definition: read.cpp:79

Here is the call graph for this function:

void attributes ( std::vector< Attribute * > &  as)

Obtain all the attributes of the pane.

Definition at line 165 of file Pane.C.

References _attr_set, COM_NUM_KEYWORDS, i, Attribute::pane(), and Attribute::size_of_components().

Referenced by attributes(), Window::attributes(), and write_attr_CGNS().

165  {
166  as.reserve( _attr_set.size()-COM_NUM_KEYWORDS);
167  for ( int i=COM_NUM_KEYWORDS, size=_attr_set.size(); i<size; ++i) {
168  Attribute *a = _attr_set[i];
169  if ( a==NULL || a->pane()==NULL) continue;
170 
171  as.push_back( a);
172  int ncomp = a->size_of_components();
173  if ( ncomp>1) i+=ncomp;
174  }
175 }
An Attribute object is a data member of a window.
Definition: Attribute.h:51
blockLoc i
Definition: read.cpp:79
const Pane * pane() const
Obtain a constant pointer to the owner pane of the attribute.
Definition: Attribute.h:172
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
int size_of_components() const
Obtain the number of components in the attribute.
Definition: Attribute.h:203

Here is the call graph for this function:

Here is the caller graph for this function:

void attributes ( std::vector< const Attribute * > &  as) const
inline

Obtain all the attributes of the pane.

Definition at line 233 of file Pane.h.

References attributes().

234  { const_cast<Pane*>(this)->attributes((std::vector<Attribute*>&)as); }
A Pane object contains a mesh, pane attribute, and field variables.
Definition: Pane.h:43
void attributes(std::vector< Attribute * > &as)
Obtain all the attributes of the pane.
Definition: Pane.C:165

Here is the call graph for this function:

void connectivities ( std::vector< Connectivity * > &  es)
inline

Obtain all the element connectivities of the pane.

Definition at line 254 of file Pane.h.

Referenced by connectivities(), and elements().

255  { es = _cnct_set; }
Cnct_set _cnct_set
Set of element connectivity.
Definition: Pane.h:316

Here is the caller graph for this function:

void connectivities ( std::vector< const Connectivity * > &  es) const
inline

Definition at line 257 of file Pane.h.

References connectivities().

258  { const_cast<Pane*>(this)->connectivities
259  ( (std::vector<Connectivity*> &)es); }
A Pane object contains a mesh, pane attribute, and field variables.
Definition: Pane.h:43
void connectivities(std::vector< Connectivity * > &es)
Obtain all the element connectivities of the pane.
Definition: Pane.h:254

Here is the call graph for this function:

Connectivity * connectivity ( Size  i)
throw (COM_exception
)

Obtain the connectivity table containing the element with the given ID.

Definition at line 99 of file Pane.C.

References COM_assertion, COM_assertion_msg, i, Connectivity::index_offset(), and Connectivity::size_of_elements().

Referenced by connectivity(), Window::copy_array(), Window::get_array(), Window::get_parent(), Window::get_size(), Window::get_status(), Element_node_enumerator::next(), Element_node_enumerator_uns::next(), and Window::set_size().

100 {
101  if ( i>size_of_elements()) {
102  // if i is not a valid element ID, it must be one past the last ID
104  return NULL;
105  }
106 
107  // i must be either a valid element ID
108  COM_assertion_msg( i>=1, "ElementID out of bounds");
109 
110  Cnct_set::iterator it=_cnct_set.begin();
111  for ( ; it != _cnct_set.end(); ++it) {
112  Connectivity *c=*it;
113  if ( i>c->index_offset() && i<=c->index_offset()+c->size_of_elements())
114  return c;
115  }
116  return NULL;
117 }
#define COM_assertion(EX)
Error checking utility similar to the assert macro of the C language.
#define COM_assertion_msg(EX, msg)
Size size_of_elements() const
Get the total number of elements in the pane (including ghost elements).
Definition: Pane.h:142
Size index_offset() const
Get the index of the first element.
Definition: Connectivity.h:189
blockLoc i
Definition: read.cpp:79
Cnct_set _cnct_set
Set of element connectivity.
Definition: Pane.h:316
Size size_of_elements() const
Get the total number of elements (including ghost elements) in the table.
Definition: Connectivity.C:96
Encapsulates an element-connectivity of a mesh.
Definition: Connectivity.h:41

Here is the call graph for this function:

Here is the caller graph for this function:

const Connectivity* connectivity ( Size  i) const
throw (COM_exception
)
inline

Definition at line 263 of file Pane.h.

References connectivity(), and i.

264  { return const_cast<Pane*>(this)->connectivity( i); }
A Pane object contains a mesh, pane attribute, and field variables.
Definition: Pane.h:43
blockLoc i
Definition: read.cpp:79
Connectivity * connectivity(Size i)
Obtain the connectivity table containing the element with the given ID.
Definition: Pane.C:99

Here is the call graph for this function:

const Connectivity* connectivity ( const std::string &  a) const
throw (COM_exception
)
inlineprotected

Obtain the connectivity with the given name.

Definition at line 292 of file Pane.h.

References connectivity().

294  { return const_cast<Pane*>(this)->connectivity( a); }
A Pane object contains a mesh, pane attribute, and field variables.
Definition: Pane.h:43
Connectivity * connectivity(Size i)
Obtain the connectivity table containing the element with the given ID.
Definition: Pane.C:99

Here is the call graph for this function:

Connectivity * connectivity ( const std::string &  a,
bool  insert = false 
)
throw (COM_exception
)
protected

Definition at line 120 of file Pane.C.

References append_frame, COM_ERR_INVALID_ATTRIBUTE_NAME, COM_ERR_PANE_NOTEXIST, connectivity(), and Connectivity::get_size_info().

122 {
123  if ( _id == 0) {
125  (_window->name()+"."+a, Pane::connectivity));
126  }
127  Cnct_set::iterator it=_cnct_set.begin();
128  for ( ; it != _cnct_set.end(); ++it) {
129  if ( a==(*it)->name()) return *it;
130  }
131  if ( insert) {
132  const int *size_info=Connectivity::get_size_info(a);
133  if ( size_info) {
134  Connectivity *c = new Connectivity(this, a, -1-int(_cnct_set.size()),
135  size_info);
136  _cnct_set.push_back( c);
137  return _cnct_set.back();
138  }
139  else
141  (_window->name()+"."+a, Pane::connectivity));
142  }
143 
144  return NULL;
145 }
const std::string & name() const
Obtain the window&#39;s name.
Definition: Window.h:92
static const int * get_size_info(const std::string &aname)
Obtain the size info of pre-defined connectivity.
Definition: Connectivity.C:234
Encapsulates the states of an exception.
int _id
Pane id.
Definition: Pane.h:314
Window * _window
Point to the parent window.
Definition: Pane.h:313
Cnct_set _cnct_set
Set of element connectivity.
Definition: Pane.h:316
#define append_frame(s, frame)
Macro for appending the information about the given frame to the string s.
Connectivity * connectivity(Size i)
Obtain the connectivity table containing the element with the given ID.
Definition: Pane.C:99
void insert(Attribute *attr)
Insert an attribute onto the pane.
Definition: Pane.C:224
Encapsulates an element-connectivity of a mesh.
Definition: Connectivity.h:41

Here is the call graph for this function:

double* coordinates ( )
inline

Get the pointer to the values of the coordinates.

It returns NULL if the coordinates are staggered.

Definition at line 167 of file Pane.h.

References _attr_set, and COM_NC.

167 { return (double *)_attr_set[COM_NC]->pointer(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
const double* coordinates ( ) const
inline

Get a constant pointer to the values of the coordinates.

Definition at line 179 of file Pane.h.

References _attr_set, and COM_NC.

180  { return (const double *)_attr_set[COM_NC]->pointer(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
void delete_attribute ( int  id)
throw (COM_exception
)
protected

Delete an existing attribute with given id.

Definition at line 240 of file Pane.C.

References COM_assertion, COM_ATTS, COM_NUM_KEYWORDS, i, id(), n, Attribute::pane(), and Attribute::size_of_components().

Referenced by Window::delete_attribute(), and ~Pane().

240  {
241  if ( id == COM_ATTS) { // Delete all user-defined attributes.
242  for ( Size i=COM_NUM_KEYWORDS,n=_attr_set.size(); i<n; ++i) {
243  Attribute *a=_attr_set[i];
244  if ( a==NULL || a->pane()==NULL) continue;
245  int ncomp = a->size_of_components();
246  delete [] a; // Delete attribute and its individual components
247  if (ncomp>1) i+=ncomp;
248  }
249  _attr_set.resize( COM_NUM_KEYWORDS);
250  }
251  else {
253  int ncomp = a->size_of_components();
254  delete [] a; // Delete the attribute and its components.
255 
256  // Reset its pointers in _attr_set.
257  for ( int i=id+((ncomp>1)?ncomp:0); i>=id; --i) _attr_set[i] = NULL;
258 
259  if ( id+ncomp+(ncomp>1) ==int(_attr_set.size()))
260  _attr_set.resize( id);
261  }
262 }
#define COM_assertion(EX)
Error checking utility similar to the assert macro of the C language.
An Attribute object is a data member of a window.
Definition: Attribute.h:51
blockLoc i
Definition: read.cpp:79
const NT & n
unsigned int Size
Unsighed int.
Definition: Pane.h:47
const Pane * pane() const
Obtain a constant pointer to the owner pane of the attribute.
Definition: Attribute.h:172
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
int id() const
Get the ID of the pane.
Definition: Pane.h:96
int size_of_components() const
Obtain the number of components in the attribute.
Definition: Attribute.h:203

Here is the call graph for this function:

Here is the caller graph for this function:

void elements ( std::vector< Connectivity * > &  es)
inline

Obtain all the element connectivities of the pane.

Kept for backward compatibility

Definition at line 268 of file Pane.h.

References connectivities().

Referenced by write_attr_CGNS().

268 { connectivities(es); }
void connectivities(std::vector< Connectivity * > &es)
Obtain all the element connectivities of the pane.
Definition: Pane.h:254

Here is the call graph for this function:

Here is the caller graph for this function:

void elements ( std::vector< const Connectivity * > &  es) const
inline

Definition at line 269 of file Pane.h.

References connectivities().

270  { connectivities(es); }
void connectivities(std::vector< Connectivity * > &es)
Obtain all the element connectivities of the pane.
Definition: Pane.h:254

Here is the call graph for this function:

int id ( ) const
inline

Get the ID of the pane.

Definition at line 96 of file Pane.h.

References _id.

Referenced by Rocblas::gen2arg(), Window::inherit(), Window::reinit_attr(), Window::reinit_conn(), Element_node_vectors_k_const< Value >::set(), Element_vectors_k_const< Value >::set(), and write_attr_CGNS().

96 { return _id; }
int _id
Pane id.
Definition: Pane.h:314

Here is the caller graph for this function:

bool ignore_ghost ( ) const
inline

Definition at line 202 of file Pane.h.

References _ignore_ghost.

Referenced by Attribute::maxsize_of_ghost_items(), Attribute::maxsize_of_items(), Connectivity::size_of_elements(), Attribute::size_of_ghost_items(), Attribute::size_of_items(), and Connectivity::size_of_nodes().

202 { return _ignore_ghost; }
bool _ignore_ghost
Whether the ghosts were ignored.
Definition: Pane.h:317

Here is the caller graph for this function:

Attribute * inherit ( Attribute from,
const std::string &  aname,
int  mode,
bool  withghost 
)
throw (COM_exception
)
protected

Inherit an attribute from another pane onto the current pane:

Definition at line 451 of file Pane.C.

References append_frame, attribute(), CATCHBADALLOC_APPEND, CATCHEXP_APPEND, COM_ALL, COM_assertion, COM_assertion_msg, COM_ATTS, COM_CONN, COM_ERR_ATTRIBUTE_NOTEXIST, COM_ERR_GHOST_LAYERS, COM_ERR_INCOMPATIBLE_TYPES, COM_MESH, COM_NC, COM_NUM_KEYWORDS, COM_PCONN, COM_PMESH, COM_RIDGES, Attribute::compatible_types(), Attribute::copy_array(), Attribute::data_type(), Attribute::fullname(), i, Attribute::id(), iend, Attribute::inherit(), Attribute::is_windowed(), j, Attribute::location(), n, ni, nj, Attribute::pane(), Attribute::pointer(), Connectivity::pointer(), Attribute::size_of_components(), Attribute::size_of_items(), Attribute::size_of_real_items(), and Attribute::stride().

Referenced by Window::inherit().

453 {
454  if ( from==NULL)
456  (_window->name()+"."+aname,Pane::inherit));
457 
458  switch (from->id()) { // Process keywords
459  case COM_ALL:
460  inherit( from->pane()->attribute( COM_PMESH), "", mode, withghost);
461  inherit( from->pane()->attribute( COM_ATTS), "", mode, withghost);
462  return attribute( COM_ALL);
463  case COM_MESH:
464  inherit( from->pane()->attribute( COM_NC), "", mode, withghost);
465  inherit( from->pane()->attribute( COM_CONN), "", mode, withghost);
466  inherit( from->pane()->attribute( COM_RIDGES), "", mode, withghost);
467  return attribute( COM_MESH);
468  case COM_PMESH:
469  inherit( from->pane()->attribute( COM_NC), "", mode, withghost);
470  inherit( from->pane()->attribute( COM_CONN), "", mode, withghost);
471  inherit( from->pane()->attribute( COM_RIDGES), "", mode, withghost);
472  inherit( from->pane()->attribute( COM_PCONN), "", mode, withghost);
473  return attribute( COM_PMESH);
474  case COM_ATTS: {
475  // Loop through all attributes
476  std::vector<Attribute*> &atts=from->pane()->_attr_set;
477 
478  for ( int i=COM_NUM_KEYWORDS,n=atts.size(); i<n; ++i) {
479  Attribute *a = atts[i];
480  if ( a==NULL || a->pane()==NULL) continue;
481  if ( !a->is_windowed() || _id==0)
482  inherit( a, "", mode, withghost);
483  int ncomp= a->size_of_components();
484  if ( ncomp>1) i+= ncomp;
485  }
486  return attribute( COM_ATTS);
487  }
488  case COM_CONN: {
489  if ( _id==0) return attribute(COM_CONN);
490 
491  if (mode != INHERIT_COPY) {
492  // Clean up the current connectivity tables
493  for ( Size i=0; i<_cnct_set.size(); ++i) delete _cnct_set[i];
494  _cnct_set.clear();
495 
496  if ( mode==INHERIT_USE) {
497  ((Attribute_friend*)_attr_set[COM_CONN])->inherit( from, false, withghost);
498  // Check that if structured meshes, the nodal coordinates
499  // was also used.
500  COM_assertion( !is_structured() || _attr_set[COM_NC]->parent() &&
501  _attr_set[COM_NC]->parent()->pane() == from->pane());
502  }
503 
504  // Inherit individual connectivity tables
505  std::vector<Connectivity*>::iterator it=from->pane()->_cnct_set.begin();
506  std::vector<Connectivity*>::iterator iend=from->pane()->_cnct_set.end();
507  for ( ; it != iend; ++it) {
508  _cnct_set.push_back( new Connectivity( this, *it, (*it)->name(),
509  -_cnct_set.size()-1));
510  ((Connectivity_friend*)_cnct_set.back())->inherit(*it, mode, withghost);
511  }
512 
513  // Set _ignore_ghost
514  _ignore_ghost = !withghost;
517  (_window->name()+"."+aname,Pane::inherit));
518 
519  if ( mode == INHERIT_USE) return attribute( COM_ATTS);
520  }
521 
522  // Continue to copy mode
523  // Do not copy connectivity tables for structured meshes.
524  const std::vector<Connectivity*> &es = from->pane()->_cnct_set;
525  COM_assertion_msg( es.size() == _cnct_set.size(),
526  "Number of connectivity tables do not match");
527 
528  // Loop over the connectivity tables to copy each table
529  for ( int i=0, ni=_cnct_set.size(); i<ni; ++i) {
530  const Connectivity *conn=es[i];
531  int n=withghost?conn->size_of_items():conn->size_of_real_items();
532  _cnct_set[i]->copy_array( const_cast<int*>(conn->pointer()),
533  conn->stride(), n);
534  }
535 
537  return attribute( COM_ATTS);
538  }
539  default: ;
540  }
541 
542  std::string str = aname.size()?aname:from->name();
543 
544  // If from is a keyword and target is the same, then the current
545  // attribute must have the same ID. Otherwise, must find from name.
546  Attribute *a=(from->id()<COM_NUM_KEYWORDS && aname.empty())?
547  attribute(from->id()) : _window->attribute(str);
548 
549  if ( mode != INHERIT_COPY) {
550  if ( _id == 0) {
551  if ( a==NULL || a->size_of_components()!=from->size_of_components()) {
552  // New attribute only if it does not exist or the sizes do not match
553  try {
554  a=_window->new_attribute( str, from->location(), from->data_type(),
555  from->size_of_components(), from->unit());
556 
557  if ( from->is_windowed())
558  ((Attribute_friend*)a)->inherit( from, mode, withghost);
559 
561  }
562  else try {
563  ((Attribute_friend*)a)->inherit( from, mode, withghost);
565 
566  if ( mode == INHERIT_USE || !from->is_windowed()) return a;
567  }
568  else {
569  COM_assertion( a);
570  a = _attr_set[a->id()];
571  try {
572  ((Attribute_friend*)a)->inherit( from, mode, withghost);
574 
575  if ( mode == INHERIT_USE) return a;
576  }
577  }
578  else {
579  // Copy an attribute only if it exists in the target window.
580  if ( a) a = _attr_set[a->id()];
581  else return a;
582 
583  if ( !Attribute::compatible_types( from->data_type(), a->data_type()))
585  (from->fullname()+" and "+a->fullname(),
586  Pane::inherit));
587  }
588 
589  if ( (_id==0) != (from->is_windowed())) return a;
590 
591  // Continue to copy dataset
592  if ( !withghost && is_structured() && size_of_ghost_layers())
594  (_window->name()+"."+aname,Pane::inherit));
595 
596  // count is the number of panes, nodes, or elements to loop through
597  int count = withghost?from->size_of_items():from->size_of_real_items();
598  int s_nc = from->size_of_components();
599  const Pane *src_pane = from->pane();
600 
601  COM_assertion_msg( from->location() == a->location(),
602  (std::string("Location of attributes ")+
603  from->fullname()+" and " +a->fullname()+
604  " do not match during copying.").c_str());
605 
606  // loop through components of source's data
607  if ( count) for ( int j=(s_nc>1), nj=s_nc-(s_nc==1); j<=nj; ++j) {
608  // src_data points to source data for current component
609  const Attribute *src_data = src_pane->attribute( from->id()+j);
610 
611  // dest_data points to dest data for current component
612  Attribute *dest_data = attribute( a->id()+j);
613 
614  if ( dest_data->pointer() && src_data->pointer()) {
615  COM_assertion_msg( withghost && dest_data->size_of_items()==src_data->size_of_items() ||
616  !withghost && dest_data->size_of_real_items()==src_data->size_of_real_items(),
617  (std::string("Number of items of attributes ")+
618  from->fullname()+" and " +a->fullname()+
619  " do not match during copying.").c_str());
620  try {
621  dest_data->copy_array( const_cast<void*>(src_data->pointer()),
622  src_data->stride(), count);
624  }
625  }
626 
627  return a;
628 }
if(dy > dx)
A Pane object contains a mesh, pane attribute, and field variables.
Definition: Pane.h:43
#define COM_assertion(EX)
Error checking utility similar to the assert macro of the C language.
const int * pointer() const
Get a constant pointer to the connectivity array.
Definition: Connectivity.h:206
An Attribute object is a data member of a window.
Definition: Attribute.h:51
static bool compatible_types(COM_Type t1, COM_Type t2)
Definition: Attribute.C:531
bool _ignore_ghost
Whether the ghosts were ignored.
Definition: Pane.h:317
#define COM_assertion_msg(EX, msg)
bool is_windowed() const
Checks whether the attribute is associated with the window.
Definition: Attribute.h:188
bool is_structured() const
Is mesh of the pane structured?
Definition: Pane.h:110
const std::string & name() const
Obtain the window&#39;s name.
Definition: Window.h:92
Shorter_size location() const
Obtain the location of the attribute.
Definition: Attribute.h:186
Encapsulates the states of an exception.
Attribute * attribute(const std::string &a)
Obtain the attribute from given name.
Definition: Pane.C:148
const std::string & unit() const
Obtain the unit of the attribute.
Definition: Attribute.h:200
#define CATCHBADALLOC_APPEND(frame)
Macro for catching an deallocation exception and append the information to the current frame...
int _id
Pane id.
Definition: Pane.h:314
Window * _window
Point to the parent window.
Definition: Pane.h:313
const void * pointer() const
Obtain a constant pointer to the physical address.
Definition: Attribute.h:150
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE knode iend
Attribute * new_attribute(const std::string &aname, const char loc, const int type, int ncomp, const std::string &unit)
Create a new Attribute object with given properties.
Definition: Window.C:86
Size size_of_ghost_layers() const
Dimension of the pane.
Definition: Pane.h:212
const std::string & name() const
Obtain the name of the attribute.
Definition: Attribute.h:113
blockLoc i
Definition: read.cpp:79
const NT & n
int stride() const
Obtain the stride of the attribute in base datatype.
Definition: Attribute.h:233
unsigned int Size
Unsighed int.
Definition: Pane.h:47
int size_of_real_items() const
Obtain the number of real items in the attribute.
Definition: Attribute.C:167
const Pane * pane() const
Obtain a constant pointer to the owner pane of the attribute.
Definition: Attribute.h:172
Attribute * attribute(const std::string &a)
Obtain a pointer to the attribute metadata from its name.
Definition: Window.C:842
Cnct_set _cnct_set
Set of element connectivity.
Definition: Pane.h:316
#define append_frame(s, frame)
Macro for appending the information about the given frame to the string s.
j indices j
Definition: Indexing.h:6
void refresh_connectivity()
Update offsets and sizes of connectivity of an unstructured mesh.
Definition: Pane.C:667
void int int REAL REAL REAL *z blockDim dim * ni
Definition: read.cpp:77
Attribute * inherit(Attribute *from, const std::string &aname, int mode, bool withghost)
Inherit an attribute from another pane onto the current pane:
Definition: Pane.C:451
void copy_array(void *buf, int strd, int nitem, int offset=0, int direction=COPY_IN)
Definition: Attribute.C:249
void int * nj
Definition: read.cpp:74
#define CATCHEXP_APPEND(frame)
Macro for catching an exception and append the information to the current frame.
COM_Type data_type() const
Obtain the data type of each component of the attribute.
Definition: Attribute.h:197
int id() const
Obtain the id (or index) of the attribute.
Definition: Attribute.h:120
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
Encapsulates an element-connectivity of a mesh.
Definition: Connectivity.h:41
int size_of_items() const
Obtain the number of items in the attribute.
Definition: Attribute.C:111
std::string fullname() const
Obtain the full name of the attribute including window name suitable for printing out error messages...
Definition: Attribute.C:82
int size_of_components() const
Obtain the number of components in the attribute.
Definition: Attribute.h:203

Here is the call graph for this function:

Here is the caller graph for this function:

void init_done ( )
throw (COM_exception
)

Finalize the initialization of a pane.

Definition at line 85 of file Pane.C.

References _attr_set, _window, append_frame, Attribute::capacity(), COM_ERR_INVALID_CAPACITY, Attribute::fullname(), i, Attribute::initialized(), Window::last_attribute_id(), Attribute::pane(), s, and Attribute::size_of_items().

85  {
86  _attr_set.resize( _window->last_attribute_id()); // Shrink the array.
87 
88  // Loop through the attributes to initialize the unitialized ones to NULL
89  for ( int i=0, s=_attr_set.size(); i<s; ++i) {
90  Attribute *a = _attr_set[i];
91  if ( a==NULL || a->pane()==NULL) continue;
92 
93  if ( a->initialized() && a->size_of_items()>a->capacity())
96  }
97 }
bool initialized() const
Returns whether the array for the attribute has been set or allocated.
Definition: Attribute.h:244
An Attribute object is a data member of a window.
Definition: Attribute.h:51
double s
Definition: blastest.C:80
Encapsulates the states of an exception.
void init_done()
Finalize the initialization of a pane.
Definition: Pane.C:85
int capacity() const
Obtain the capacity of the array.
Definition: Attribute.h:230
Window * _window
Point to the parent window.
Definition: Pane.h:313
blockLoc i
Definition: read.cpp:79
const Pane * pane() const
Obtain a constant pointer to the owner pane of the attribute.
Definition: Attribute.h:172
#define append_frame(s, frame)
Macro for appending the information about the given frame to the string s.
int last_attribute_id() const
Return the last attribute id.
Definition: Window.h:291
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
int size_of_items() const
Obtain the number of items in the attribute.
Definition: Attribute.C:111
std::string fullname() const
Obtain the full name of the attribute including window name suitable for printing out error messages...
Definition: Attribute.C:82

Here is the call graph for this function:

void insert ( Attribute attr)
throw (COM_exception
)
protected

Insert an attribute onto the pane.

Definition at line 224 of file Pane.C.

References COM_assertion, id(), and s.

Referenced by rflu_modrepair3d::putpnt(), and rflu_modrepair3d::volput().

224  {
225  COM_assertion( attr->pane()==this);
226 
227  // Determine id of the new attribute
228  int id = attr->id();
229 
230  // Resize _attr_set and delete existing attribute with the id
231  if ( int(_attr_set.size())<=id) { // resize _attr_set
232  int s = attr->size_of_components();
233  _attr_set.resize( id+s+(s>1), NULL);
234  }
235 
236  if ( _attr_set[id]==NULL) _attr_set[id] = attr;
237  else COM_assertion( attr == _attr_set[id]);
238 }
#define COM_assertion(EX)
Error checking utility similar to the assert macro of the C language.
double s
Definition: blastest.C:80
const Pane * pane() const
Obtain a constant pointer to the owner pane of the attribute.
Definition: Attribute.h:172
int id() const
Obtain the id (or index) of the attribute.
Definition: Attribute.h:120
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
int id() const
Get the ID of the pane.
Definition: Pane.h:96
int size_of_components() const
Obtain the number of components in the attribute.
Definition: Attribute.h:203

Here is the call graph for this function:

Here is the caller graph for this function:

bool is_mixed ( ) const
inline

Does the pane contain more than one type of elements?

Definition at line 107 of file Pane.h.

References _cnct_set.

107 { return _cnct_set.size()>1; }
Cnct_set _cnct_set
Set of element connectivity.
Definition: Pane.h:316
bool is_structured ( ) const
inline

Is mesh of the pane structured?

Definition at line 110 of file Pane.h.

References _cnct_set.

Referenced by Element_node_enumerator::Element_node_enumerator(), Element_node_enumerator::id(), refresh_connectivity(), size_i(), size_j(), size_k(), Element_node_enumerator::vertex(), and write_attr_CGNS().

111  { return _cnct_set.size()==1 && _cnct_set[0]->is_structured(); }
Cnct_set _cnct_set
Set of element connectivity.
Definition: Pane.h:316

Here is the caller graph for this function:

bool is_unstructured ( ) const
inline

Is mesh of the pane unstructured?

Definition at line 103 of file Pane.h.

References _cnct_set.

Referenced by Element_node_enumerator::Element_node_enumerator(), Pane_node_enumerator::next(), Pane_node_enumerator::Pane_node_enumerator(), and write_attr_CGNS().

104  { return _cnct_set.size()!=1 || !_cnct_set[0]->is_structured(); }
Cnct_set _cnct_set
Set of element connectivity.
Definition: Pane.h:316

Here is the caller graph for this function:

Size maxsize_of_elements ( ) const
inline

Get the maximum number of elements allowed in the pane (including ghost elements)

Definition at line 146 of file Pane.h.

References _attr_set, and COM_CONN.

147  { return _attr_set[COM_CONN]->maxsize_of_items(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
Size maxsize_of_ghost_elements ( ) const
inline

Get the maximum number of elements allowed in the pane (including ghost elements)

Definition at line 154 of file Pane.h.

References _attr_set, and COM_CONN.

155  { return _attr_set[COM_CONN]->maxsize_of_ghost_items(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
Size maxsize_of_ghost_nodes ( ) const
inline

Get the maximum number of real nodes in the pane (excluding ghost nodes).

Definition at line 130 of file Pane.h.

References _attr_set, and COM_NC.

131  { return _attr_set[COM_NC]->maxsize_of_ghost_items(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
Size maxsize_of_nodes ( ) const
inline

Get the maximum number of real nodes in the pane (excluding ghost nodes).

Definition at line 122 of file Pane.h.

References _attr_set, and COM_NC.

123  { return _attr_set[COM_NC]->maxsize_of_items(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
Size maxsize_of_real_elements ( ) const
inline

Get the maximum number of real elements allowed in the pane (excluding ghost elements).

Definition at line 162 of file Pane.h.

References _attr_set, and COM_CONN.

163  { return _attr_set[COM_CONN]->maxsize_of_real_items(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
Size maxsize_of_real_nodes ( ) const
inline

Get the maximum number of real nodes in the pane (excluding ghost nodes).

Definition at line 138 of file Pane.h.

References _attr_set, and COM_NC.

139  { return _attr_set[COM_NC]->maxsize_of_real_items(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
Attribute * new_attribute ( const std::string &  aname,
int  aid,
const char  loc,
const int  type,
int  ncomp,
const std::string &  unit 
)
throw (COM_exception
)
protected

Definition at line 178 of file Pane.C.

References append_frame, COM_assertion, COM_ERR_INVALID_ATTRIBUTE_NAME, i, n, and Attribute::name().

Referenced by Window::new_attribute().

181 {
182 
183  if ( loc == 'c' && id() != 0) {
184  // check if connectivity table exists, make sure it is not dummy pane
185  std::string::size_type pos = aname.find( ":");
186  std::string conn = aname.substr(pos, aname.size());
187  Connectivity *con = connectivity( conn,false);
188  if (con == NULL)
191  }
192 
193  // Insert the object into both the set and the map.
194  Attribute *atts;
195  if ( aid>=int(_attr_set.size()))
196  atts = new Attribute[ncomp+(ncomp>1)]; // Allocate memory
197  else {
198  atts = attribute(aid); COM_assertion( atts);
199  // Call destructors
200  for ( int i=0, n=ncomp+(ncomp>1); i<n; ++i) atts[i].~Attribute();
201  }
202  Attribute *a = new (atts) Attribute( this, aname, aid, loc,
203  type, ncomp, unit);
204  insert( a);
205 
206  // Create an object for each individual component
207  if ( ncomp>1) for ( int i=1; i<=ncomp; ++i) {
208  char buf[10];
209  std::sprintf( buf, "%d-", i);
210  std::string newname = std::string( buf)+a->name();
211 
212  Attribute *ai = new (&atts[i]) Attribute( this, newname, aid+i,
213  loc, type, 1, unit);
214  insert( ai);
215  }
216 
217  if ( _id && loc == 'w') { // Inherit window attribute
218  reinterpret_cast<Attribute_friend*>(a)->
219  inherit( _window->attribute( aid), INHERIT_USE, true);
220  }
221  return a;
222 }
#define COM_assertion(EX)
Error checking utility similar to the assert macro of the C language.
An Attribute object is a data member of a window.
Definition: Attribute.h:51
Encapsulates the states of an exception.
Attribute * attribute(const std::string &a)
Obtain the attribute from given name.
Definition: Pane.C:148
int _id
Pane id.
Definition: Pane.h:314
Window * _window
Point to the parent window.
Definition: Pane.h:313
const std::string & name() const
Obtain the name of the attribute.
Definition: Attribute.h:113
blockLoc i
Definition: read.cpp:79
const NT & n
Attribute * attribute(const std::string &a)
Obtain a pointer to the attribute metadata from its name.
Definition: Window.C:842
#define append_frame(s, frame)
Macro for appending the information about the given frame to the string s.
Connectivity * connectivity(Size i)
Obtain the connectivity table containing the element with the given ID.
Definition: Pane.C:99
Attribute * new_attribute(const std::string &aname, int aid, const char loc, const int type, int ncomp, const std::string &unit)
Definition: Pane.C:178
Attribute * inherit(Attribute *from, const std::string &aname, int mode, bool withghost)
Inherit an attribute from another pane onto the current pane:
Definition: Pane.C:451
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
void insert(Attribute *attr)
Insert an attribute onto the pane.
Definition: Pane.C:224
Encapsulates an element-connectivity of a mesh.
Definition: Connectivity.h:41

Here is the call graph for this function:

Here is the caller graph for this function:

Pane& operator= ( const Pane )
private
int* pane_connectivity ( )
inline

Get a pointer to the values of the pane connectivity.

Definition at line 195 of file Pane.h.

References _attr_set, and COM_PCONN.

196  { return (int*)_attr_set[COM_PCONN]->pointer(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
const int* pane_connectivity ( ) const
inline

Get a const pointer to the values of the pane connectivity.

Definition at line 199 of file Pane.h.

References _attr_set, and COM_PCONN.

200  { return (const int *)_attr_set[COM_PCONN]->pointer(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
void refresh_connectivity ( )
throw (COM_exception
)

Update offsets and sizes of connectivity of an unstructured mesh.

Definition at line 667 of file Pane.C.

References _attr_set, _cnct_set, _window, append_frame, COM_CONN, COM_ERR_INVALID_SIZE, COM_NC, is_structured(), Window::name(), Connectivity::set_offset(), Connectivity::size_of_elements(), Connectivity::size_of_ghost_elements(), size_of_ghost_nodes(), and size_of_nodes().

667  {
668  int nelems = 0, ngelems = 0;
669 
670  // Set the number of elements
671  if ( !_attr_set[COM_CONN]->parent()) {
672  // Loop through the connectivity table
673  Cnct_set::iterator it=_cnct_set.begin();
674  for ( ; it != _cnct_set.end(); ++it) {
675  Connectivity_friend *con = (Connectivity_friend*)*it;
676  con->set_offset( nelems);
677  nelems += con->size_of_elements();
678  ngelems += con->size_of_ghost_elements();
679  }
680 
681  if ( nelems<0 || ngelems<0)
684  _attr_set[COM_CONN]->set_size(nelems, ngelems);
685  }
686 
687  // Set the number of nodes for structured meshes
688  if ( is_structured() && !_attr_set[COM_NC]->parent()) {
689  _attr_set[COM_NC]->set_size(_cnct_set[0]->size_of_nodes(),
691  }
692 }
bool is_structured() const
Is mesh of the pane structured?
Definition: Pane.h:110
Size size_of_ghost_nodes() const
Get the number of ghost nodes.
Definition: Pane.h:126
const std::string & name() const
Obtain the window&#39;s name.
Definition: Window.h:92
Encapsulates the states of an exception.
Window * _window
Point to the parent window.
Definition: Pane.h:313
Cnct_set _cnct_set
Set of element connectivity.
Definition: Pane.h:316
#define append_frame(s, frame)
Macro for appending the information about the given frame to the string s.
Size size_of_nodes() const
Get the total number of nodes in the pane (including ghost nodes).
Definition: Pane.h:118
void refresh_connectivity()
Update offsets and sizes of connectivity of an unstructured mesh.
Definition: Pane.C:667
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315

Here is the call graph for this function:

void reinit_attr ( int  aid,
OP_Init  op,
void **  addr,
int  strd,
int  cap 
)
throw (COM_exception
)
protected

Definition at line 265 of file Pane.C.

References Attribute::allocate(), append_frame, Attribute::capacity(), COM_ALL, COM_assertion, COM_ATTS, COM_CONN, COM_ERR_ATTRIBUTE_NOTEXIST, COM_ERR_INVALID_SIZE, COM_ERR_PANE_NOTEXIST, COM_ERR_WAS_INITIALIZED, COM_MESH, COM_NC, COM_NUM_KEYWORDS, COM_PCONN, COM_PMESH, COM_RIDGES, Attribute::deallocate(), Attribute::fullname(), i, Attribute::is_digit(), Attribute::is_windowed(), n, Attribute::name(), Attribute::pane(), Attribute::set_size(), Attribute::size_of_components(), Attribute::size_of_items(), Attribute::size_set(), and Attribute::stride().

Referenced by Window::reinit_attr().

267 {
268  switch ( aid) {
269  case COM_CONN: {
270  COM_assertion( op != OP_SET && op != OP_SET_CONST);
271  // loop through the connectivity
272  for ( int i=0, n=_cnct_set.size(); i<n; ++i) {
273  if ( !_cnct_set[i]->is_structured())
274  reinit_conn( _cnct_set[i], op, NULL, strd, cap);
275  }
276 
277  if ( addr) *addr = NULL;
278  return;
279  }
280  case COM_MESH: {
281  COM_assertion( op != OP_SET && op != OP_SET_CONST);
282  reinit_attr( COM_NC, op, NULL, strd, cap);
283  reinit_attr( COM_CONN, op, NULL, strd, cap);
284  reinit_attr( COM_RIDGES, op, NULL, strd, cap);
285  if ( addr) *addr = NULL;
286  return;
287  }
288  case COM_PMESH: {
289  COM_assertion( op != OP_SET && op != OP_SET_CONST);
290  reinit_attr( COM_NC, op, NULL, strd, cap);
291  reinit_attr( COM_CONN, op, NULL, strd, cap);
292  reinit_attr( COM_RIDGES, op, NULL, strd, cap);
293  reinit_attr( COM_PCONN, op, NULL, strd, cap);
294  if ( addr) *addr = NULL;
295  return;
296  }
297  case COM_ATTS: {
298  COM_assertion( op != OP_SET && op != OP_SET_CONST);
299  // Loop through the attributes
300  for ( int i=COM_NUM_KEYWORDS, n=_attr_set.size(); i<n; ++i) {
301  Attribute *a = _attr_set[i];
302  if ( a==NULL || a->pane()==NULL) continue;
303  if ( !a->is_windowed() || _id==0)
304  reinit_attr( i, op, NULL, strd, cap);
305  int ncomp= a->size_of_components();
306  if ( ncomp>1) i+= ncomp;
307  }
308  return;
309  }
310  case COM_ALL: {
311  COM_assertion( op != OP_SET && op != OP_SET_CONST);
312  reinit_attr( COM_PMESH, op, NULL, strd, cap);
313  reinit_attr( COM_ATTS, op, NULL, strd, cap);
314  return;
315  }
316  default: ;
317  }
318 
319  Attribute *a = attribute( aid);
320  if ( a==NULL)
323 
324  // If _id is 0, then handle only window attributes.
325  if ( !a->is_windowed() && !_id) {
326  if (op == OP_SET || op == OP_SET_CONST)
329  else
330  return;
331  }
332 
333  int errcode;
334  void *p;
335  int ncomp = a->size_of_components();
336 
337  if ( op==OP_DEALLOC) {
338  // Deallocate if was allocated by Roccom
339  errcode = a->deallocate();
340  p = NULL;
341  }
342  else {
343  COM_assertion( op==OP_SET_CONST||op==OP_SET||op==OP_ALLOC||op==OP_RESIZE);
344 
345  // If size is not yet set
346  if ( !a->size_set()) {
347  if ( a->is_windowed())
348  a->set_size(1); // Change the default size of window attributes to 1
349  else // Throw an exception for other types of attributes
352  }
353 
354  // Assign default value for cap and strd
355  if ( cap==0) {
356  // Default value for capacity is the number of items for set_array
357  // but the large of the current capacity and the the number of items.
358  if ( op==OP_SET || op==OP_SET_CONST) cap = a->size_of_items();
359  else {
360  if ( a->capacity()==0)
361  cap = a->size_of_items();
362  else if ( a->size_of_items()<=a->capacity())
363  cap = a->capacity();
364  else
365  cap = a->size_of_items()+a->size_of_items()/5; // Current size pluse 20% more
366  }
367  }
368 
369  if ( (op == OP_SET || op == OP_SET_CONST) && *addr && cap==0)
370  *addr = NULL; // Enforce the array to be a NULL pointer
371 
372  // Make the attribute itself set to NULL if operating on its components.
373  if ( Attribute::is_digit(a->name()[0])) {
374  int icomp=std::atoi( a->name().c_str());
375  if ( attribute(aid-icomp)->initialized())
378  }
379 
380  if ( strd==0 || strd<0 && a->stride()==0)
381  // Default value for stride is number of components
382  strd = ncomp;
383  else if ( strd<0)
384  strd = a->stride();
385 
386  if ( op == OP_SET || op == OP_SET_CONST) {
387  ((Attribute_friend*)a)->set_pointer(*addr, strd, cap,
388  0, op==OP_SET_CONST);
389  p = *addr;
390  }
391  else {
392  p = a->allocate( strd, cap, op == OP_ALLOC);
393  if ( addr) *addr = p;
394  }
395  errcode=0;
396  }
397 }
bool size_set() const
Returns whether the size for the attribute has been set.
Definition: Attribute.C:99
bool initialized() const
Returns whether the array for the attribute has been set or allocated.
Definition: Attribute.h:244
#define COM_assertion(EX)
Error checking utility similar to the assert macro of the C language.
An Attribute object is a data member of a window.
Definition: Attribute.h:51
static bool is_digit(char c)
Definition: Attribute.h:264
bool is_windowed() const
Checks whether the attribute is associated with the window.
Definition: Attribute.h:188
void reinit_conn(Connectivity *con, OP_Init op, int **addr, int strd, int cap)
Definition: Pane.C:400
bool is_structured() const
Is mesh of the pane structured?
Definition: Pane.h:110
const std::string & name() const
Obtain the window&#39;s name.
Definition: Window.h:92
Encapsulates the states of an exception.
int deallocate()
Deallocate memory if it was allocated by allocate().
Definition: Attribute.C:473
Attribute * attribute(const std::string &a)
Obtain the attribute from given name.
Definition: Pane.C:148
int capacity() const
Obtain the capacity of the array.
Definition: Attribute.h:230
int _id
Pane id.
Definition: Pane.h:314
Window * _window
Point to the parent window.
Definition: Pane.h:313
const std::string & name() const
Obtain the name of the attribute.
Definition: Attribute.h:113
blockLoc i
Definition: read.cpp:79
void reinit_attr(int aid, OP_Init op, void **addr, int strd, int cap)
Definition: Pane.C:265
const NT & n
int stride() const
Obtain the stride of the attribute in base datatype.
Definition: Attribute.h:233
void set_size(int nitems, int ngitems=0)
Set the size of items and ghost items.
Definition: Attribute.C:191
const Pane * pane() const
Obtain a constant pointer to the owner pane of the attribute.
Definition: Attribute.h:172
Cnct_set _cnct_set
Set of element connectivity.
Definition: Pane.h:316
#define append_frame(s, frame)
Macro for appending the information about the given frame to the string s.
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
int size_of_items() const
Obtain the number of items in the attribute.
Definition: Attribute.C:111
std::string fullname() const
Obtain the full name of the attribute including window name suitable for printing out error messages...
Definition: Attribute.C:82
int size_of_components() const
Obtain the number of components in the attribute.
Definition: Attribute.h:203

Here is the call graph for this function:

Here is the caller graph for this function:

void reinit_conn ( Connectivity con,
OP_Init  op,
int **  addr,
int  strd,
int  cap 
)
throw (COM_exception
)
protected

Definition at line 400 of file Pane.C.

References append_frame, COM_ERR_ALLOC_STRUCTURED, and COM_ERR_PANE_NOTEXIST.

402 {
403  // Assign default value for cap and strd
404  if ( op!=OP_DEALLOC) {
405  if ( cap==0) {
406  // Default value for capacity is the number of items for set_array
407  // but the large of the current capacity and the the number of items plus some buffer.
408  if ( op==OP_SET || op==OP_SET_CONST) cap = con->size_of_items();
409  else {
410  if ( con->capacity()==0)
411  cap = con->size_of_items();
412  else if ( con->size_of_items()<=con->capacity())
413  cap = con->capacity();
414  else
415  cap = con->size_of_items()+con->size_of_items()/5; // Current size pluse 20% more
416  }
417  }
418 
419  if ( strd==0 || strd<0 && con->stride()==0)
420  // Default value for stride is number of components
421  strd = con->size_of_components();
422  else if ( strd<0)
423  strd = con->stride();
424  }
425 
426  if ( op == OP_SET || op == OP_SET_CONST) {
427  if ( !id())
430 
431  if ( *addr && cap==0 && !con->is_structured())
432  *addr = NULL; // Enforce the array to be a NULL pointer
433 
434  ((Connectivity_friend*)con)->set_pointer( *addr, strd, cap,
435  op==OP_SET_CONST);
436  }
437  else {
438  if ( con->is_structured())
440  append_frame(con->fullname(),Pane::reinit_conn));
441  void *p=NULL;
442  if ( op==OP_DEALLOC)
443  { con->deallocate(); p=NULL; }
444  else
445  p = con->allocate( strd, cap, op==OP_ALLOC);
446 
447  if ( addr) *addr = (int*)p;
448  }
449 }
bool is_structured() const
Determine whether the mesh is quadratic.
Definition: Connectivity.h:128
void reinit_conn(Connectivity *con, OP_Init op, int **addr, int strd, int cap)
Definition: Pane.C:400
Encapsulates the states of an exception.
int capacity() const
Obtain the capacity of the array.
Definition: Attribute.h:230
int stride() const
Obtain the stride of the attribute in base datatype.
Definition: Attribute.h:233
#define append_frame(s, frame)
Macro for appending the information about the given frame to the string s.
int size_of_items() const
Obtain the number of items in the attribute.
Definition: Attribute.C:111
std::string fullname() const
Obtain the full name of the attribute including window name suitable for printing out error messages...
Definition: Attribute.C:82
int size_of_components() const
Obtain the number of components in the attribute.
Definition: Attribute.h:203
void set_ignore_ghost ( bool  ignore)
inline

Definition at line 204 of file Pane.h.

References _ignore_ghost.

204 { _ignore_ghost = ignore; }
bool _ignore_ghost
Whether the ghosts were ignored.
Definition: Pane.h:317
void set_size ( Attribute a,
int  nitems,
int  ng 
)
throw (COM_exception
)
protected

Set the size of an attribute.

Definition at line 630 of file Pane.C.

References append_frame, COM_assertion_msg, COM_CONN, COM_ERR_INVALID_SIZE, COM_ERR_PANE_NOTEXIST, and COM_NC.

Referenced by Window::set_size(), and set_size().

631  {
632  if ( nitems<ng)
635  // Get the corresponding attribute object.
636  if ( !a->is_windowed() && !_id)
639 
640  if ( a->is_nodal()) {
641  COM_assertion_msg( a->id() == COM_NC,
642  (std::string("Cannot set size for nodal attribute ")+
643  a->fullname()+". Must use the nc attribute").c_str());
644 
645  _attr_set[COM_NC]->set_size( nitems, ng);
646  }
647  else if ( a->is_elemental()) {
648  COM_assertion_msg( a->id() == COM_CONN,
649  (std::string("Cannot set size for elemental attribute ")+
650  a->fullname()+". Must use the conn attribute").c_str());
651 
652  _attr_set[COM_CONN]->set_size( nitems, ng);
653  }
654  else {
655  attribute(a->id())->set_size( nitems, ng);
656  }
657 }
#define COM_assertion_msg(EX, msg)
bool is_windowed() const
Checks whether the attribute is associated with the window.
Definition: Attribute.h:188
void set_size(Attribute *a, int nitems, int ng)
Set the size of an attribute.
Definition: Pane.C:630
Encapsulates the states of an exception.
Attribute * attribute(const std::string &a)
Obtain the attribute from given name.
Definition: Pane.C:148
int _id
Pane id.
Definition: Pane.h:314
bool is_nodal() const
Checks whether the attribute is associated with a node.
Definition: Attribute.h:194
#define append_frame(s, frame)
Macro for appending the information about the given frame to the string s.
int id() const
Obtain the id (or index) of the attribute.
Definition: Attribute.h:120
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
bool is_elemental() const
Checks whether the attribute is associated with an element.
Definition: Attribute.h:192
std::string fullname() const
Obtain the full name of the attribute including window name suitable for printing out error messages...
Definition: Attribute.C:82

Here is the caller graph for this function:

void set_size ( Connectivity con,
int  nitems,
int  ng 
)
throw (COM_exception
)
protected

Set the size of a connectivity table.

Definition at line 659 of file Pane.C.

References append_frame, COM_ERR_INVALID_SIZE, and set_size().

660  {
661  if ( !con->is_structured() && nitems<ng)
664  con->set_size( nitems, ng);
665 }
bool is_structured() const
Determine whether the mesh is quadratic.
Definition: Connectivity.h:128
void set_size(Attribute *a, int nitems, int ng)
Set the size of an attribute.
Definition: Pane.C:630
Encapsulates the states of an exception.
void set_size(int nitems, int ngitems=0)
Set the size of items and ghost items.
Definition: Connectivity.C:76
#define append_frame(s, frame)
Macro for appending the information about the given frame to the string s.
std::string fullname() const
Obtain the full name of the attribute including window name suitable for printing out error messages...
Definition: Attribute.C:82

Here is the call graph for this function:

Size size_i ( ) const
inline

Get the number of nodes in i-dimension if the mesh is structured.

Definition at line 216 of file Pane.h.

References _cnct_set, and is_structured().

Referenced by Element_node_enumerator::Element_node_enumerator(), Element_node_enumerator::id(), Element_node_enumerator::next(), Element_node_enumerator_str_2::next(), Element_node_enumerator::operator[](), Element_node_enumerator_str_2::operator[](), Pane_node_enumerator::Pane_node_enumerator(), Element_node_enumerator::vertex(), and write_attr_CGNS().

217  { return !is_structured()?0:_cnct_set[0]->size_i(); }
bool is_structured() const
Is mesh of the pane structured?
Definition: Pane.h:110
Cnct_set _cnct_set
Set of element connectivity.
Definition: Pane.h:316

Here is the call graph for this function:

Here is the caller graph for this function:

Size size_j ( ) const
inline

Get the number of nodes in j-dimension if the mesh is structured.

Definition at line 219 of file Pane.h.

References _cnct_set, and is_structured().

Referenced by Element_node_enumerator::Element_node_enumerator(), Pane_node_enumerator::Pane_node_enumerator(), Element_node_enumerator::vertex(), and write_attr_CGNS().

220  { return !is_structured()?0:_cnct_set[0]->size_j(); }
bool is_structured() const
Is mesh of the pane structured?
Definition: Pane.h:110
Cnct_set _cnct_set
Set of element connectivity.
Definition: Pane.h:316

Here is the call graph for this function:

Here is the caller graph for this function:

Size size_k ( ) const
inline

Get the number of nodes in k-dimension if the mesh is structured.

Definition at line 222 of file Pane.h.

References _cnct_set, and is_structured().

Referenced by Pane_node_enumerator::Pane_node_enumerator(), and write_attr_CGNS().

223  { return !is_structured()?0:_cnct_set[0]->size_k(); }
bool is_structured() const
Is mesh of the pane structured?
Definition: Pane.h:110
Cnct_set _cnct_set
Set of element connectivity.
Definition: Pane.h:316

Here is the call graph for this function:

Here is the caller graph for this function:

Size size_of_elements ( ) const
inline

Get the total number of elements in the pane (including ghost elements).

Definition at line 142 of file Pane.h.

References _attr_set, and COM_CONN.

Referenced by Element_node_enumerator::Element_node_enumerator().

143  { return _attr_set[COM_CONN]->size_of_items(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315

Here is the caller graph for this function:

Size size_of_ghost_elements ( ) const
inline

Get the total number of ghost elements.

Definition at line 150 of file Pane.h.

References _attr_set, and COM_CONN.

151  { return _attr_set[COM_CONN]->size_of_ghost_items(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
Size size_of_ghost_layers ( ) const
inline

Dimension of the pane.

Get the number of ghost layers for structured mesh

Definition at line 212 of file Pane.h.

Referenced by Pane_node_enumerator::Pane_node_enumerator(), and write_attr_CGNS().

213  { return _cnct_set.empty()?0:_cnct_set[0]->size_of_ghost_items(); }
Cnct_set _cnct_set
Set of element connectivity.
Definition: Pane.h:316

Here is the caller graph for this function:

Size size_of_ghost_nodes ( ) const
inline

Get the number of ghost nodes.

Definition at line 126 of file Pane.h.

References _attr_set, and COM_NC.

Referenced by refresh_connectivity(), Connectivity::size_of_ghost_nodes(), and write_attr_CGNS().

127  { return _attr_set[COM_NC]->size_of_ghost_items(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315

Here is the caller graph for this function:

Size size_of_nodes ( ) const
inline

Get the total number of nodes in the pane (including ghost nodes).

Definition at line 118 of file Pane.h.

Referenced by Pane_node_enumerator::Pane_node_enumerator(), refresh_connectivity(), Connectivity::size_of_nodes(), and write_attr_CGNS().

119  { return _attr_set[COM_NC]->size_of_items(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315

Here is the caller graph for this function:

Size size_of_real_elements ( ) const
inline

Get the number of real elements in the pane (excluding ghost elements).

Definition at line 158 of file Pane.h.

References _attr_set, and COM_CONN.

Referenced by write_attr_CGNS().

159  { return _attr_set[COM_CONN]->size_of_real_items(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315

Here is the caller graph for this function:

Size size_of_real_nodes ( ) const
inline

Get the number of real nodes in the pane (excluding ghost nodes).

Definition at line 134 of file Pane.h.

References _attr_set, and COM_NC.

Referenced by Connectivity::size_of_real_nodes(), and write_attr_CGNS().

135  { return _attr_set[COM_NC]->size_of_real_items(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315

Here is the caller graph for this function:

const Window* window ( ) const
inline

Obtain a constant pointer to its owner window object.

Definition at line 91 of file Pane.h.

Referenced by Attribute::window().

91 { return _window; }
Window * _window
Point to the parent window.
Definition: Pane.h:313

Here is the caller graph for this function:

Window* window ( )
inline

Obtain a pointer to its owner window object.

Definition at line 93 of file Pane.h.

References _window.

93 { return _window; }
Window * _window
Point to the parent window.
Definition: Pane.h:313
double* x_coordinates ( )
inline

Get the pointer to the values of the x-coordinates, if the coordinates are staggered.

Definition at line 170 of file Pane.h.

References _attr_set, and COM_NC1.

170 { return (double *)_attr_set[COM_NC1]->pointer(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
const double* x_coordinates ( ) const
inline

Get a constant pointer to the values of the x-coordinates, if the coordinates are staggered.

Definition at line 183 of file Pane.h.

References _attr_set, and COM_NC1.

184  { return (const double *)_attr_set[COM_NC1]->pointer(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
double* y_coordinates ( )
inline

Get the pointer to the values of the y-coordinates, if the coordinates are staggered.

Definition at line 173 of file Pane.h.

References _attr_set, and COM_NC2.

173 { return (double *)_attr_set[COM_NC2]->pointer(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
const double* y_coordinates ( ) const
inline

Get a constant pointer to the values of the y-coordinates, if the coordinates are staggered.

Definition at line 187 of file Pane.h.

References _attr_set, and COM_NC2.

188  { return (const double *)_attr_set[COM_NC2]->pointer(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
double* z_coordinates ( )
inline

Get the pointer to the values of the z-coordinates, if the coordinates are staggered.

Definition at line 176 of file Pane.h.

References _attr_set, and COM_NC3.

176 { return (double *)_attr_set[COM_NC3]->pointer(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315
const double* z_coordinates ( ) const
inline

Get a constant pointer to the values of the z-coordinates, if the coordinates are staggered.

Definition at line 191 of file Pane.h.

References _attr_set, and COM_NC3.

192  { return (const double *)_attr_set[COM_NC3]->pointer(); }
Attr_set _attr_set
Set of attributes.
Definition: Pane.h:315

Member Data Documentation

Cnct_set _cnct_set
protected

Set of element connectivity.

Definition at line 316 of file Pane.h.

Referenced by dimension(), is_mixed(), is_structured(), is_unstructured(), refresh_connectivity(), size_i(), size_j(), size_k(), and ~Pane().

int _id
protected

Pane id.

Definition at line 314 of file Pane.h.

Referenced by id().

bool _ignore_ghost
protected

Whether the ghosts were ignored.

Definition at line 317 of file Pane.h.

Referenced by ignore_ghost(), and set_ignore_ghost().

Window* _window
protected

Point to the parent window.

Definition at line 313 of file Pane.h.

Referenced by attribute(), init_done(), refresh_connectivity(), and window().


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