VTK  9.1.0
Public Member Functions | Protected Attributes | List of all members
vtkExodusIIReaderTensorCheck Class Reference

This looks for symmetric tensors of a given rank and dimension. More...

#include <vtkExodusIIReaderVariableCheck.h>

Inheritance diagram for vtkExodusIIReaderTensorCheck:
[legend]
Collaboration diagram for vtkExodusIIReaderTensorCheck:
[legend]

Public Member Functions

 vtkExodusIIReaderTensorCheck (const char *seq, int n, int rank, int dim)
 
bool StartInternal (std::string name, const int *, int) override
 Subclasses implement this and returns true if any more names are acceptable.
 
bool Add (std::string name, const int *truth) override
 Add a name to the sequence. Returns true if any more names may be added.
 
std::vector< std::string >::size_type Length () override
 Returns the length of the sequence (or 0 if the match is incorrect or incomplete).
 
- Public Member Functions inherited from vtkExodusIIReaderVariableCheck
virtual bool Start (std::string name, const int *truth, int numTruth)
 Initialize a sequence of names. Returns true if any more names are acceptable.
 
virtual bool StartInternal (std::string name, const int *truth, int numTruth)=0
 Subclasses implement this and returns true if any more names are acceptable.
 
virtual bool Add (std::string name, const int *truth)=0
 Add a name to the sequence. Returns true if any more names may be added.
 
virtual std::vector< std::string >::size_type Length ()
 Returns the length of the sequence (or 0 if the match is incorrect or incomplete).
 
virtual int Accept (std::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 Attributes

std::string Endings
 
vtkTypeUInt64 NumEndings
 
int Dimension
 
int Rank
 
bool StillAdding
 
- Protected Attributes inherited from vtkExodusIIReaderVariableCheck
int GlomType
 
std::vector< int > SeqTruth
 
std::string Prefix
 
std::vector< std::string > OriginalNames
 

Additional Inherited Members

- Protected Member Functions inherited from vtkExodusIIReaderVariableCheck
 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, std::vector< vtkExodusIIReaderPrivate::ArrayInfoType > &arrays)
 

Detailed Description

This looks for symmetric tensors of a given rank and dimension.

All array names must be identical except for the last rank characters which must be taken from the dim -length character array seq, specified as dimension indicators.

Definition at line 79 of file vtkExodusIIReaderVariableCheck.h.

Constructor & Destructor Documentation

◆ vtkExodusIIReaderTensorCheck()

vtkExodusIIReaderTensorCheck::vtkExodusIIReaderTensorCheck ( const char *  seq,
int  n,
int  rank,
int  dim 
)

Member Function Documentation

◆ StartInternal()

bool vtkExodusIIReaderTensorCheck::StartInternal ( std::string  name,
const int *  truth,
int  numTruth 
)
overridevirtual

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

Implements vtkExodusIIReaderVariableCheck.

◆ Add()

bool vtkExodusIIReaderTensorCheck::Add ( std::string  name,
const int *  truth 
)
overridevirtual

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

Implements vtkExodusIIReaderVariableCheck.

◆ Length()

std::vector< std::string >::size_type vtkExodusIIReaderTensorCheck::Length ( )
overridevirtual

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

Reimplemented from vtkExodusIIReaderVariableCheck.

Member Data Documentation

◆ Endings

std::string vtkExodusIIReaderTensorCheck::Endings
protected

Definition at line 88 of file vtkExodusIIReaderVariableCheck.h.

◆ NumEndings

vtkTypeUInt64 vtkExodusIIReaderTensorCheck::NumEndings
protected

Definition at line 89 of file vtkExodusIIReaderVariableCheck.h.

◆ Dimension

int vtkExodusIIReaderTensorCheck::Dimension
protected

Definition at line 90 of file vtkExodusIIReaderVariableCheck.h.

◆ Rank

int vtkExodusIIReaderTensorCheck::Rank
protected

Definition at line 91 of file vtkExodusIIReaderVariableCheck.h.

◆ StillAdding

bool vtkExodusIIReaderTensorCheck::StillAdding
protected

Definition at line 92 of file vtkExodusIIReaderVariableCheck.h.


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