SST/macro
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
sstmac::vector1_payload< Type, VectorType > Class Template Reference

Network payload consisting of a boost multiarray. More...

#include <vector_payload.h>

Inheritance diagram for sstmac::vector1_payload< Type, VectorType >:
Inheritance graph
Collaboration diagram for sstmac::vector1_payload< Type, VectorType >:
Collaboration graph

Public Types

typedef sprockit::refcount_ptr< vector1_payload< Type, VectorType > > ptr
 
typedef sprockit::refcount_ptr< const vector1_payload< Type, VectorType > > const_ptr
 
typedef vector1_payload< Type, VectorType > Vector1Payload
 

Public Member Functions

 vector1_payload ()
 
virtual ~vector1_payload ()
 
void assign (void *data)
 
payload::const_ptr clone () const
 Clone this object. More...
 
void * data () const
 Access the underlying data in a const context. More...
 
const Type * typed_data () const
 
int get_dim () const
 
virtual long byte_length () const
 
virtual payload::const_ptr add (const payload::const_ptr &other) const
 Add operator. More...
 
virtual payload::const_ptr prod (const payload::const_ptr &other) const
 
virtual payload::const_ptr min (const payload::const_ptr &other) const
 Less than comparator. More...
 
virtual payload::const_ptr max (const payload::const_ptr &other) const
 Greater than comparator. More...
 
virtual bool equals (const payload::const_ptr &other) const
 Equals comparator. More...
 
virtual payload::const_ptr logical_or (const payload::const_ptr &other) const
 Logical or comparator. More...
 
virtual payload::const_ptr logical_xor (const payload::const_ptr &other) const
 Logical xor comparator. More...
 
virtual payload::const_ptr logical_and (const payload::const_ptr &other) const
 Logical and comparator. More...
 
virtual payload::const_ptr bitwise_or (const payload::const_ptr &other) const
 Logical or comparator. More...
 
virtual payload::const_ptr bitwise_xor (const payload::const_ptr &other) const
 Logical xor comparator. More...
 
virtual payload::const_ptr bitwise_and (const payload::const_ptr &other) const
 Logical and comparator. More...
 
virtual void serialize_order (serializer &ser)
 
virtual std::string to_string () const
 Strinfier. More...
 

Static Public Member Functions

static ptr construct ()
 
static const_ptr construct (const arraytype &inval, int dim1, ptrdiff_t stride=1)
 

Protected Member Functions

 vector1_payload (const arraytype &inval, int dim1, ptrdiff_t stride)
 
 vector1_payload (Type *inval, int dim1, bool cloning, ptrdiff_t stride)
 

Protected Attributes

std::vector< int > dims_
 
Type * underneath_
 

Detailed Description

template<typename Type, typename VectorType = std::vector<Type>>
class sstmac::vector1_payload< Type, VectorType >

Network payload consisting of a boost multiarray.

Definition at line 27 of file vector_payload.h.

Member Typedef Documentation

template<typename Type, typename VectorType = std::vector<Type>>
typedef sprockit::refcount_ptr<const vector1_payload<Type, VectorType> > sstmac::vector1_payload< Type, VectorType >::const_ptr

Definition at line 40 of file vector_payload.h.

template<typename Type, typename VectorType = std::vector<Type>>
typedef sprockit::refcount_ptr<vector1_payload<Type, VectorType> > sstmac::vector1_payload< Type, VectorType >::ptr

Definition at line 31 of file vector_payload.h.

template<typename Type, typename VectorType = std::vector<Type>>
typedef vector1_payload<Type, VectorType> sstmac::vector1_payload< Type, VectorType >::Vector1Payload

Definition at line 99 of file vector_payload.h.

Constructor & Destructor Documentation

template<typename Type, typename VectorType = std::vector<Type>>
sstmac::vector1_payload< Type, VectorType >::vector1_payload ( )
inline

Definition at line 43 of file vector_payload.h.

template<typename Type, typename VectorType = std::vector<Type>>
virtual sstmac::vector1_payload< Type, VectorType >::~vector1_payload ( )
inlinevirtual
template<typename Type, typename VectorType = std::vector<Type>>
sstmac::vector1_payload< Type, VectorType >::vector1_payload ( const arraytype &  inval,
int  dim1,
ptrdiff_t  stride 
)
inlineprotected
template<typename Type, typename VectorType = std::vector<Type>>
sstmac::vector1_payload< Type, VectorType >::vector1_payload ( Type *  inval,
int  dim1,
bool  cloning,
ptrdiff_t  stride 
)
inlineprotected

Member Function Documentation

template<typename Type, typename VectorType = std::vector<Type>>
virtual payload::const_ptr sstmac::vector1_payload< Type, VectorType >::add ( const payload::const_ptr &  other) const
inlinevirtual

Add operator.

Parameters
other
Returns
a smart pointer to a new valuepayload object

Definition at line 107 of file vector_payload.h.

References sstmac::vector1_payload< Type, VectorType >::dims_, ptr_safe_cast, and sstmac::vector1_payload< Type, VectorType >::underneath_.

template<typename Type, typename VectorType = std::vector<Type>>
void sstmac::vector1_payload< Type, VectorType >::assign ( void *  data)
inline
template<typename Type, typename VectorType = std::vector<Type>>
virtual payload::const_ptr sstmac::vector1_payload< Type, VectorType >::bitwise_and ( const payload::const_ptr &  other) const
inlinevirtual

Logical and comparator.

Parameters
other
Returns

Definition at line 306 of file vector_payload.h.

References spkt_throw_printf.

template<typename Type, typename VectorType = std::vector<Type>>
virtual payload::const_ptr sstmac::vector1_payload< Type, VectorType >::bitwise_or ( const payload::const_ptr &  other) const
inlinevirtual

Logical or comparator.

Parameters
other
Returns

Definition at line 286 of file vector_payload.h.

References spkt_throw_printf.

template<typename Type, typename VectorType = std::vector<Type>>
virtual payload::const_ptr sstmac::vector1_payload< Type, VectorType >::bitwise_xor ( const payload::const_ptr &  other) const
inlinevirtual

Logical xor comparator.

Parameters
other
Returns

Definition at line 296 of file vector_payload.h.

References spkt_throw_printf.

template<typename Type, typename VectorType = std::vector<Type>>
virtual long sstmac::vector1_payload< Type, VectorType >::byte_length ( ) const
inlinevirtual
template<typename Type, typename VectorType = std::vector<Type>>
payload::const_ptr sstmac::vector1_payload< Type, VectorType >::clone ( ) const
inline
template<typename Type, typename VectorType = std::vector<Type>>
static ptr sstmac::vector1_payload< Type, VectorType >::construct ( )
inlinestatic

Definition at line 59 of file vector_payload.h.

template<typename Type, typename VectorType = std::vector<Type>>
static const_ptr sstmac::vector1_payload< Type, VectorType >::construct ( const arraytype &  inval,
int  dim1,
ptrdiff_t  stride = 1 
)
inlinestatic

Definition at line 64 of file vector_payload.h.

template<typename Type, typename VectorType = std::vector<Type>>
void* sstmac::vector1_payload< Type, VectorType >::data ( ) const
inline

Access the underlying data in a const context.

Definition at line 76 of file vector_payload.h.

References sstmac::vector1_payload< Type, VectorType >::underneath_.

template<typename Type, typename VectorType = std::vector<Type>>
virtual bool sstmac::vector1_payload< Type, VectorType >::equals ( const payload::const_ptr &  other) const
inlinevirtual

Equals comparator.

Parameters
other
Returns

Definition at line 201 of file vector_payload.h.

References sstmac::vector1_payload< Type, VectorType >::dims_, ptr_safe_cast, and sstmac::vector1_payload< Type, VectorType >::underneath_.

template<typename Type, typename VectorType = std::vector<Type>>
int sstmac::vector1_payload< Type, VectorType >::get_dim ( ) const
inline
template<typename Type, typename VectorType = std::vector<Type>>
virtual payload::const_ptr sstmac::vector1_payload< Type, VectorType >::logical_and ( const payload::const_ptr &  other) const
inlinevirtual

Logical and comparator.

Parameters
other
Returns

Definition at line 264 of file vector_payload.h.

References sstmac::vector1_payload< Type, VectorType >::dims_, ptr_safe_cast, and sstmac::vector1_payload< Type, VectorType >::underneath_.

template<typename Type, typename VectorType = std::vector<Type>>
virtual payload::const_ptr sstmac::vector1_payload< Type, VectorType >::logical_or ( const payload::const_ptr &  other) const
inlinevirtual

Logical or comparator.

Parameters
other
Returns

Definition at line 219 of file vector_payload.h.

References sstmac::vector1_payload< Type, VectorType >::dims_, ptr_safe_cast, and sstmac::vector1_payload< Type, VectorType >::underneath_.

template<typename Type, typename VectorType = std::vector<Type>>
virtual payload::const_ptr sstmac::vector1_payload< Type, VectorType >::logical_xor ( const payload::const_ptr &  other) const
inlinevirtual

Logical xor comparator.

Parameters
other
Returns

Definition at line 241 of file vector_payload.h.

References sstmac::vector1_payload< Type, VectorType >::dims_, ptr_safe_cast, and sstmac::vector1_payload< Type, VectorType >::underneath_.

template<typename Type, typename VectorType = std::vector<Type>>
virtual payload::const_ptr sstmac::vector1_payload< Type, VectorType >::max ( const payload::const_ptr &  other) const
inlinevirtual

Greater than comparator.

Parameters
other
Returns

Definition at line 175 of file vector_payload.h.

References sstmac::vector1_payload< Type, VectorType >::dims_, ptr_safe_cast, and sstmac::vector1_payload< Type, VectorType >::underneath_.

template<typename Type, typename VectorType = std::vector<Type>>
virtual payload::const_ptr sstmac::vector1_payload< Type, VectorType >::min ( const payload::const_ptr &  other) const
inlinevirtual

Less than comparator.

Parameters
other
Returns

Definition at line 150 of file vector_payload.h.

References sstmac::vector1_payload< Type, VectorType >::dims_, ptr_safe_cast, and sstmac::vector1_payload< Type, VectorType >::underneath_.

template<typename Type, typename VectorType = std::vector<Type>>
virtual payload::const_ptr sstmac::vector1_payload< Type, VectorType >::prod ( const payload::const_ptr &  other) const
inlinevirtual
template<typename Type, typename VectorType = std::vector<Type>>
virtual void sstmac::vector1_payload< Type, VectorType >::serialize_order ( serializer ser)
inlinevirtual

Definition at line 311 of file vector_payload.h.

References spkt_throw_printf.

template<typename Type, typename VectorType = std::vector<Type>>
virtual std::string sstmac::vector1_payload< Type, VectorType >::to_string ( ) const
inlinevirtual

Strinfier.

Returns
a std::string description

Definition at line 320 of file vector_payload.h.

References sstmac::vector1_payload< Type, VectorType >::dims_.

template<typename Type, typename VectorType = std::vector<Type>>
const Type* sstmac::vector1_payload< Type, VectorType >::typed_data ( ) const
inline

Member Data Documentation

template<typename Type, typename VectorType = std::vector<Type>>
std::vector<int> sstmac::vector1_payload< Type, VectorType >::dims_
protected
template<typename Type, typename VectorType = std::vector<Type>>
Type* sstmac::vector1_payload< Type, VectorType >::underneath_
protected

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