AGX Dynamics 2.42.1.1
Loading...
Searching...
No Matches
agxUnit::AlwaysFailingAllocator< T > Class Template Reference

Never allocates anything, throws always an exception. Only for testing. More...

#include <ContainerTests.h>

+ Inheritance diagram for agxUnit::AlwaysFailingAllocator< T >:

Public Member Functions

void * allocateBytes (size_t numBytes, size_t alignment=16)
 
void deallocateBytes (void *, size_t)
 
void setContainer (class agx::Container *)
 

Detailed Description

template<typename T>
class agxUnit::AlwaysFailingAllocator< T >

Never allocates anything, throws always an exception. Only for testing.

Definition at line 30 of file ContainerTests.h.

Member Function Documentation

◆ allocateBytes()

template<typename T >
void * agxUnit::AlwaysFailingAllocator< T >::allocateBytes ( size_t  numBytes,
size_t  alignment = 16 
)
inline

Definition at line 33 of file ContainerTests.h.

References agxThrow, and agx::AgXString< std::string >::format().

◆ deallocateBytes()

template<typename T >
void agxUnit::AlwaysFailingAllocator< T >::deallocateBytes ( void *  ,
size_t   
)
inline

Definition at line 38 of file ContainerTests.h.

◆ setContainer()

template<typename T >
void agxUnit::AlwaysFailingAllocator< T >::setContainer ( class agx::Container )
inline

Definition at line 42 of file ContainerTests.h.


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