Rename pyTypePostModuleInit<> to pyTypePostInit<> (clearer).
This commit is contained in:
parent
16d1da053a
commit
844db44ebf
|
@ -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
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue