#include <heap-relation.h>
Public Types | |
enum | Type |
Type of the heap relation. | |
Public Member Functions | |
void | SetType (Type type) |
Sets the. | |
void | SetHeapAttribute (string attr) |
Sets the name of the heap attribute. | |
void | SetHeapSize (uint32_t size) |
Sets the heap size. | |
virtual int | Insert (Ptr< Tuple > tuple) |
Inserts a tuple in the relation. | |
Static Public Member Functions | |
static Ptr< HeapRelation > | New (string name, string heapAttr, Type type, uint32_t size) |
Factory method to create a new heap relation. |
A heap attribute is specified that value of which is compared across all tuples inserted in the relation. And a maximum size is defined and a
static Ptr<HeapRelation> ns3::rapidnet::HeapRelation::New | ( | string | name, | |
string | heapAttr, | |||
Type | type, | |||
uint32_t | size | |||
) | [static] |
Factory method to create a new heap relation.
name | Name of the relation | |
heapAttr | Name of the heap attribute | |
type | Type of the heap, MIN or MAX | |
size | Size of the heap |