vtkExodusIIReaderVariableCheck Class Reference

#include <vtkExodusIIReaderVariableCheck.h>

Inheritance diagram for vtkExodusIIReaderVariableCheck:

Inheritance graph
[legend]

List of all members.


Detailed Description

Abstract base class for glomming arrays of variable names.

Subclasses check whether variable names listed in an array of names are related to each other (and should thus be glommed into a single VTK array).

Definition at line 17 of file vtkExodusIIReaderVariableCheck.h.


Public Member Functions

virtual bool Start (vtksys_stl::string name, const int *truth, int numTruth)
 Initialize a sequence of names. Returns true if any more names are acceptable.
virtual bool StartInternal (vtksys_stl::string name, const int *truth, int numTruth)=0
 Subclasses implement this and returns true if any more names are acceptable.
virtual bool Add (vtksys_stl::string name, const int *truth)=0
 Add a name to the sequence. Returns true if any more names may be added.
virtual vtkstd::vector
< vtksys_stl::string >
::size_type 
Length ()
 Returns the length of the sequence (or 0 if the match is incorrect or incomplete).
virtual int Accept (vtkstd::vector< vtkExodusIIReaderPrivate::ArrayInfoType > &arr, int startIndex, vtkExodusIIReaderPrivate *priv, int objtyp)
 Accept this sequence. (Add an entry to the end of arr.) Must return Length().

Protected Member Functions

 vtkExodusIIReaderVariableCheck ()
virtual ~vtkExodusIIReaderVariableCheck ()
bool CheckTruth (const int *truth)
 Utility that subclasses may call from within Add() to verify that the new variable is defined on the same objects as other variables in the sequence.
bool UniquifyName (vtkExodusIIReaderPrivate::ArrayInfoType &ainfo, vtkstd::vector< vtkExodusIIReaderPrivate::ArrayInfoType > &arrays)

Protected Attributes

int GlomType
vtkstd::vector< int > SeqTruth
vtksys_stl::string Prefix
vtkstd::vector
< vtksys_stl::string > 
OriginalNames

Constructor & Destructor Documentation

vtkExodusIIReaderVariableCheck::vtkExodusIIReaderVariableCheck (  )  [protected]

virtual vtkExodusIIReaderVariableCheck::~vtkExodusIIReaderVariableCheck (  )  [protected, virtual]


Member Function Documentation

virtual bool vtkExodusIIReaderVariableCheck::Start ( vtksys_stl::string  name,
const int *  truth,
int  numTruth 
) [virtual]

Initialize a sequence of names. Returns true if any more names are acceptable.

virtual bool vtkExodusIIReaderVariableCheck::StartInternal ( vtksys_stl::string  name,
const int *  truth,
int  numTruth 
) [pure virtual]

Subclasses implement this and returns true if any more names are acceptable.

Implemented in vtkExodusIIReaderScalarCheck, vtkExodusIIReaderVectorCheck, vtkExodusIIReaderTensorCheck, and vtkExodusIIReaderIntPointCheck.

virtual bool vtkExodusIIReaderVariableCheck::Add ( vtksys_stl::string  name,
const int *  truth 
) [pure virtual]

Add a name to the sequence. Returns true if any more names may be added.

Implemented in vtkExodusIIReaderScalarCheck, vtkExodusIIReaderVectorCheck, vtkExodusIIReaderTensorCheck, and vtkExodusIIReaderIntPointCheck.

virtual vtkstd::vector<vtksys_stl::string>::size_type vtkExodusIIReaderVariableCheck::Length (  )  [virtual]

Returns the length of the sequence (or 0 if the match is incorrect or incomplete).

Reimplemented in vtkExodusIIReaderVectorCheck, vtkExodusIIReaderTensorCheck, and vtkExodusIIReaderIntPointCheck.

virtual int vtkExodusIIReaderVariableCheck::Accept ( vtkstd::vector< vtkExodusIIReaderPrivate::ArrayInfoType > &  arr,
int  startIndex,
vtkExodusIIReaderPrivate priv,
int  objtyp 
) [virtual]

Accept this sequence. (Add an entry to the end of arr.) Must return Length().

bool vtkExodusIIReaderVariableCheck::CheckTruth ( const int *  truth  )  [protected]

Utility that subclasses may call from within Add() to verify that the new variable is defined on the same objects as other variables in the sequence.

bool vtkExodusIIReaderVariableCheck::UniquifyName ( vtkExodusIIReaderPrivate::ArrayInfoType ainfo,
vtkstd::vector< vtkExodusIIReaderPrivate::ArrayInfoType > &  arrays 
) [protected]


Member Data Documentation

Definition at line 44 of file vtkExodusIIReaderVariableCheck.h.

vtkstd::vector<int> vtkExodusIIReaderVariableCheck::SeqTruth [protected]

Definition at line 45 of file vtkExodusIIReaderVariableCheck.h.

vtksys_stl::string vtkExodusIIReaderVariableCheck::Prefix [protected]

Definition at line 46 of file vtkExodusIIReaderVariableCheck.h.

vtkstd::vector<vtksys_stl::string> vtkExodusIIReaderVariableCheck::OriginalNames [protected]

Definition at line 47 of file vtkExodusIIReaderVariableCheck.h.


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

Generated on Wed Aug 24 11:35:16 2011 for VTK by  doxygen 1.5.6