29 #ifndef DqGroundMotions_h 30 #define DqGroundMotions_h 32 #include "xc_utils/src/nucleo/EntCmd.h" 34 #include "utility/actor/actor/MovableObject.h" 47 typedef std::deque<GroundMotion *> dq_ptr_GroundMotions;
48 typedef dq_ptr_GroundMotions::const_reference const_reference;
49 typedef dq_ptr_GroundMotions::reference reference;
50 typedef dq_ptr_GroundMotions::iterator iterator;
51 typedef dq_ptr_GroundMotions::const_iterator const_iterator;
67 inline bool empty(
void)
const 68 {
return gMotions.empty(); }
69 inline size_t getNumGroundMotions(
void)
const 70 {
return gMotions.size(); }
72 inline iterator begin(
void)
73 {
return gMotions.begin(); }
74 inline const_iterator begin(
void)
const 75 {
return gMotions.begin(); }
76 inline iterator end(
void)
77 {
return gMotions.end(); }
78 inline const_iterator end(
void)
const 79 {
return gMotions.end(); }
81 inline reference operator[](
const size_t &n)
82 {
return gMotions[n]; }
83 inline const_reference operator[](
const size_t &n)
const 84 {
return gMotions[n]; }
94 void Print(std::ostream &s,
const int &flag);
DqGroundMotions & operator=(const DqGroundMotions &otro)
Assignment operator.
Definition: DqGroundMotions.cc:44
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: DqGroundMotions.cc:117
Object that can move between processes.
Definition: MovableObject.h:91
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: DqGroundMotions.cc:103
dq_ptr_GroundMotions gMotions
Cola de pointers to GroundMotion.
Definition: DqGroundMotions.h:53
int recvData(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: DqGroundMotions.cc:85
DqGroundMotions(const size_t &num=0)
Constructor.
Definition: DqGroundMotions.cc:36
Base class for ground motions.
Definition: GroundMotion.h:83
Contenedor de definiciones de sismo.
Definition: DqGroundMotions.h:44
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
int sendData(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: DqGroundMotions.cc:72
~DqGroundMotions(void)
Destructor:
Definition: DqGroundMotions.cc:68