LOLA
lola::vx::PPUProgram::Symbol Class Reference

Symbol of PPU program describing the location and type of a continuous block of memory. More...

#include <ppu.h>

Public Types

enum class  Type { object , function , other }
 Symbol type. More...
 

Public Member Functions

 Symbol () SYMBOL_VISIBLE
 Default construct a symbol of type 'other' and default coordinate. More...
 
 Symbol (Type const &type, halco::hicann_dls::vx::PPUMemoryBlockOnPPU const &coord) SYMBOL_VISIBLE
 Construct a symbol from a type and a coordinate. More...
 
bool operator!= (Symbol const &other) const SYMBOL_VISIBLE
 
bool operator== (Symbol const &other) const SYMBOL_VISIBLE
 

Public Attributes

halco::hicann_dls::vx::PPUMemoryBlockOnPPU coordinate
 Location of memory block corresponding to symbol. More...
 
Type type
 Type of symbol. More...
 

Friends

std::ostream & operator<< (std::ostream &os, Symbol const &symbol) SYMBOL_VISIBLE
 

Detailed Description

Symbol of PPU program describing the location and type of a continuous block of memory.

Symbols can either describe an object, i.e. global data or executable code of a function.

Definition at line 122 of file ppu.h.

Member Enumeration Documentation

◆ Type

Symbol type.

Enumerator
object 
function 
other 

Definition at line 128 of file ppu.h.

Constructor & Destructor Documentation

◆ Symbol() [1/2]

lola::vx::PPUProgram::Symbol::Symbol ( )

Default construct a symbol of type 'other' and default coordinate.

◆ Symbol() [2/2]

lola::vx::PPUProgram::Symbol::Symbol ( Type const &  type,
halco::hicann_dls::vx::PPUMemoryBlockOnPPU const &  coord 
)

Construct a symbol from a type and a coordinate.

Member Function Documentation

◆ operator!=()

bool lola::vx::PPUProgram::Symbol::operator!= ( Symbol const &  other) const

◆ operator==()

bool lola::vx::PPUProgram::Symbol::operator== ( Symbol const &  other) const

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
Symbol const &  symbol 
)
friend

Member Data Documentation

◆ coordinate

halco::hicann_dls::vx::PPUMemoryBlockOnPPU lola::vx::PPUProgram::Symbol::coordinate

Location of memory block corresponding to symbol.

Definition at line 150 of file ppu.h.

◆ type

Type lola::vx::PPUProgram::Symbol::type

Type of symbol.

Definition at line 147 of file ppu.h.


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