FrontISTR  5.7.0
Large-scale structural analysis program with finit element method
CNFData.cpp File Reference
#include <stdarg.h>
#include "CNFData.h"
Include dependency graph for CNFData.cpp:

Go to the source code of this file.

Macros

#define GENRATE_CODE(x)   Clear_##x();
 
#define GENRATE_CODE(x)
 
#define GENRATE_CODE(x)
 
#define GENRATE_CODE(x)
 
#define GENRATE_CODE(x)
 
#define GENRATE_CODE(x)
 
#define GENRATE_CODE(x)   if ((DB_##x).size() > 0) fprintf(fp, "%8d %8lu\n", (x), (DB_##x).size());
 

Macro Definition Documentation

◆ GENRATE_CODE [1/7]

#define GENRATE_CODE (   x)    Clear_##x();

Definition at line 44 of file CNFData.cpp.

◆ GENRATE_CODE [2/7]

#define GENRATE_CODE (   x)
Value:
void CNFData::Clear_##x() { \
vector<CNFDB_##x *>::iterator iter; \
for (iter = DB_##x.begin(); iter != DB_##x.end(); iter++) delete *iter; \
DB_##x.clear(); \
}

Definition at line 44 of file CNFData.cpp.

◆ GENRATE_CODE [3/7]

#define GENRATE_CODE (   x)
Value:
if (!CNFData::WriteDataBlock(fp, x)) { \
fclose(fp); \
}

Definition at line 44 of file CNFData.cpp.

◆ GENRATE_CODE [4/7]

#define GENRATE_CODE (   x)
Value:
case x: \
return new CNFDB_##x;

Definition at line 44 of file CNFData.cpp.

◆ GENRATE_CODE [5/7]

#define GENRATE_CODE (   x)
Value:
case x: \
DB_##x.push_back((CNFDB_##x *)block); \
break;

Definition at line 44 of file CNFData.cpp.

◆ GENRATE_CODE [6/7]

#define GENRATE_CODE (   x)
Value:
case (x): { \
if (DB_##x.size() > 0) { \
WriteBlockSeparator(fp); \
fprintf(fp, " %d\n", (x)); \
vector<CNFDB_##x *>::iterator iter; \
for (iter = DB_##x.begin(); iter != DB_##x.end(); iter++) \
(*iter)->WriteData(this, fp); \
WriteBlockSeparator(fp); \
} \
break; \
}

Definition at line 44 of file CNFData.cpp.

◆ GENRATE_CODE [7/7]

#define GENRATE_CODE (   x)    if ((DB_##x).size() > 0) fprintf(fp, "%8d %8lu\n", (x), (DB_##x).size());

Definition at line 44 of file CNFData.cpp.

CNFData::WriteDataBlock
bool WriteDataBlock(FILE *fp, int id)
Definition: CNFData.cpp:535
CNFError
Definition: CNFMessage.h:51
NFE_WRITEDATA_ERROR
@ NFE_WRITEDATA_ERROR
Definition: CNFMessage.h:30