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

Public Member Functions

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

Detailed Description

Definition at line 260 of file constltp_impl.cc.

Member Function Documentation

virtual ConstitutiveLaw<Vec6, Mat6x6>* CLArray6DR::Read ( const DataManager pDM,
MBDynParser HP,
ConstLawType::Type CLType 
)
inlinevirtual

Implements ConstitutiveLawRead< Vec6, Mat6x6 >.

Definition at line 262 of file constltp_impl.cc.

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

262  {
264 
265  unsigned n = HP.GetInt();
266  if (n <= 0) {
267  silent_cerr("constitutive law array 1D: invalid constitutive law number " << n
268  << " at line " << HP.GetLineData() << std::endl);
270  }
271 
272  if (n == 1) {
273  return ReadCL6D(pDM, HP, CLType);
274  }
275 
276  std::vector<ConstitutiveLaw<Vec6, Mat6x6> *> clv(n);
277  for (unsigned i = 0; i < n; i++) {
278  clv[i] = ReadCL6D(pDM, HP, CLType);
279  }
280 
282  SAFENEWWITHCONSTRUCTOR(pCL, L, L(clv));
283 
284  CLType = pCL->GetConstLawType();
285 
286  return pCL;
287  };
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
virtual integer GetInt(integer iDefval=0)
Definition: parser.cc:1050
ConstitutiveLaw< Vec6, Mat6x6 > * ReadCL6D(const DataManager *pDM, MBDynParser &HP, ConstLawType::Type &CLType)
virtual ConstLawType::Type GetConstLawType(void) const =0
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
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: