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

Public Member Functions

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

Detailed Description

Definition at line 200 of file constltp_impl.cc.

Member Function Documentation

virtual ConstitutiveLaw<doublereal, doublereal>* CLArray1DR::Read ( const DataManager pDM,
MBDynParser HP,
ConstLawType::Type CLType 
)
inlinevirtual

Implements ConstitutiveLawRead< doublereal, doublereal >.

Definition at line 202 of file constltp_impl.cc.

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

202  {
204 
205  unsigned n = HP.GetInt();
206  if (n <= 0) {
207  silent_cerr("constitutive law array 1D: invalid constitutive law number " << n
208  << " at line " << HP.GetLineData() << std::endl);
210  }
211 
212  if (n == 1) {
213  return ReadCL1D(pDM, HP, CLType);
214  }
215 
216  std::vector<ConstitutiveLaw<doublereal, doublereal> *> clv(n);
217  for (unsigned i = 0; i < n; i++) {
218  clv[i] = ReadCL1D(pDM, HP, CLType);
219  }
220 
222  SAFENEWWITHCONSTRUCTOR(pCL, L, L(clv));
223 
224  CLType = pCL->GetConstLawType();
225 
226  return pCL;
227  };
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
virtual integer GetInt(integer iDefval=0)
Definition: parser.cc:1050
ConstitutiveLaw< doublereal, doublereal > * ReadCL1D(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: