Derecho  0.9
Distributed systems toolkit for RDMA
Public Types | Public Member Functions | Private Attributes | List of all members
sst::SSTFieldVector< T > Class Template Reference

Clients should use instances of this class to declare vector-like fields in their SST; the template parameter is the type of the vector's elements, just like with std::vector. More...

#include <sst.hpp>

Inheritance diagram for sst::SSTFieldVector< T >:
Inheritance graph
[legend]
Collaboration diagram for sst::SSTFieldVector< T >:
Collaboration graph
[legend]

Public Types

using value_type = T
 

Public Member Functions

 SSTFieldVector (size_t num_elements)
 
volatile T * operator[] (const size_t &idx) const
 
size_t size () const
 Just like std::vector::size(), returns the number of elements in this vector. More...
 
void __attribute__ ((noinline)) debug_print(size_t row_num)
 
- Public Member Functions inherited from sst::_SSTField
 _SSTField (const size_t field_len)
 
size_t set_base (volatile char *const base)
 
char * get_base ()
 
void set_rowLen (const size_t &_rowLen)
 

Private Attributes

const size_t length
 

Additional Inherited Members

- Public Attributes inherited from sst::_SSTField
volatile char * base
 
size_t rowLen
 
size_t field_len
 

Detailed Description

template<typename T>
class sst::SSTFieldVector< T >

Clients should use instances of this class to declare vector-like fields in their SST; the template parameter is the type of the vector's elements, just like with std::vector.

Unlike std::vector, these are fixed-size arrays and cannot grow or shrink after construction.

Definition at line 93 of file sst.hpp.

Member Typedef Documentation

◆ value_type

template<typename T>
using sst::SSTFieldVector< T >::value_type = T

Definition at line 101 of file sst.hpp.

Constructor & Destructor Documentation

◆ SSTFieldVector()

template<typename T>
sst::SSTFieldVector< T >::SSTFieldVector ( size_t  num_elements)
inline

Definition at line 103 of file sst.hpp.

Member Function Documentation

◆ __attribute__()

template<typename T>
void sst::SSTFieldVector< T >::__attribute__ ( (noinline)  )
inline

Definition at line 112 of file sst.hpp.

◆ operator[]()

template<typename T>
volatile T* sst::SSTFieldVector< T >::operator[] ( const size_t &  idx) const
inline

Definition at line 107 of file sst.hpp.

◆ size()

template<typename T>
size_t sst::SSTFieldVector< T >::size ( ) const
inline

Just like std::vector::size(), returns the number of elements in this vector.

Definition at line 110 of file sst.hpp.

Member Data Documentation

◆ length

template<typename T>
const size_t sst::SSTFieldVector< T >::length
private

Definition at line 95 of file sst.hpp.


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