selxSuperElastixComponent.hxx 1.94 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
{
Floris Berendsen's avatar
Floris Berendsen committed
25

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

35
36
37
38

template< typename AcceptingInterfaces, typename ProvidingInterfaces >
int
SuperElastixComponent< AcceptingInterfaces, ProvidingInterfaces >::AcceptConnectionFrom( ComponentBase * other )
39
{
40
  return AcceptingInterfaces::ConnectFromImpl( other );
41
}
42

Floris Berendsen's avatar
Floris Berendsen committed
43

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

Floris Berendsen's avatar
Floris Berendsen committed
52

Floris Berendsen's avatar
Floris Berendsen committed
53
} // end namespace selx
54

55
#endif // #define selxSuperElastixComponent_hxx