#include <xdr_head.h>

Public Member Functions | |
| XdrHEAD () | |
| virtual | ~XdrHEAD () |
| void | setId (const char *id) |
| const char * | getId () const |
| void | setTitle (const char *title) |
| const char * | getTitle () const |
| void | setNumNodes (int numNodes) |
| int | getNumNodes () const |
| void | setNumBCs (int numBCs) |
| int | getNumBCs () const |
| void | setStrSize (int strSize) |
Protected Member Functions | |
| char * | cpyString (const char *src, int len=-1) |
Protected Attributes | |
| int | m_wrtVar |
| int | m_numvar |
| int | m_meshCnt |
| int | m_kstep |
| int | m_numel |
| int | m_numNodes |
| int | m_sumWghts |
| int | m_numBCs |
| int | m_strSize |
| char * | mp_id |
| char * | mp_title |
| char * | mp_userTitle |
| char * | mp_varTitle |
| xdr_Real | m_time |
Private Member Functions | |
| XdrHEAD (const XdrHEAD &) | |
| const XdrHEAD & | operator= (const XdrHEAD &) |
The XdrHEAD class. This is a base class for deriving either solution (XdrSHEAD) or mesh (XdrMHEAD) header interface classes.
Definition at line 36 of file xdr_head.h.
| libMesh::XdrHEAD::XdrHEAD | ( | ) |
Constructor.
Definition at line 26 of file xdr_head.C.
References m_kstep, m_meshCnt, m_numBCs, m_numel, m_numNodes, m_numvar, m_strSize, m_sumWghts, m_time, m_wrtVar, mp_id, mp_title, mp_userTitle, and mp_varTitle.
|
virtual |
Destructor.
Definition at line 49 of file xdr_head.C.
References mp_id, mp_title, mp_userTitle, and mp_varTitle.
|
private |
|
protected |
Uses std::memcpy to create an exact copy of src, then returns that copy. Note: I don't know where the memory allocated for this copy gets deleted!
src Definition at line 59 of file xdr_head.C.
References libmesh_nullptr.
Referenced by libMesh::XdrMESH::header(), setId(), setTitle(), libMesh::XdrSHEAD::setUserTitle(), and libMesh::XdrSHEAD::setVarTitle().
|
inline |
Get the mesh/solution file id.
Definition at line 57 of file xdr_head.h.
References mp_id.
Referenced by libMesh::XdrSOLN::header(), and libMesh::XdrMESH::header().
|
inline |
Get the number of boundary conditions in them mesh/solution file.
Definition at line 93 of file xdr_head.h.
References m_numBCs.
Referenced by libMesh::LegacyXdrIO::read_mesh().
|
inline |
Get the total number of nodes in the mesh/solution file.
Definition at line 79 of file xdr_head.h.
References m_numNodes.
Referenced by libMesh::LegacyXdrIO::read_mesh(), and libMesh::LegacyXdrIO::read_soln().
|
inline |
Get the mesh/solution file title.
Definition at line 67 of file xdr_head.h.
References mp_title.
Referenced by libMesh::XdrSOLN::header(), and libMesh::XdrMESH::header().
|
inline |
Set the mesh/solution file id.
Definition at line 52 of file xdr_head.h.
References cpyString(), and mp_id.
Referenced by libMesh::XdrSOLN::header(), libMesh::XdrMESH::header(), libMesh::LegacyXdrIO::write_mesh(), and libMesh::LegacyXdrIO::write_soln().
|
inline |
Set the number of boundary conditions in the mesh/solution file.
Definition at line 86 of file xdr_head.h.
References m_numBCs.
Referenced by libMesh::LegacyXdrIO::write_mesh(), and libMesh::LegacyXdrIO::write_soln().
|
inline |
Set the total number of nodes in the mesh/solution file.
Definition at line 73 of file xdr_head.h.
References m_numNodes.
Referenced by libMesh::LegacyXdrIO::write_mesh(), and libMesh::LegacyXdrIO::write_soln().
|
inline |
Set the string size of the mesh/solution file. (?)
Definition at line 99 of file xdr_head.h.
References m_strSize.
Referenced by libMesh::LegacyXdrIO::write_mesh(), and libMesh::LegacyXdrIO::write_soln().
|
inline |
Set the mesh/solution file title.
Definition at line 62 of file xdr_head.h.
References cpyString(), and mp_title.
Referenced by libMesh::XdrSOLN::header(), libMesh::XdrMESH::header(), libMesh::LegacyXdrIO::write_mesh(), and libMesh::LegacyXdrIO::write_soln().
|
protected |
The internal solution number.
Definition at line 133 of file xdr_head.h.
Referenced by libMesh::XdrSOLN::header(), libMesh::XdrSHEAD::setKstep(), and XdrHEAD().
|
protected |
The mesh file number which corresponds to a given solution file.
Definition at line 128 of file xdr_head.h.
Referenced by libMesh::XdrSOLN::header(), libMesh::XdrSHEAD::setMeshCnt(), and XdrHEAD().
|
protected |
Number of boundary conditions in the solution/mesh.
Definition at line 158 of file xdr_head.h.
Referenced by getNumBCs(), libMesh::XdrMESH::header(), setNumBCs(), and XdrHEAD().
|
protected |
Number of elemetns in the solution/mesh.
Definition at line 139 of file xdr_head.h.
Referenced by libMesh::XdrMHEAD::getNumEl(), libMesh::XdrMESH::header(), libMesh::XdrMHEAD::setNumEl(), and XdrHEAD().
|
protected |
Number of nodes in the solution/mesh.
Definition at line 145 of file xdr_head.h.
Referenced by getNumNodes(), libMesh::XdrSOLN::header(), libMesh::XdrMESH::header(), setNumNodes(), and XdrHEAD().
|
protected |
Total number of variables, may differ from the total number of variables actually written.
Definition at line 121 of file xdr_head.h.
Referenced by libMesh::XdrSOLN::header(), libMesh::XdrSHEAD::setNumVar(), and XdrHEAD().
|
protected |
String size (Not sure of what?)
Definition at line 163 of file xdr_head.h.
Referenced by libMesh::XdrSOLN::header(), libMesh::XdrMESH::header(), setStrSize(), and XdrHEAD().
|
protected |
Total mesh weighting i.e. How many nodes are there and where are they?
Definition at line 152 of file xdr_head.h.
Referenced by libMesh::XdrMHEAD::getSumWghts(), libMesh::XdrMESH::header(), libMesh::XdrMHEAD::setSumWghts(), and XdrHEAD().
|
protected |
Current solution time.
Definition at line 188 of file xdr_head.h.
Referenced by libMesh::XdrSOLN::header(), libMesh::XdrSHEAD::setTime(), and XdrHEAD().
|
protected |
Set the string size of the mesh /solutionfile. (?) Number of variables written to output, e.g. u,v,w,p,T = 5
Definition at line 113 of file xdr_head.h.
Referenced by libMesh::XdrSHEAD::getWrtVar(), libMesh::XdrSOLN::header(), libMesh::XdrSHEAD::setWrtVar(), and XdrHEAD().
|
protected |
An ID string for the file.
Definition at line 168 of file xdr_head.h.
Referenced by getId(), libMesh::XdrSOLN::header(), libMesh::XdrMESH::header(), setId(), XdrHEAD(), and ~XdrHEAD().
|
protected |
A title string for the file.
Definition at line 173 of file xdr_head.h.
Referenced by getTitle(), libMesh::XdrSOLN::header(), libMesh::XdrMESH::header(), setTitle(), XdrHEAD(), and ~XdrHEAD().
|
protected |
User's simulation title
Definition at line 178 of file xdr_head.h.
Referenced by libMesh::XdrSHEAD::getUserTitle(), libMesh::XdrSOLN::header(), libMesh::XdrSHEAD::setUserTitle(), XdrHEAD(), and ~XdrHEAD().
|
protected |
List of null-separated variable names.
Definition at line 183 of file xdr_head.h.
Referenced by libMesh::XdrSHEAD::getVarTitle(), libMesh::XdrSOLN::header(), libMesh::XdrSHEAD::setVarTitle(), XdrHEAD(), and ~XdrHEAD().