MOAB: Mesh Oriented datABase  (version 5.4.1)
MBMesquite::MeshImplTags::TagData Class Reference

#include <MeshImplTags.hpp>

+ Collaboration diagram for MBMesquite::MeshImplTags::TagData:

Public Member Functions

 TagData (const std::string &name, Mesh::TagType type, unsigned length, void *default_val=0, TagDescription::VtkType vtk_type=TagDescription::NONE, const std::string &field_member="")
 Construct tag.
 TagData (const TagDescription &descr)
 Construct tag.
 ~TagData ()

Public Attributes

const TagDescription desc
 tag meta data
void * elementData
 per-element data, or NULL if none has been set.
size_t elementCount
 number of entries in elementData
void * vertexData
 per-vertex data, or NULL if none has been set.
size_t vertexCount
 number of entries in vertexData
void * defaultValue
 Default value for tag.

Detailed Description

Store data for a single tag

Definition at line 97 of file MeshImplTags.hpp.


Constructor & Destructor Documentation

MBMesquite::MeshImplTags::TagData::TagData ( const std::string &  name,
Mesh::TagType  type,
unsigned  length,
void *  default_val = 0,
TagDescription::VtkType  vtk_type = TagDescription::NONE,
const std::string &  field_member = "" 
) [inline]

Construct tag.

Parameters:
nameTag name
typeTag data type
lengthTag array length (1 for scalar/non-array)
default_valDefault value for tag
vtk_typeAttribute type in VTK file

Definition at line 125 of file MeshImplTags.hpp.

            : desc( name, type, vtk_type, length * size_from_tag_type( type ), field_member ), elementData( 0 ),
              elementCount( 0 ), vertexData( 0 ), vertexCount( 0 ), defaultValue( default_val )
        {
        }

Construct tag.

Parameters:
descTag description object

Definition at line 139 of file MeshImplTags.hpp.

            : desc( descr ), elementData( 0 ), elementCount( 0 ), vertexData( 0 ), vertexCount( 0 ), defaultValue( 0 )
        {
        }

Definition at line 35 of file MeshImplTags.cpp.

References defaultValue, elementData, and vertexData.

{
    if( elementData ) free( elementData );
    if( vertexData ) free( vertexData );
    if( defaultValue ) free( defaultValue );
}

Member Data Documentation

List of all members.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines