Rename pyTypePostModuleInit<> to pyTypePostInit<> (clearer).

This commit is contained in:
Jean-Paul Chaput 2021-09-25 19:20:57 +02:00
parent 16d1da053a
commit 844db44ebf
7 changed files with 16 additions and 16 deletions

View File

@ -33,7 +33,7 @@ extern "C" {
template<>
inline void pyTypePostModuleInit<Hurricane::BasicLayer> ( PyTypeObject* typeObject )
inline void pyTypePostInit<Hurricane::BasicLayer> ( PyTypeObject* typeObject )
{
PyTypeManagerNonDBo<Hurricane::BasicLayer::Material>::create( (PyObject*)typeObject
, PyMaterial_Methods

View File

@ -43,7 +43,7 @@ namespace Isobar3 {
template<>
inline void pyTypePostModuleInit<Hurricane::DataBase> ( PyTypeObject* typeObject )
inline void pyTypePostInit<Hurricane::DataBase> ( PyTypeObject* typeObject )
{
PyTypeManagerNonDBo<Hurricane::DataBase::Flags>::create( (PyObject*)typeObject
, PyDataBaseFlags_Methods
@ -54,7 +54,7 @@ namespace Isobar3 {
template<>
inline void pyTypePostModuleInit<Hurricane::DataBase::Flags> ( PyTypeObject* typeObject )
inline void pyTypePostInit<Hurricane::DataBase::Flags> ( PyTypeObject* typeObject )
{
// Parameter::Flags enum.
addConstant( typeObject, "NoFlags" , Hurricane::DataBase::NoFlags );

View File

@ -32,7 +32,7 @@ extern "C" {
template<>
inline void pyTypePostModuleInit<Hurricane::DbU> ( PyTypeObject* typeObject )
inline void pyTypePostInit<Hurricane::DbU> ( PyTypeObject* typeObject )
{
addConstant( typeObject, "SnapModeInferior" , Hurricane::DbU::Inferior );
addConstant( typeObject, "SnapModeSuperior" , Hurricane::DbU::Superior );

View File

@ -101,9 +101,9 @@ extern "C" {
template< typename CppT >
inline void pyTypePostModuleInit ( PyTypeObject* typeObject )
inline void pyTypePostInit ( PyTypeObject* typeObject )
{
//cerr << "pyTypePostModuleInit<CppT>() default for <"
//cerr << "pyTypePostInit<CppT>() default for <"
// << demangle(typeid(CppT).name()) << ">." << endl;
}
@ -252,7 +252,7 @@ extern "C" {
_managerByCppTypes[ std::type_index(typeid(CppT)) ] = manager;
_managerByPyTypes [ manager->_getTypeObject() ] = manager;
manager->_addToModule( module );
pyTypePostModuleInit<CppT>( manager->_getTypeObject() );
pyTypePostInit<CppT>( manager->_getTypeObject() );
// std::cerr << "_managerByCppTypes.size()=" << _managerByCppTypes.size() << std::endl;
}

View File

@ -39,7 +39,7 @@ namespace Isobar3 {
template<>
inline void pyTypePostModuleInit<Hurricane::BasicLayer::Material> ( PyTypeObject* typeObject )
inline void pyTypePostInit<Hurricane::BasicLayer::Material> ( PyTypeObject* typeObject )
{
addConstant( typeObject, "nWell" , BasicLayer::Material::nWell );
addConstant( typeObject, "pWell" , BasicLayer::Material::pWell );

View File

@ -98,9 +98,9 @@ namespace Isobar3 {
template<>
inline void pyTypePostModuleInit<Cfg::Parameter> ( PyTypeObject* typeObject )
inline void pyTypePostInit<Cfg::Parameter> ( PyTypeObject* typeObject )
{
// std::cerr << "pyTypePostModuleInit<Cfg::Parameter>()" << std::endl;
// std::cerr << "pyTypePostInit<Cfg::Parameter>()" << std::endl;
PyTypeManagerNonDBo<Cfg::Parameter::Priority>::create( (PyObject*)typeObject
, Cfg::PyParameterPriority_Methods
, NULL
@ -123,7 +123,7 @@ namespace Isobar3 {
template<>
inline void pyTypePostModuleInit<Cfg::Parameter::Priority> ( PyTypeObject* typeObject )
inline void pyTypePostInit<Cfg::Parameter::Priority> ( PyTypeObject* typeObject )
{
// Parameter::Priority enum.
addConstant( typeObject, "UseDefault" , Cfg::Parameter::UseDefault );
@ -136,7 +136,7 @@ namespace Isobar3 {
template<>
inline void pyTypePostModuleInit<Cfg::Parameter::Type> ( PyTypeObject* typeObject )
inline void pyTypePostInit<Cfg::Parameter::Type> ( PyTypeObject* typeObject )
{
// Parameter::Type enum.
addConstant( typeObject, "Unknown" , Cfg::Parameter::Unknown );
@ -150,7 +150,7 @@ namespace Isobar3 {
template<>
inline void pyTypePostModuleInit<Cfg::Parameter::Flags> ( PyTypeObject* typeObject )
inline void pyTypePostInit<Cfg::Parameter::Flags> ( PyTypeObject* typeObject )
{
// Parameter::Flags enum.
addConstant( typeObject, "HasMin" , Cfg::Parameter::HasMin );

View File

@ -107,9 +107,9 @@ extern "C" {
template< typename CppT >
inline void pyTypePostModuleInit ( PyTypeObject* typeObject )
inline void pyTypePostInit ( PyTypeObject* typeObject )
{
//cerr << "pyTypePostModuleInit<CppT>() default for <"
//cerr << "pyTypePostInit<CppT>() default for <"
// << demangle(typeid(CppT).name()) << ">." << endl;
}
@ -354,7 +354,7 @@ extern "C" {
_managerByCppTypes[ hashCode ] = manager;
_managerByPyTypes [ manager->_getTypeObject() ] = manager;
manager->_addToModule( module );
pyTypePostModuleInit<CppT>( manager->_getTypeObject() );
pyTypePostInit<CppT>( manager->_getTypeObject() );
// std::cerr << "_managerByCppTypes.size()=" << _managerByCppTypes.size() << std::endl;
}