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

#include <streamdrive.h>

Inheritance diagram for StreamDrive::Copy:
Collaboration diagram for StreamDrive::Copy:

Public Member Functions

 Copy (integer iND)
 
size_t GetSize (void) const
 
void Modify (doublereal *out, const void *in) const
 
- Public Member Functions inherited from StreamDrive::Modifier
 Modifier (void)
 
virtual ~Modifier (void)
 

Protected Attributes

integer m_iND
 

Detailed Description

Definition at line 52 of file streamdrive.h.

Constructor & Destructor Documentation

StreamDrive::Copy::Copy ( integer  iND)

Definition at line 95 of file streamdrive.cc.

References NO_OP.

96 : m_iND(iND)
97 {
98  NO_OP;
99 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

size_t StreamDrive::Copy::GetSize ( void  ) const
virtual

Implements StreamDrive::Modifier.

Definition at line 102 of file streamdrive.cc.

103 {
104  return (sizeof(doublereal)*m_iND);
105 }
double doublereal
Definition: colamd.c:52
void StreamDrive::Copy::Modify ( doublereal out,
const void *  in 
) const
virtual

Implements StreamDrive::Modifier.

Definition at line 108 of file streamdrive.cc.

109 {
110  const doublereal *pd_in = (const doublereal *)in;
111  for (int i = 0; i < m_iND; i++) {
112  out[i] = pd_in[i];
113  }
114 }
double doublereal
Definition: colamd.c:52

Member Data Documentation

integer StreamDrive::Copy::m_iND
protected

Definition at line 54 of file streamdrive.h.


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