Public Member Functions | List of all members
vtkMaterialInterfaceIdList Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ vtkMaterialInterfaceIdList()

vtkMaterialInterfaceIdList::vtkMaterialInterfaceIdList ( )

◆ ~vtkMaterialInterfaceIdList()

vtkMaterialInterfaceIdList::~vtkMaterialInterfaceIdList ( )

Member Function Documentation

◆ Clear()

void vtkMaterialInterfaceIdList::Clear ( )

Return the container to an empty state.

◆ Initialize()

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.

◆ GetLocalId()

int vtkMaterialInterfaceIdList::GetLocalId ( int  globalId)

Given a global id, get the local id, or -1 if the global id is not in the list.


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