ParaView
Public Member Functions
vtkMaterialInterfaceIdList Class Reference

#include <vtkMaterialInterfaceIdList.h>

List of all members.

Public Member Functions

 vtkMaterialInterfaceIdList ()
 ~vtkMaterialInterfaceIdList ()
void Initialize (std::vector< int > ids, bool preSorted=false)
void Initialize ()
int PushId ()
int PushUniqueId ()
void Clear ()
int GetLocalId (int globalId)

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 30 of file vtkMaterialInterfaceIdList.h.


Constructor & Destructor Documentation

vtkMaterialInterfaceIdList::vtkMaterialInterfaceIdList ( ) [inline]

Definition at line 33 of file vtkMaterialInterfaceIdList.h.

vtkMaterialInterfaceIdList::~vtkMaterialInterfaceIdList ( ) [inline]

Definition at line 37 of file vtkMaterialInterfaceIdList.h.


Member Function Documentation

void vtkMaterialInterfaceIdList::Clear ( void  ) [inline]

Return the container to an empty state.

Definition at line 43 of file vtkMaterialInterfaceIdList.h.

void vtkMaterialInterfaceIdList::Initialize ( std::vector< int ids,
bool  preSorted = false 
)

Initialize the container with a list of id's these must be in ascending order.

void vtkMaterialInterfaceIdList::Initialize ( )

Initialize the container from the ids that have been pushed. This must be done before querrying.

int vtkMaterialInterfaceIdList::PushId ( )

Add a fragment id to the list. Return its index.

int vtkMaterialInterfaceIdList::PushUniqueId ( )

Add a fragment id to the list, if it is unique. Return its index or -1 to indicate its not unique.

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: