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

#include <gauss.h>

Inheritance diagram for GaussData:
Collaboration diagram for GaussData:

Public Member Functions

 GaussData (integer iN)
 
doublereal dGetPnt (integer i) const
 
doublereal dGetWght (integer i) const
 
PntWght Get (integer i) const
 
const doublerealpdGetPnt (void) const
 
const doublerealpdGetWght (void) const
 
- Public Member Functions inherited from NumIntData
 NumIntData (const integer &i)
 
virtual ~NumIntData (void)
 
virtual integer iGetNum (void) const
 

Protected Attributes

const doublereal *const pdPnt
 
const doublereal *const pdWght
 
- Protected Attributes inherited from NumIntData
integer iNum
 

Detailed Description

Definition at line 102 of file gauss.h.

Constructor & Destructor Documentation

GaussData::GaussData ( integer  iN)

Definition at line 87 of file gauss.cc.

References ASSERT, dGaussPnt, dGaussWght, NumIntData::iNum, pdPnt, and pdWght.

88 : NumIntData((iN < 1 ? 1 : (iN > 10 ? 10 : iN))), pdPnt(NULL), pdWght(NULL) {
89  ASSERT(iNum >= 1 && iNum <= 10);
90  integer i = iNum*(iNum-1)/2-1;
93 }
const doublereal dGaussPnt[]
Definition: gauss.cc:40
NumIntData(const integer &i)
Definition: gauss.h:94
#define ASSERT(expression)
Definition: colamd.c:977
double doublereal
Definition: colamd.c:52
long int integer
Definition: colamd.c:51
const doublereal *const pdWght
Definition: gauss.h:105
const doublereal dGaussWght[]
Definition: gauss.cc:54
const doublereal *const pdPnt
Definition: gauss.h:104
integer iNum
Definition: gauss.h:92

Member Function Documentation

doublereal GaussData::dGetPnt ( integer  i) const
virtual

Implements NumIntData.

Definition at line 96 of file gauss.cc.

References ASSERT, NumIntData::iNum, and pdPnt.

97 {
98  ASSERT(i > 0 && i <= iNum);
99  return pdPnt[i];
100 }
#define ASSERT(expression)
Definition: colamd.c:977
const doublereal *const pdPnt
Definition: gauss.h:104
integer iNum
Definition: gauss.h:92
doublereal GaussData::dGetWght ( integer  i) const
virtual

Implements NumIntData.

Definition at line 103 of file gauss.cc.

References ASSERT, NumIntData::iNum, and pdWght.

104 {
105  ASSERT(i > 0 && i <= iNum);
106  return pdWght[i];
107 }
#define ASSERT(expression)
Definition: colamd.c:977
const doublereal *const pdWght
Definition: gauss.h:105
integer iNum
Definition: gauss.h:92
PntWght GaussData::Get ( integer  i) const
virtual

Implements NumIntData.

Definition at line 110 of file gauss.cc.

References ASSERT, NumIntData::iNum, pdPnt, and pdWght.

111 {
112  ASSERT(i > 0 && i <= iNum);
113  return PntWght(pdPnt[i], pdWght[i]);
114 }
#define ASSERT(expression)
Definition: colamd.c:977
const doublereal *const pdWght
Definition: gauss.h:105
const doublereal *const pdPnt
Definition: gauss.h:104
integer iNum
Definition: gauss.h:92
Definition: gauss.h:50
const doublereal * GaussData::pdGetPnt ( void  ) const

Definition at line 117 of file gauss.cc.

References pdPnt.

118 {
119  return pdPnt+1;
120 }
const doublereal *const pdPnt
Definition: gauss.h:104
const doublereal * GaussData::pdGetWght ( void  ) const

Definition at line 123 of file gauss.cc.

References pdWght.

124 {
125  return pdWght+1;
126 }
const doublereal *const pdWght
Definition: gauss.h:105

Member Data Documentation


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