MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
CLArray3DR Struct Reference
Inheritance diagram for CLArray3DR:
Collaboration diagram for CLArray3DR:

Public Member Functions

virtual ConstitutiveLaw< Vec3,
Mat3x3 > * 
Read (const DataManager *pDM, MBDynParser &HP, ConstLawType::Type &CLType)
 
- Public Member Functions inherited from ConstitutiveLawRead< Vec3, Mat3x3 >
virtual ~ConstitutiveLawRead (void)
 

Detailed Description

Definition at line 230 of file constltp_impl.cc.

Member Function Documentation

virtual ConstitutiveLaw<Vec3, Mat3x3>* CLArray3DR::Read ( const DataManager pDM,
MBDynParser HP,
ConstLawType::Type CLType 
)
inlinevirtual

Implements ConstitutiveLawRead< Vec3, Mat3x3 >.

Definition at line 232 of file constltp_impl.cc.

References ConstitutiveLaw< T, Tder >::GetConstLawType(), HighParser::GetInt(), IncludeParser::GetLineData(), MBDYN_EXCEPT_ARGS, ReadCL3D(), and SAFENEWWITHCONSTRUCTOR.

232  {
234 
235  unsigned n = HP.GetInt();
236  if (n <= 0) {
237  silent_cerr("constitutive law array 1D: invalid constitutive law number " << n
238  << " at line " << HP.GetLineData() << std::endl);
240  }
241 
242  if (n == 1) {
243  return ReadCL3D(pDM, HP, CLType);
244  }
245 
246  std::vector<ConstitutiveLaw<Vec3, Mat3x3> *> clv(n);
247  for (unsigned i = 0; i < n; i++) {
248  clv[i] = ReadCL3D(pDM, HP, CLType);
249  }
250 
252  SAFENEWWITHCONSTRUCTOR(pCL, L, L(clv));
253 
254  CLType = pCL->GetConstLawType();
255 
256  return pCL;
257  };
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
virtual integer GetInt(integer iDefval=0)
Definition: parser.cc:1050
virtual ConstLawType::Type GetConstLawType(void) const =0
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
ConstitutiveLaw< Vec3, Mat3x3 > * ReadCL3D(const DataManager *pDM, MBDynParser &HP, ConstLawType::Type &CLType)
virtual HighParser::ErrOut GetLineData(void) const
Definition: parsinc.cc:697

Here is the call graph for this function:


The documentation for this struct was generated from the following file: