MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Converged Class Reference

#include <converged.h>

Collaboration diagram for Converged:

Public Types

enum  State { NOT_CONVERGED = 0x0U, CONVERGED = 0x1U, END_OF_SIMULATION = 0x2U }
 

Public Member Functions

 Converged (DataManager *pDM=NULL)
 
virtual ~Converged (void)
 
virtual void Register (void)
 
virtual void Set (Converged::State s)
 

Protected Attributes

DataManagerpDM
 
unsigned idx
 

Detailed Description

Definition at line 40 of file converged.h.

Member Enumeration Documentation

Enumerator
NOT_CONVERGED 
CONVERGED 
END_OF_SIMULATION 

Definition at line 42 of file converged.h.

Constructor & Destructor Documentation

Converged::Converged ( DataManager pDM = NULL)

Definition at line 37 of file converged.cc.

References Register().

38 : pDM(pDM), idx(unsigned(-1))
39 {
40  if (pDM) {
41  Register();
42  }
43 }
virtual void Register(void)
Definition: converged.cc:46
DataManager * pDM
Definition: converged.h:49
unsigned idx
Definition: converged.h:50

Here is the call graph for this function:

Converged::~Converged ( void  )
virtual

Definition at line 56 of file converged.cc.

References NO_OP.

57 {
58  NO_OP;
59 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

void Converged::Register ( void  )
virtual

Definition at line 46 of file converged.cc.

References ASSERT, DataManager::ConvergedRegister(), idx, MBDYN_EXCEPT_ARGS, and pDM.

Referenced by Converged().

47 {
48  ASSERT(pDM != NULL);
49 
51  if (idx == unsigned(-1)) {
53  }
54 }
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
unsigned ConvergedRegister(void)
Definition: dataman2.cc:2675
#define ASSERT(expression)
Definition: colamd.c:977
DataManager * pDM
Definition: converged.h:49
unsigned idx
Definition: converged.h:50

Here is the call graph for this function:

void Converged::Set ( Converged::State  s)
virtual

Definition at line 62 of file converged.cc.

References DataManager::ConvergedSet(), idx, and pDM.

Referenced by ExtForce::Recv().

63 {
64  if (idx != unsigned(-1)) {
65  pDM->ConvergedSet(idx, s);
66  }
67 }
void ConvergedSet(unsigned idx, Converged::State s)
Definition: dataman2.cc:2684
DataManager * pDM
Definition: converged.h:49
unsigned idx
Definition: converged.h:50

Here is the call graph for this function:

Member Data Documentation

unsigned Converged::idx
protected

Definition at line 50 of file converged.h.

Referenced by Register(), and Set().

DataManager* Converged::pDM
protected

Definition at line 49 of file converged.h.

Referenced by Register(), and Set().


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