Class that facilitates efficient operation on lists fragment ids. More...
#include <vtkMaterialInterfaceIdList.h>
Public Member Functions | |
vtkMaterialInterfaceIdList () | |
~vtkMaterialInterfaceIdList () | |
void | Clear () |
Return the container to an empty state. More... | |
void | Initialize (const std::vector< int > &ids, bool preSorted=false) |
Initialize the container with a list of id's these must be in ascending order. More... | |
int | GetLocalId (int globalId) |
Given a global id, get the local id, or -1 if the global id is not in the list. More... | |
Class that facilitates efficient operation on lists fragment ids.
This class is introduced to deal with the fact that local to global id search is a constant time operation, while its inverse glooabl to local id search is not.
Definition at line 22 of file vtkMaterialInterfaceIdList.h.
vtkMaterialInterfaceIdList::vtkMaterialInterfaceIdList | ( | ) |
vtkMaterialInterfaceIdList::~vtkMaterialInterfaceIdList | ( | ) |
void vtkMaterialInterfaceIdList::Clear | ( | ) |
Return the container to an empty state.
void vtkMaterialInterfaceIdList::Initialize | ( | const std::vector< int > & | ids, |
bool | preSorted = false |
||
) |
Initialize the container with a list of id's these must be in ascending order.
Given a global id, get the local id, or -1 if the global id is not in the list.