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

#include <resforces.h>

Inheritance diagram for ResForceSet:
Collaboration diagram for ResForceSet:

Public Member Functions

 ResForceSet (unsigned int uLabel, ResForces *p)
 
virtual ~ResForceSet (void)
 
bool is_in (unsigned int uL)
 
- Public Member Functions inherited from WithLabel
 WithLabel (unsigned int uL=0, const std::string &sN="")
 
virtual ~WithLabel (void)
 
void PutLabel (unsigned int uL)
 
void PutName (const std::string &sN)
 
unsigned int GetLabel (void) const
 
const std::string & GetName (void) const
 

Public Attributes

ResForcespRes
 
std::set< unsigned intlabelSet
 

Additional Inherited Members

- Protected Attributes inherited from WithLabel
unsigned int uLabel
 
std::string sName
 

Detailed Description

Definition at line 105 of file resforces.h.

Constructor & Destructor Documentation

ResForceSet::ResForceSet ( unsigned int  uLabel,
ResForces p 
)

Definition at line 191 of file resforces.cc.

References ASSERT, and pRes.

192 : WithLabel(uLabel), pRes(p)
193 {
194  ASSERT(pRes);
195 }
ResForces * pRes
Definition: resforces.h:106
unsigned int uLabel
Definition: withlab.h:44
#define ASSERT(expression)
Definition: colamd.c:977
WithLabel(unsigned int uL=0, const std::string &sN="")
Definition: withlab.cc:38
ResForceSet::~ResForceSet ( void  )
virtual

Definition at line 197 of file resforces.cc.

References pRes, and SAFEDELETE.

198 {
199  SAFEDELETE(pRes);
200 }
ResForces * pRes
Definition: resforces.h:106
#define SAFEDELETE(pnt)
Definition: mynewmem.h:710

Member Function Documentation

bool ResForceSet::is_in ( unsigned int  uL)

Definition at line 203 of file resforces.cc.

References labelSet.

204 {
205  return labelSet.find(uL) != labelSet.end();
206 }
std::set< unsigned int > labelSet
Definition: resforces.h:107

Member Data Documentation

std::set<unsigned int> ResForceSet::labelSet

Definition at line 107 of file resforces.h.

Referenced by is_in(), and ReadResSet().

ResForces* ResForceSet::pRes

Definition at line 106 of file resforces.h.

Referenced by ResForceSet(), and ~ResForceSet().


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