54 return static_cast<T*
>(ptr);
64 return device_id_ == other.device_id_;
77 template <
typename T2>
static void * Malloc(size_t byte_size, const Device &device)
Definition: MemoryManager.cpp:22
static void Free(void *ptr, const Device &device)
Frees previously allocated memory at address ptr on device device.
Definition: MemoryManager.cpp:28
Definition: StdAllocator.h:23
int GetDeviceID() const
Returns the device on which memory is allocated.
Definition: StdAllocator.h:73
void deallocate(T *p, std::size_t n)
Deallocates memory from pointer p of size n .
Definition: StdAllocator.h:58
StdAllocator(const StdAllocator &)=default
Default copy constructor.
bool operator==(const StdAllocator &other) const
Returns true if the instances are equal, false otherwise.
Definition: StdAllocator.h:63
T value_type
T.
Definition: StdAllocator.h:26
bool operator!=(const StdAllocator &other) const
Returns true if the instances are not equal, false otherwise.
Definition: StdAllocator.h:68
StdAllocator(const StdAllocator< U > &other)
Rebind copy constructor.
Definition: StdAllocator.h:48
T * allocate(std::size_t n)
Allocates memory of size n.
Definition: StdAllocator.h:51
StdAllocator & operator=(const StdAllocator &)=default
Default copy assignment operator.
StdAllocator(int device_id)
Constructor from device.
Definition: StdAllocator.h:32
StdAllocator()=default
Default constructor.
StdAllocator(StdAllocator &&)=default
Default move constructor.
StdAllocator & operator=(StdAllocator &&)=default
Default move assignment operator.
const char const char value recording_handle imu_sample recording_handle uint8_t size_t data_size k4a_record_configuration_t config target_format k4a_capture_t capture_handle k4a_imu_sample_t imu_sample playback_handle k4a_logging_message_cb_t void min_level device_handle k4a_imu_sample_t timeout_in_ms capture_handle capture_handle capture_handle image_handle temperature_c k4a_image_t image_handle uint8_t image_handle image_handle image_handle image_handle image_handle timestamp_usec white_balance image_handle k4a_device_configuration_t config device_handle char size_t serial_number_size bool int32_t int32_t int32_t int32_t k4a_color_control_mode_t default_mode value const const k4a_calibration_t calibration char size_t
Definition: K4aPlugin.cpp:719
Definition: PinholeCameraIntrinsic.cpp:16