Struct NewAgentStorage

Struct Documentation

struct NewAgentStorage

This struct provides a compact memory store for storing generic variables in a single struct

Public Functions

inline explicit NewAgentStorage(const VarOffsetStruct &v)
inline NewAgentStorage(const NewAgentStorage &other)
inline ~NewAgentStorage()
template<typename T>
inline void setVariable(const std::string &var_name, const T &val)
template<typename T, unsigned int N>
inline void setVariable(const std::string &var_name, const std::array<T, N> &val)
template<typename T>
inline void setVariable(const std::string &var_name, const unsigned int &index, const T &val)
template<typename T>
inline T getVariable(const std::string &var_name) const
template<typename T, unsigned int N>
inline std::array<T, N> getVariable(const std::string &var_name)
template<typename T>
inline T getVariable(const std::string &var_name, const unsigned int &index)

Friends

friend class CUDASimulation
friend class DeviceAgentVector_impl