selxSuperElastixComponent.hxx 1.96 KB
Newer Older
Floris Berendsen's avatar
Floris Berendsen committed
1
2
/*=========================================================================
 *
3
 *  Copyright Leiden University Medical Center, Erasmus University Medical
Floris Berendsen's avatar
Floris Berendsen committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 *  Center and contributors
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0.txt
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 *=========================================================================*/

20
21
#ifndef selxSuperElastixComponent_hxx
#define selxSuperElastixComponent_hxx
22

Floris Berendsen's avatar
Floris Berendsen committed
23
namespace selx
24
{
25
//////////////////////////////////////////////////////////////////////////
26
template< typename AcceptingInterfaces, typename ProvidingInterfaces >
27
int
28
SuperElastixComponent< AcceptingInterfaces, ProvidingInterfaces >::AcceptConnectionFrom( ComponentBase::Pointer other,
Floris Berendsen's avatar
Floris Berendsen committed
29
  const InterfaceCriteriaType interfaceCriteria )
30
{
Floris Berendsen's avatar
Floris Berendsen committed
31
  return AcceptingInterfaces::ConnectFromImpl( other, interfaceCriteria );
32
33
}

34
35
36

template< typename AcceptingInterfaces, typename ProvidingInterfaces >
int
Floris Berendsen's avatar
Floris Berendsen committed
37
SuperElastixComponent< AcceptingInterfaces, ProvidingInterfaces >::AcceptConnectionFrom( ComponentBase::Pointer other )
38
{
39
  return AcceptingInterfaces::ConnectFromImpl( other );
40
}
41

Floris Berendsen's avatar
Floris Berendsen committed
42

43
template< typename AcceptingInterfaces, typename ProvidingInterfaces >
44
InterfaceStatus
45
SuperElastixComponent< AcceptingInterfaces, ProvidingInterfaces >
46
::CanAcceptConnectionFrom( ComponentBase::ConstPointer other, const InterfaceCriteriaType interfaceCriteria )
47
{
Floris Berendsen's avatar
Floris Berendsen committed
48
  return AcceptingInterfaces::CanAcceptConnectionFrom( other, interfaceCriteria );
49
}
Floris Berendsen's avatar
Floris Berendsen committed
50
} // end namespace selx
51

52
#endif // #define selxSuperElastixComponent_hxx