moab
moab::PolyElementSeq Class Reference

#include <PolyElementSeq.hpp>

Inheritance diagram for moab::PolyElementSeq:
moab::UnstructuredElemSeq moab::ElementSequence moab::EntitySequence

List of all members.

Public Member Functions

 PolyElementSeq (EntityHandle shandle, EntityID entity_count, unsigned nodes_per_entity, SequenceData *dat)
 PolyElementSeq (EntityHandle shandle, EntityID entity_count, unsigned nodes_per_entity, EntityID sequence_data_size)
virtual ~PolyElementSeq ()
virtual EntitySequencesplit (EntityHandle here)
 Split this sequence into two consecutive sequences.
virtual ErrorCode get_connectivity (EntityHandle handle, std::vector< EntityHandle > &connect, bool topological=false) const
virtual ErrorCode get_connectivity (EntityHandle handle, EntityHandle const *&connect, int &connect_length, bool topological=false, std::vector< EntityHandle > *storage=0) const

Protected Member Functions

 PolyElementSeq (PolyElementSeq &split_from, EntityHandle here)

Detailed Description

Definition at line 9 of file PolyElementSeq.hpp.


Constructor & Destructor Documentation

moab::PolyElementSeq::PolyElementSeq ( EntityHandle  shandle,
EntityID  entity_count,
unsigned  nodes_per_entity,
SequenceData dat 
) [inline]

Definition at line 12 of file PolyElementSeq.hpp.

    : UnstructuredElemSeq( shandle, entity_count, nodes_per_entity, dat )
    {}
moab::PolyElementSeq::PolyElementSeq ( EntityHandle  shandle,
EntityID  entity_count,
unsigned  nodes_per_entity,
EntityID  sequence_data_size 
) [inline]

Definition at line 19 of file PolyElementSeq.hpp.

    : UnstructuredElemSeq( shandle, entity_count, nodes_per_entity, sequence_data_size )
    {}

Definition at line 5 of file PolyElementSeq.cpp.

{}
moab::PolyElementSeq::PolyElementSeq ( PolyElementSeq split_from,
EntityHandle  here 
) [inline, protected]

Definition at line 43 of file PolyElementSeq.hpp.

    : UnstructuredElemSeq( split_from, here )
   {}

Member Function Documentation

ErrorCode moab::PolyElementSeq::get_connectivity ( EntityHandle  handle,
std::vector< EntityHandle > &  connect,
bool  topological = false 
) const [virtual]

Reimplemented from moab::UnstructuredElemSeq.

Definition at line 12 of file PolyElementSeq.cpp.

{
  EntityHandle const* conn = get_array() + nodes_per_element() * (handle - start_handle());
  int len = nodes_per_element();
  connect.reserve( connect.size() + len );
  std::copy( conn, conn+len, std::back_inserter( connect ) );
  return MB_SUCCESS;
}
ErrorCode moab::PolyElementSeq::get_connectivity ( EntityHandle  handle,
EntityHandle const *&  connect,
int &  connect_length,
bool  topological = false,
std::vector< EntityHandle > *  storage = 0 
) const [virtual]

Reimplemented from moab::UnstructuredElemSeq.

Definition at line 25 of file PolyElementSeq.cpp.

{
  conn_ptr = get_array() + nodes_per_element() * (handle - start_handle());
  len = nodes_per_element();
  return MB_SUCCESS;
}

Split this sequence into two consecutive sequences.

Split this sequence into two sequences.

Parameters:
hereNew sequences should be [start_handle(),here) & [here,end_handle()]
Returns:
New sequence containing [here,end_handle()]

Reimplemented from moab::UnstructuredElemSeq.

Definition at line 7 of file PolyElementSeq.cpp.

  { return new PolyElementSeq( *this, here ); }

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