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

#include <streamoutelem.h>

Inheritance diagram for StreamContent:
Collaboration diagram for StreamContent:

Classes

class  Copy
 
class  Modifier
 

Public Types

enum  Type { UNKNOWN = -1, VALUES = 0, MOTION = 1, LASTTYPE }
 

Public Member Functions

 StreamContent (size_t size, Modifier *pMod)
 
virtual ~StreamContent (void)
 
void * GetBuf (void) const
 
int GetSize (void) const
 
const void * GetOutBuf (void) const
 
int GetOutSize (void) const
 
virtual void Prepare (void)=0
 
virtual unsigned GetNumChannels (void) const =0
 

Protected Attributes

std::vector< char > buf
 
Modifierm_pMod
 

Detailed Description

Definition at line 81 of file streamoutelem.h.

Member Enumeration Documentation

Enumerator
UNKNOWN 
VALUES 
MOTION 
LASTTYPE 

Definition at line 83 of file streamoutelem.h.

Constructor & Destructor Documentation

StreamContent::StreamContent ( size_t  size,
StreamContent::Modifier pMod 
)

Definition at line 97 of file streamoutelem.cc.

References buf, grad::Copy(), m_pMod, and StreamContent::Modifier::Set().

98 : buf(size), m_pMod(pMod)
99 {
100  if (m_pMod == 0) {
101  m_pMod = new StreamContent::Copy(size, &buf[0]);
102 
103  } else {
104  m_pMod->Set(size, &buf[0]);
105  }
106 }
virtual void Set(size_t size, const char *buf)=0
std::vector< char > buf
void Copy(scalar_func_type &d1, const scalar_func_type &d2, LocalDofMap *)
Definition: gradient.h:2827
Modifier * m_pMod

Here is the call graph for this function:

StreamContent::~StreamContent ( void  )
virtual

Definition at line 108 of file streamoutelem.cc.

References m_pMod.

109 {
110  if (m_pMod != 0) {
111  delete m_pMod;
112  m_pMod = 0;
113  }
114 }
Modifier * m_pMod

Member Function Documentation

void * StreamContent::GetBuf ( void  ) const

Definition at line 117 of file streamoutelem.cc.

References buf.

Referenced by BufferStreamElem_base::AfterConvergence().

118 {
119  return (void *)&buf[0];
120 }
std::vector< char > buf
const void * StreamContent::GetOutBuf ( void  ) const

Definition at line 129 of file streamoutelem.cc.

References StreamContent::Modifier::GetOutBuf(), and m_pMod.

Referenced by RTMBDynOutElem::AfterConvergence().

130 {
131  return m_pMod->GetOutBuf();
132 }
virtual const void * GetOutBuf(void) const =0
Modifier * m_pMod

Here is the call graph for this function:

int StreamContent::GetOutSize ( void  ) const

Definition at line 135 of file streamoutelem.cc.

References StreamContent::Modifier::GetOutSize(), and m_pMod.

Referenced by RTMBDynOutElem::AfterConvergence(), and RTMBDynOutElem::RTMBDynOutElem().

136 {
137  return m_pMod->GetOutSize();
138 }
virtual int GetOutSize(void) const =0
Modifier * m_pMod

Here is the call graph for this function:

int StreamContent::GetSize ( void  ) const

Definition at line 123 of file streamoutelem.cc.

References buf.

124 {
125  return buf.size();
126 }
std::vector< char > buf
virtual void StreamContent::Prepare ( void  )
pure virtual

Member Data Documentation


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