44 #include "DTK_Entity.hpp" 60 b_entity_impl = rhs.b_entity_impl;
72 b_entity_impl = rhs.b_entity_impl;
84 DTK_REQUIRE( Teuchos::nonnull( b_entity_impl ) );
85 return b_entity_impl->id();
92 DTK_REQUIRE( Teuchos::nonnull( b_entity_impl ) );
93 return b_entity_impl->ownerRank();
100 DTK_REQUIRE( Teuchos::nonnull( b_entity_impl ) );
101 return b_entity_impl->topologicalDimension();
108 DTK_REQUIRE( Teuchos::nonnull( b_entity_impl ) );
109 return b_entity_impl->physicalDimension();
116 DTK_REQUIRE( Teuchos::nonnull( b_entity_impl ) );
117 b_entity_impl->boundingBox( bounds );
124 DTK_REQUIRE( Teuchos::nonnull( b_entity_impl ) );
125 return b_entity_impl->inBlock( block_id );
132 DTK_REQUIRE( Teuchos::nonnull( b_entity_impl ) );
133 return b_entity_impl->onBoundary( boundary_id );
140 DTK_REQUIRE( Teuchos::nonnull( b_entity_impl ) );
141 return b_entity_impl->extraData();
148 DTK_REQUIRE( Teuchos::nonnull( b_entity_impl ) );
150 d <<
" Id = " <<
id() <<
", OwnerRank = " <<
ownerRank()
153 return b_entity_impl->description() + d.str();
159 const Teuchos::EVerbosityLevel verb_level )
const 161 DTK_REQUIRE( Teuchos::nonnull( b_entity_impl ) );
162 return b_entity_impl->describe( out, verb_level );
Entity & operator=(const Entity &rhs)
Copy assignment operator.
Geometric entity interface definition.
virtual ~Entity()
Destructor.
void boundingBox(Teuchos::Tuple< double, 6 > &bounds) const
Return the Cartesian bounding box around an entity.
int ownerRank() const
Get the parallel rank that owns the entity.
bool inBlock(const int block_id) const
Determine if an entity is in the block with the given id.
Assertions and Design-by-Contract for error handling.
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verb_level=Teuchos::Describable::verbLevel_default) const override
Provide a verbose description of the object.
Teuchos::RCP< EntityExtraData > extraData() const
Get the extra data on the entity. This is a convenient helper for implementing the other interfaces...
int physicalDimension() const
Return the physical dimension of the entity.
unsigned long int EntityId
Entity id type.
int topologicalDimension() const
Return the topological dimension of the entity.
std::string description() const override
Teuchos::Describable interface.
bool onBoundary(const int boundary_id) const
Determine if an entity is on the boundary with the given id.
EntityId id() const
Client interface.