SST/macro
|
Network payload consisting of a value with sensible copy semantics. More...
#include <pair_payload.h>
Classes | |
struct | structtype |
Public Types | |
typedef sprockit::refcount_ptr< pairpayloadvector< T1, T2 > > | ptr |
typedef sprockit::refcount_ptr< const pairpayloadvector< T1, T2 > > | const_ptr |
Public Member Functions | |
virtual | ~pairpayloadvector () |
payload::const_ptr | clone () const |
Clone this object. More... | |
void * | data_unconst () |
Access the underlying data in a non-const context. More... | |
const void * | data () const |
Access the underlying data in a const context. More... | |
virtual long | byte_length () const |
virtual const payload::const_ptr | add (const payload::const_ptr &other) const |
Add operator. More... | |
virtual const payload::const_ptr | min (const payload::const_ptr &other) const |
Less than comparator, to only be used for the minloc mpi operation. More... | |
virtual const payload::const_ptr | max (const payload::const_ptr &other) const |
Greater than comparator, to only be used for the maxloc operation. More... | |
virtual bool | equals (const payload::const_ptr &other) const |
Equals comparator. More... | |
const payload::const_ptr | logical_or (const payload::const_ptr &other) const |
Logical or comparator. More... | |
const payload::const_ptr | logical_xor (const payload::const_ptr &other) const |
Logical xor comparator. More... | |
const payload::const_ptr | logical_and (const payload::const_ptr &other) const |
Logical and comparator. More... | |
virtual void | serialize_order (sprockit::spkt_serializer *ser) const |
Serialize this object into the spkt_serializer, for running in parallel simulation. More... | |
virtual std::string | to_string () const |
Strinfier. More... | |
Static Public Member Functions | |
static pairpayloadvector< T1, T2 >::const_ptr | construct (void *start, size_t size, bool copy=true) |
Construct a new valuepayload. More... | |
Private Member Functions | |
pairpayloadvector (void *start, size_t size, bool copy) | |
Construction time. More... | |
pairpayloadvector (const pairpayloadvector< T1, T2 > &other, size_t size) | |
Private copy constructor. More... | |
Private Attributes | |
void * | buf_ |
The data we keep. More... | |
size_t | size_ |
Network payload consisting of a value with sensible copy semantics.
Don't use this for pointer types, since you will break assumptions about const-ness or protection of underlying data.
Definition at line 214 of file pair_payload.h.
typedef sprockit::refcount_ptr<const pairpayloadvector<T1, T2> > sstmac::pairpayloadvector< T1, T2 >::const_ptr |
Definition at line 251 of file pair_payload.h.
typedef sprockit::refcount_ptr<pairpayloadvector<T1, T2> > sstmac::pairpayloadvector< T1, T2 >::ptr |
Definition at line 250 of file pair_payload.h.
|
inlineprivate |
Construction time.
Definition at line 227 of file pair_payload.h.
References memcpy().
|
inlineprivate |
Private copy constructor.
Definition at line 241 of file pair_payload.h.
References sstmac::pairpayloadvector< T1, T2 >::buf_, and memcpy().
|
inlinevirtual |
Definition at line 254 of file pair_payload.h.
|
inlinevirtual |
Add operator.
other |
Definition at line 293 of file pair_payload.h.
References sstmac::pairpayloadvector< T1, T2 >::structtype::a, sstmac::pairpayloadvector< T1, T2 >::structtype::b, sstmac::pair_payload< T1, T2 >::construct(), sstmac::pair_payload< T1, T2 >::data(), ptr_safe_cast, and sstmac::pair_payload< T1, T2 >::size_.
|
inlinevirtual |
Definition at line 283 of file pair_payload.h.
|
inline |
Clone this object.
Definition at line 266 of file pair_payload.h.
|
inlinestatic |
Construct a new valuepayload.
Definition at line 260 of file pair_payload.h.
|
inline |
Access the underlying data in a const context.
Definition at line 278 of file pair_payload.h.
|
inline |
Access the underlying data in a non-const context.
Definition at line 272 of file pair_payload.h.
|
inlinevirtual |
Equals comparator.
other |
Definition at line 339 of file pair_payload.h.
References sstmac::pairpayloadvector< T1, T2 >::structtype::a, sstmac::pairpayloadvector< T1, T2 >::structtype::b, sstmac::pair_payload< T1, T2 >::data(), and ptr_safe_cast.
|
inline |
Logical and comparator.
other |
Definition at line 381 of file pair_payload.h.
References spkt_throw_printf.
|
inline |
Logical or comparator.
other |
Definition at line 359 of file pair_payload.h.
References spkt_throw_printf.
|
inline |
Logical xor comparator.
other |
Definition at line 370 of file pair_payload.h.
References spkt_throw_printf.
|
inlinevirtual |
Greater than comparator, to only be used for the maxloc operation.
other |
Definition at line 328 of file pair_payload.h.
References spkt_throw_printf.
|
inlinevirtual |
Less than comparator, to only be used for the minloc mpi operation.
other |
Definition at line 316 of file pair_payload.h.
References spkt_throw_printf.
|
inlinevirtual |
Serialize this object into the spkt_serializer, for running in parallel simulation.
ser | the serializer to use |
Definition at line 392 of file pair_payload.h.
References spkt_throw_printf.
|
inlinevirtual |
|
private |
The data we keep.
Definition at line 223 of file pair_payload.h.
Referenced by sstmac::pairpayloadvector< T1, T2 >::pairpayloadvector().
|
private |
Definition at line 224 of file pair_payload.h.