IgANet
IGAnets - Isogeometric Analysis Networks
Loading...
Searching...
No Matches
iganet::PatchInterface< Patch > Class Template Reference

Connection between two patch sides. More...

#include </home/runner/work/iganet/iganet/include/iganet/splines/multipatch.hpp>

Public Member Functions

 PatchInterface (std::shared_ptr< Patch > firstPatch, enum side firstSide, std::shared_ptr< Patch > secondPatch, enum side secondSide)
 Constructor.
 
Patch & patch (std::size_t endpoint)
 Returns one of the two patches.
 
const Patch & patch (std::size_t endpoint) const
 Returns one of the two patches.
 
const std::shared_ptr< Patch > & patchPtr (std::size_t endpoint) const
 Returns the shared pointer to one of the two patches.
 
enum side side (std::size_t endpoint) const
 Returns the side of one of the two patches.
 

Private Attributes

std::array< std::shared_ptr< Patch >, 2 > patches_
 
std::array< enum side, 2 > sides_
 

Detailed Description

template<typename Patch>
class iganet::PatchInterface< Patch >

Connection between two patch sides.

Constructor & Destructor Documentation

◆ PatchInterface()

template<typename Patch >
iganet::PatchInterface< Patch >::PatchInterface ( std::shared_ptr< Patch >  firstPatch,
enum side  firstSide,
std::shared_ptr< Patch >  secondPatch,
enum side  secondSide 
)
inline

Constructor.

Template Parameters
PatchTemplate parameter Patch.
Parameters
firstPatchValue of firstPatch.
firstSideValue of firstSide.
secondPatchValue of secondPatch.
secondSideValue of secondSide.

Member Function Documentation

◆ firstPatch() [1/2]

template<typename Patch >
Patch & iganet::PatchInterface< Patch >::firstPatch ( )
inline

Named endpoint accessors.

Returns
Result of the operation.

◆ firstPatch() [2/2]

template<typename Patch >
const Patch & iganet::PatchInterface< Patch >::firstPatch ( ) const
inline

Provides the firstPatch operation.

Returns
Result of the operation.

◆ firstSide()

template<typename Patch >
enum side iganet::PatchInterface< Patch >::firstSide ( ) const
inline

Provides the firstSide operation.

Returns
Result of the operation.

◆ patch() [1/2]

template<typename Patch >
Patch & iganet::PatchInterface< Patch >::patch ( std::size_t  endpoint)
inline

Returns one of the two patches.

Parameters
endpointValue of endpoint.
Returns
Result of the operation.

◆ patch() [2/2]

template<typename Patch >
const Patch & iganet::PatchInterface< Patch >::patch ( std::size_t  endpoint) const
inline

Returns one of the two patches.

Parameters
endpointValue of endpoint.
Returns
Result of the operation.

◆ patchPtr()

template<typename Patch >
const std::shared_ptr< Patch > & iganet::PatchInterface< Patch >::patchPtr ( std::size_t  endpoint) const
inline

Returns the shared pointer to one of the two patches.

Parameters
endpointValue of endpoint.
Returns
Result of the operation.

◆ secondPatch() [1/2]

template<typename Patch >
Patch & iganet::PatchInterface< Patch >::secondPatch ( )
inline

Provides the secondPatch operation.

Returns
Result of the operation.

◆ secondPatch() [2/2]

template<typename Patch >
const Patch & iganet::PatchInterface< Patch >::secondPatch ( ) const
inline

Provides the secondPatch operation.

Returns
Result of the operation.

◆ secondSide()

template<typename Patch >
enum side iganet::PatchInterface< Patch >::secondSide ( ) const
inline

Provides the secondSide operation.

Returns
Result of the operation.

◆ side()

template<typename Patch >
enum side iganet::PatchInterface< Patch >::side ( std::size_t  endpoint) const
inline

Returns the side of one of the two patches.

Parameters
endpointValue of endpoint.
Returns
Result of the operation.

Member Data Documentation

◆ patches_

template<typename Patch >
std::array<std::shared_ptr<Patch>, 2> iganet::PatchInterface< Patch >::patches_
private

◆ sides_

template<typename Patch >
std::array<enum side, 2> iganet::PatchInterface< Patch >::sides_
private

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