VTK
|
Class to make storing and comparing state quick and easy. More...
#include <vtkStateStorage.h>
Public Member Functions | |
vtkStateStorage () | |
void | Clear () |
template<class T > | |
void | Append (const T &value, const char *name) |
bool | operator!= (const vtkStateStorage &b) const |
vtkStateStorage & | operator= (const vtkStateStorage &b) |
Protected Attributes | |
std::vector< unsigned char > | Storage |
std::vector< std::string > | StorageNames |
std::vector< size_t > | StorageOffsets |
std::string | WhatWasDifferent |
Class to make storing and comparing state quick and easy.
vtkStateStorage is just a thin wrapper around std::vector<unsigned char> It is best to use this class as an ivar so that allocs do not happen too often.
Example usage:
Definition at line 57 of file vtkStateStorage.h.
|
inline |
Definition at line 60 of file vtkStateStorage.h.
|
inline |
Definition at line 63 of file vtkStateStorage.h.
|
inline |
Definition at line 115 of file vtkStateStorage.h.
|
inline |
Definition at line 73 of file vtkStateStorage.h.
|
inline |
Definition at line 97 of file vtkStateStorage.h.
|
protected |
Definition at line 105 of file vtkStateStorage.h.
|
protected |
Definition at line 106 of file vtkStateStorage.h.
|
protected |
Definition at line 107 of file vtkStateStorage.h.
|
mutableprotected |
Definition at line 108 of file vtkStateStorage.h.