JobControl< Type > Class Template Reference

#include <misc.h>

Public Member Functions

 JobControl ()
int insert (Type t)
Type get (uint32_t num)
bool present (uint32_t num)
void remove (uint32_t num)

Detailed Description

template<class Type>
class LSM::JobControl< Type >

Simple class used to store jobs in an associative array.

Parameters:
t Type you want to associate with an integer.
Returns:

Definition at line 43 of file misc.h.


Constructor & Destructor Documentation

JobControl (  )  [inline]

Ctor

Definition at line 50 of file misc.h.


Member Function Documentation

Type get ( uint32_t  num  )  [inline]

Returns item at index num.

Parameters:
num Key
Returns:
Item

Definition at line 70 of file misc.h.

int insert ( Type  t  )  [inline]

Adds an item to the collection.

Parameters:
t Type to add.
Returns:
Index it was inserted at.

Definition at line 59 of file misc.h.

bool present ( uint32_t  num  )  [inline]

Checks to see if an item is present.

Parameters:
num Key
Returns:
true if key exists, else false.

Definition at line 80 of file misc.h.

void remove ( uint32_t  num  )  [inline]

Removes an item.

Parameters:
num Key

Definition at line 89 of file misc.h.


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

Generated on 9 Jul 2015 for libStorageMgmt by  doxygen 1.6.1