Class ResourceManager

Class Documentation

class ResourceManager

Public Functions

inline ~ResourceManager()
ResourceManager(const ResourceManager&) = delete
ResourceManager(ResourceManager&&) = delete
ResourceManager &operator=(const ResourceManager&) = delete
ResourceManager &operator=(ResourceManager&&) = delete
inline const std::string getAllocatorName(AMSResourceType resource) const

return the name of an allocator

template<typename TypeInValue>  PERFFASPECT () TypeInValue *allocate(size_t nvalues

Allocates nvalues on the specified device.

Template Parameters:

TypeInValue – The type of pointer to allocate.

Parameters:
  • nvalues[in] Number of elements to allocate.

  • dev[in] Resource to allocate memory from.

Returns:

Pointer to allocated elements.

Public Members

AMSResourceType dev

Public Static Functions

static inline ResourceManager &getInstance()