Loading...
Searching...
No Matches
elxInstallFunctions.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht 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.
*
*=========================================================================*/
#ifndef elxInstallFunctions_h
#define elxInstallFunctions_h
#include "elxComponentDatabase.h"
namespace elastix
{
template <class TAnyItkObject>
class ITK_TEMPLATE_EXPORT InstallFunctions
{
public:
using Self = InstallFunctions;
using AnyItkObjectType = TAnyItkObject;
using ObjectPointer = ComponentDatabase::ObjectPointer;
using IndexType = ComponentDatabase::IndexType;
using ComponentDescriptionType = ComponentDatabase::ComponentDescriptionType;
static ObjectPointer
Creator()
{
return AnyItkObjectType::New().GetPointer();
}
static int
InstallComponent(const ComponentDescriptionType & name, IndexType i, ComponentDatabase * cdb)
{
return cdb->SetCreator(name, i, Self::Creator);
}
};
} // end namespace elastix
#endif // end #ifndef elxInstallFunctions_h
elastix::ComponentDatabase
The ComponentDatabase class is a class that stores the New() functions of all components.
Definition elxComponentDatabase.h:53
elastix::ComponentDatabase::ObjectPointer
itk::Object::Pointer ObjectPointer
Definition elxComponentDatabase.h:70
elastix::ComponentDatabase::IndexType
unsigned int IndexType
Definition elxComponentDatabase.h:67
elastix::ComponentDatabase::ComponentDescriptionType
std::string ComponentDescriptionType
Definition elxComponentDatabase.h:76
elastix::ComponentDatabase::SetCreator
int SetCreator(const ComponentDescriptionType &name, IndexType i, PtrToCreator creator)
elastix::InstallFunctions
A class with functions that are used to install elastix components.
Definition elxInstallFunctions.h:47
elastix::InstallFunctions::ObjectPointer
ComponentDatabase::ObjectPointer ObjectPointer
Definition elxInstallFunctions.h:54
elastix::InstallFunctions::Self
InstallFunctions Self
Definition elxInstallFunctions.h:50
elastix::InstallFunctions::ComponentDescriptionType
ComponentDatabase::ComponentDescriptionType ComponentDescriptionType
Definition elxInstallFunctions.h:62
elastix::InstallFunctions::IndexType
ComponentDatabase::IndexType IndexType
Definition elxInstallFunctions.h:59
elastix::InstallFunctions::AnyItkObjectType
TAnyItkObject AnyItkObjectType
Definition elxInstallFunctions.h:51
elastix::InstallFunctions::Creator
static ObjectPointer Creator()
Definition elxInstallFunctions.h:66
elastix::InstallFunctions::InstallComponent
static int InstallComponent(const ComponentDescriptionType &name, IndexType i, ComponentDatabase *cdb)
Definition elxInstallFunctions.h:76
elxComponentDatabase.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |