HALDLS
haldls::vx::PPUMemoryBlock Class Reference

#include <ppu.h>

Public Types

typedef halco::hicann_dls::vx::PPUMemoryBlockOnDLS coordinate_type
 
typedef std::false_type has_local_data
 
typedef halco::hicann_dls::vx::PPUMemoryBlockSize size_type
 
typedef std::vector< PPUMemoryWordwords_type
 

Public Member Functions

 PPUMemoryBlock (size_type size=size_type(halco::hicann_dls::vx::PPUMemoryWordOnPPU::size)) SYMBOL_VISIBLE
 
PPUMemoryWord const & at (size_t index) const SYMBOL_VISIBLE
 
PPUMemoryWordat (size_t index) SYMBOL_VISIBLE
 
PPUMemoryBlock get_subblock (size_t begin, size_type length) const SYMBOL_VISIBLE
 
words_type const & get_words () const SYMBOL_VISIBLE
 
bool operator!= (PPUMemoryBlock const &other) const SYMBOL_VISIBLE
 
bool operator== (PPUMemoryBlock const &other) const SYMBOL_VISIBLE
 
PPUMemoryWord const & operator[] (size_t index) const SYMBOL_VISIBLE
 
PPUMemoryWordoperator[] (size_t index) SYMBOL_VISIBLE
 
void set_subblock (size_t begin, PPUMemoryBlock const &subblock) SYMBOL_VISIBLE
 
void set_words (words_type const &words) SYMBOL_VISIBLE
 
size_type size () const SYMBOL_VISIBLE
 
std::string to_string () const SYMBOL_VISIBLE
 Print words as string discarding non-printable characters. More...
 

Friends

class cereal::access
 
std::ostream & operator<< (std::ostream &os, PPUMemoryBlock const &pmb) SYMBOL_VISIBLE
 

Detailed Description

Definition at line 74 of file ppu.h.

Member Typedef Documentation

◆ coordinate_type

typedef halco::hicann_dls::vx::PPUMemoryBlockOnDLS haldls::vx::PPUMemoryBlock::coordinate_type

Definition at line 77 of file ppu.h.

◆ has_local_data

Definition at line 78 of file ppu.h.

◆ size_type

typedef halco::hicann_dls::vx::PPUMemoryBlockSize haldls::vx::PPUMemoryBlock::size_type

Definition at line 82 of file ppu.h.

◆ words_type

Definition at line 80 of file ppu.h.

Constructor & Destructor Documentation

◆ PPUMemoryBlock()

haldls::vx::PPUMemoryBlock::PPUMemoryBlock ( size_type  size = size_type(halco::hicann_dls::vx::PPUMemoryWordOnPPU::size))
explicit

Member Function Documentation

◆ at() [1/2]

PPUMemoryWord const& haldls::vx::PPUMemoryBlock::at ( size_t  index) const

◆ at() [2/2]

PPUMemoryWord& haldls::vx::PPUMemoryBlock::at ( size_t  index)

◆ get_subblock()

PPUMemoryBlock haldls::vx::PPUMemoryBlock::get_subblock ( size_t  begin,
size_type  length 
) const

◆ get_words()

words_type const& haldls::vx::PPUMemoryBlock::get_words ( ) const

◆ operator!=()

bool haldls::vx::PPUMemoryBlock::operator!= ( PPUMemoryBlock const &  other) const

◆ operator==()

bool haldls::vx::PPUMemoryBlock::operator== ( PPUMemoryBlock const &  other) const

◆ operator[]() [1/2]

PPUMemoryWord const& haldls::vx::PPUMemoryBlock::operator[] ( size_t  index) const

◆ operator[]() [2/2]

PPUMemoryWord& haldls::vx::PPUMemoryBlock::operator[] ( size_t  index)

◆ set_subblock()

void haldls::vx::PPUMemoryBlock::set_subblock ( size_t  begin,
PPUMemoryBlock const &  subblock 
)

◆ set_words()

void haldls::vx::PPUMemoryBlock::set_words ( words_type const &  words)

◆ size()

size_type haldls::vx::PPUMemoryBlock::size ( ) const

◆ to_string()

std::string haldls::vx::PPUMemoryBlock::to_string ( ) const

Print words as string discarding non-printable characters.

Returns
Printable characters as string in order according to PPU endianess

Friends And Related Function Documentation

◆ cereal::access

friend class cereal::access
friend

Definition at line 115 of file ppu.h.

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
PPUMemoryBlock const &  pmb 
)
friend

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