Class In::Message

Nested Relationships

This class is a nested type of Class MsgArray2D::In.

Class Documentation

class MsgArray2D::In::Message

Provides access to a specific message Returned by In::at(size_type)



Public Functions

__device__ inline Message(const MsgArray2D::In &parent, const size_type &_index)

Constructs a message and directly initialises all of it’s member variables index is always init to 0


See member variable documentation for their purposes

__device__ inline bool operator==(const Message &rhs) const

Equality operator Compares all internal member vars for equality


Does not compare _parent

__device__ inline bool operator!=(const Message &rhs) const

Inequality operator Returns inverse of equality operator


operator==(const Message&)

__device__ inline size_type getIndex() const

Returns the index of the message within the full message list

template<typename T, unsigned int N>
__device__ T getVariable(const char (&variable_name)[N]) const

Returns the value for the current message attached to the named variable


variable_name – Name of the variable

Template Parameters
  • T – type of the variable

  • N – Length of variable name (this should be implicit if a string literal is passed to variable name)


The specified variable, else 0x0 if an error occurs