Nv::Blast::Less< A > Struct Template Reference

#include <NvBlastFixedPriorityQueue.h>

List of all members.

Public Member Functions

bool operator() (const A &a, const A &b) const


Detailed Description

template<typename A>
struct Nv::Blast::Less< A >

FixedPriorityQueue is a priority queue container which is intended to be used with placement new on chunk of memory. It'll use following memory for data layout. As follows:

some memory char ​*buf = new char[64 *​ 1024];

placement new on this memory FixedPriorityQueue<SomeClass>* arr = new (buf) FixedPriorityQueue<SomeClass>();

you can get max requiredMemorySize by an array of 'capacity' elements count to use memory left buf = buf + FixedPriorityQueue<SomeClass>::requiredMemorySize(capacity);

buf:

+------------------------------------------------------------+ | uint32_t | T[0] | T[1] | T[2] | ... | +------------------------------------------------------------+


Member Function Documentation

template<typename A >
bool Nv::Blast::Less< A >::operator() ( const A &  a,
const A &  b 
) const [inline]


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