diff --git a/hurricane/src/hurricane/Cell.cpp b/hurricane/src/hurricane/Cell.cpp index d46c0b91..19f43382 100644 --- a/hurricane/src/hurricane/Cell.cpp +++ b/hurricane/src/hurricane/Cell.cpp @@ -48,7 +48,7 @@ Cell::Cell(Library* library, const Name& name) if (!_library) throw Error("Can't create " + _TName("Cell") + " : null library"); - if (name.IsEmpty()) + if (name.isEmpty()) throw Error("Can't create " + _TName("Cell") + " : empty name"); if (_library->getCell(_name)) @@ -103,7 +103,7 @@ void Cell::setName(const Name& name) // ********************************* { if (name != _name) { - if (name.IsEmpty()) + if (name.isEmpty()) throw Error("Can't change " + _TName("Cell") + " name : empty name"); if (_library->getCell(name)) diff --git a/hurricane/src/hurricane/DRCError.cpp b/hurricane/src/hurricane/DRCError.cpp index 1b7a626b..12107a84 100644 --- a/hurricane/src/hurricane/DRCError.cpp +++ b/hurricane/src/hurricane/DRCError.cpp @@ -23,7 +23,7 @@ DRCError::DRCError(Cell* cell, const Name& name, const Box& boundingBox) _name(name), _boundingBox(boundingBox) { - if (_name.IsEmpty()) + if (_name.isEmpty()) throw Error("Can't create " + _TName("DRCError") + " : empty name"); if (_boundingBox.isEmpty()) diff --git a/hurricane/src/hurricane/Entity.cpp b/hurricane/src/hurricane/Entity.cpp index 34f3f80e..b3ec9813 100644 --- a/hurricane/src/hurricane/Entity.cpp +++ b/hurricane/src/hurricane/Entity.cpp @@ -81,7 +81,7 @@ Record* Entity::_getRecord() const Record* record = Inherit::_getRecord(); if (record) { Occurrence occurrence = Occurrence(this); - if (occurrence.HasProperty()) + if (occurrence.hasProperty()) record->Add(getSlot("Occurrence", occurrence)); } return record; diff --git a/hurricane/src/hurricane/Go.cpp b/hurricane/src/hurricane/Go.cpp index 2537a4c1..3a391d22 100644 --- a/hurricane/src/hurricane/Go.cpp +++ b/hurricane/src/hurricane/Go.cpp @@ -25,19 +25,19 @@ Go::Go() { } -bool Go::AutoMaterializationIsDisabled() +bool Go::autoMaterializationIsDisabled() // ************************************* { return !AUTO_MATERIALIZATION_IS_ENABLED; } -void Go::EnableAutoMaterialization() +void Go::enableAutoMaterialization() // ********************************* { AUTO_MATERIALIZATION_IS_ENABLED = true; } -void Go::DisableAutoMaterialization() +void Go::disableAutoMaterialization() // ********************************** { AUTO_MATERIALIZATION_IS_ENABLED = false; @@ -48,7 +48,7 @@ void Go::_postCreate() { Inherit::_postCreate(); - if (!AutoMaterializationIsDisabled()) materialize(); // materialized after entire post creation + if (!autoMaterializationIsDisabled()) materialize(); // materialized after entire post creation } void Go::_preDestroy() diff --git a/hurricane/src/hurricane/Go.h b/hurricane/src/hurricane/Go.h index c44c0658..30224555 100644 --- a/hurricane/src/hurricane/Go.h +++ b/hurricane/src/hurricane/Go.h @@ -47,15 +47,15 @@ class Go : public Entity { // Predicates // ********** - public: static bool AutoMaterializationIsDisabled(); + public: static bool autoMaterializationIsDisabled(); public: bool isMaterialized() const {return (_quadTree != NULL);}; // Updators // ******** - public: static void EnableAutoMaterialization(); - public: static void DisableAutoMaterialization(); + public: static void enableAutoMaterialization(); + public: static void disableAutoMaterialization(); public: virtual void materialize() = 0; public: virtual void unmaterialize() = 0; diff --git a/hurricane/src/hurricane/Instance.cpp b/hurricane/src/hurricane/Instance.cpp index de8ea125..bc8e0be5 100644 --- a/hurricane/src/hurricane/Instance.cpp +++ b/hurricane/src/hurricane/Instance.cpp @@ -169,7 +169,7 @@ Instance::Instance(Cell* cell, const Name& name, Cell* masterCell, const Transfo if (!_cell) throw Error("Can't create " + _TName("Instance") + " : null cell"); - if (name.IsEmpty()) + if (name.isEmpty()) throw Error("Can't create " + _TName("Instance") + " : empty name"); if (_cell->getInstance(_name)) @@ -339,7 +339,7 @@ void Instance::setName(const Name& name) // ************************************* { if (name != _name) { - if (name.IsEmpty()) + if (name.isEmpty()) throw Error("Can't change instance name : empty name"); if (_cell->getInstance(name)) diff --git a/hurricane/src/hurricane/Layer.cpp b/hurricane/src/hurricane/Layer.cpp index b34cae7e..b753b14e 100644 --- a/hurricane/src/hurricane/Layer.cpp +++ b/hurricane/src/hurricane/Layer.cpp @@ -31,7 +31,7 @@ Layer::Layer(Technology* technology, const Name& name, const Unit& minimalSize, if (!_technology) throw Error("Can't create " + _TName("Layer") + " : null technology"); - if (_name.IsEmpty()) + if (_name.isEmpty()) throw Error("Can't create " + _TName("Layer") + " : empty name"); if (_technology->getLayer(_name)) @@ -54,7 +54,7 @@ void Layer::setName(const Name& name) // ********************************** { if (name != _name) { - if (name.IsEmpty()) + if (name.isEmpty()) throw Error("Can't change layer name : empty name"); if (_technology->getLayer(name)) diff --git a/hurricane/src/hurricane/Library.cpp b/hurricane/src/hurricane/Library.cpp index 1eb0b9f3..5b05fea6 100644 --- a/hurricane/src/hurricane/Library.cpp +++ b/hurricane/src/hurricane/Library.cpp @@ -31,7 +31,7 @@ Library::Library(DataBase* dataBase, Library* library, const Name& name) if (!_dataBase) throw Error("Can't create " + _TName("Library") + " : null data base"); - if (name.IsEmpty()) + if (name.isEmpty()) throw Error("Can't create " + _TName("Library") + " : empty name"); if (!_library) { @@ -71,7 +71,7 @@ void Library::SetName(const Name& name) // ************************************ { if (name != _name) { - if (name.IsEmpty()) + if (name.isEmpty()) throw Error("Can't change library name : empty name"); if (_library && _library->getLibrary(name)) diff --git a/hurricane/src/hurricane/Name.cpp b/hurricane/src/hurricane/Name.cpp index e4ea9acd..3ea9d6d8 100644 --- a/hurricane/src/hurricane/Name.cpp +++ b/hurricane/src/hurricane/Name.cpp @@ -148,7 +148,7 @@ char Name::operator[](unsigned index) const return _sharedName->_string[index]; } -bool Name::IsEmpty() const +bool Name::isEmpty() const // *********************** { return _sharedName->_string.empty(); diff --git a/hurricane/src/hurricane/Name.h b/hurricane/src/hurricane/Name.h index f93739e3..5bb64420 100644 --- a/hurricane/src/hurricane/Name.h +++ b/hurricane/src/hurricane/Name.h @@ -60,7 +60,7 @@ class Name { // Predicates // ********** - public: bool IsEmpty() const; + public: bool isEmpty() const; // Others // ****** diff --git a/hurricane/src/hurricane/Net.cpp b/hurricane/src/hurricane/Net.cpp index 95a1ed26..262826f9 100644 --- a/hurricane/src/hurricane/Net.cpp +++ b/hurricane/src/hurricane/Net.cpp @@ -254,7 +254,7 @@ Net::Net(Cell* cell, const Name& name) if (!_cell) throw Error("Can't create " + _TName("Net") + " : null cell"); - if (name.IsEmpty()) + if (name.isEmpty()) throw Error("Can't create " + _TName("Net") + " : empty name"); if (_cell->getNet(_name)) @@ -414,7 +414,7 @@ void Net::setName(const Name& name) // ******************************** { if (name != _name) { - if (name.IsEmpty()) + if (name.isEmpty()) throw Error("Can't change net name : empty name"); if (_cell->getNet(name)) diff --git a/hurricane/src/hurricane/Occurrence.cpp b/hurricane/src/hurricane/Occurrence.cpp index 9d72f687..ccc99bde 100644 --- a/hurricane/src/hurricane/Occurrence.cpp +++ b/hurricane/src/hurricane/Occurrence.cpp @@ -121,20 +121,20 @@ Box Occurrence::getBoundingBox() const return _sharedPath->getTransformation().getBox(_entity->getBoundingBox()); } -bool Occurrence::HasProperty() const +bool Occurrence::hasProperty() const // ******************************** { return (_getQuark() != NULL); } -void Occurrence::MakeInvalid() +void Occurrence::makeInvalid() // ************************** { _entity = NULL; _sharedPath = NULL; } -void Occurrence::Put(Property* property) +void Occurrence::put(Property* property) // ************************************ { if (!_entity) @@ -148,7 +148,7 @@ void Occurrence::Put(Property* property) quark->put(property); } -void Occurrence::Remove(Property* property) +void Occurrence::remove(Property* property) // *************************************** { if (!_entity) @@ -161,7 +161,7 @@ void Occurrence::Remove(Property* property) if (quark) quark->remove(property); } -void Occurrence::RemoveProperty(const Name& name) +void Occurrence::removeProperty(const Name& name) // ********************************************* { if (!_entity) @@ -171,7 +171,7 @@ void Occurrence::RemoveProperty(const Name& name) if (quark) quark->removeProperty(name); } -void Occurrence::ClearProperties() +void Occurrence::clearProperties() // ****************************** { Quark* quark = _getQuark(); diff --git a/hurricane/src/hurricane/Occurrence.h b/hurricane/src/hurricane/Occurrence.h index fe51540a..26507596 100644 --- a/hurricane/src/hurricane/Occurrence.h +++ b/hurricane/src/hurricane/Occurrence.h @@ -64,16 +64,16 @@ class Occurrence { // ********** public: bool isValid() const {return (_entity != NULL);}; - public: bool HasProperty() const; + public: bool hasProperty() const; // Updators // ******** - public: void MakeInvalid(); - public: void Put(Property* property); - public: void Remove(Property* property); - public: void RemoveProperty(const Name& name); - public: void ClearProperties(); + public: void makeInvalid(); + public: void put(Property* property); + public: void remove(Property* property); + public: void removeProperty(const Name& name); + public: void clearProperties(); // Others // ****** diff --git a/hurricane/src/hurricane/Reference.cpp b/hurricane/src/hurricane/Reference.cpp index 2ada4cd5..8550286e 100644 --- a/hurricane/src/hurricane/Reference.cpp +++ b/hurricane/src/hurricane/Reference.cpp @@ -32,7 +32,7 @@ Reference::Reference(Cell* cell, const Name& name, Unit x, Unit y) { if ( !_extend ) _extend = getUnit(0.5); - if (_name.IsEmpty()) + if (_name.isEmpty()) throw Error("Can't create " + _TName("Reference") + " : empty name"); } diff --git a/hurricane/src/hurricane/Technology.cpp b/hurricane/src/hurricane/Technology.cpp index 399a62cb..496d057c 100644 --- a/hurricane/src/hurricane/Technology.cpp +++ b/hurricane/src/hurricane/Technology.cpp @@ -104,7 +104,7 @@ Technology::Technology(DataBase* dataBase, const Name& name) if (_dataBase->getTechnology()) throw Error("Can't create " + _TName("Technology") + " : already exists"); - if (_name.IsEmpty()) + if (_name.isEmpty()) throw Error("Can't create " + _TName("Technology") + " : empty name"); } @@ -156,7 +156,7 @@ void Technology::SetName(const Name& name) // *************************************** { if (name != _name) { - if (name.IsEmpty()) + if (name.isEmpty()) throw Error("Can't change technology name : empty name"); _name = name; diff --git a/hurricane/src/pyext/PyName.cpp b/hurricane/src/pyext/PyName.cpp index 758c6297..1807cff1 100644 --- a/hurricane/src/pyext/PyName.cpp +++ b/hurricane/src/pyext/PyName.cpp @@ -75,11 +75,11 @@ extern "C" { //DirectGetBoolAttribute(PyName_IsEmpty,IsEmpty,PyName,Name) - static PyObject* PyName_IsEmpty ( PyName *self ) { - trace << "PyName_IsEmpty()" << endl; + static PyObject* PyName_isEmpty ( PyName *self ) { + trace << "PyName_isEmpty()" << endl; - METHOD_HEAD ( "Name.IsEmpty()" ) - return ( Py_BuildValue ("i",_object->IsEmpty()) ); + METHOD_HEAD ( "Name.isEmpty()" ) + return ( Py_BuildValue ("i",_object->isEmpty()) ); } @@ -93,7 +93,7 @@ extern "C" { // PyName Attribute Method table. PyMethodDef PyName_Methods[] = - { { "IsEmpty" , (PyCFunction)PyName_IsEmpty , METH_NOARGS , "True if empty." } + { { "isEmpty" , (PyCFunction)PyName_isEmpty , METH_NOARGS , "True if empty." } , { "destroy" , (PyCFunction)PyName_destroy , METH_NOARGS , "Destroy associated hurricane object The python object remains." } , {NULL, NULL, 0, NULL} /* sentinel */ diff --git a/hurricane/src/pyext/PyOccurrence.cpp b/hurricane/src/pyext/PyOccurrence.cpp index dd182190..0e9752ad 100644 --- a/hurricane/src/pyext/PyOccurrence.cpp +++ b/hurricane/src/pyext/PyOccurrence.cpp @@ -86,7 +86,7 @@ extern "C" { // Standart Predicates (Attributes). DirectGetBoolAttribute(PyOccurrence_isValid ,isValid ,PyOccurrence,Occurrence) - DirectGetBoolAttribute(PyOccurrence_HasProperty,HasProperty,PyOccurrence,Occurrence) + DirectGetBoolAttribute(PyOccurrence_hasProperty,hasProperty,PyOccurrence,Occurrence) // Standart destroy (Attribute). @@ -227,7 +227,7 @@ extern "C" { , { "getMasterCell" , (PyCFunction)PyOccurrence_getMasterCell , METH_NOARGS, "Returns the cell owning the referenced entity." } , { "getBoundingBox", (PyCFunction)PyOccurrence_getBoundingBox, METH_NOARGS, "Returns the occurrence bounding box." } , { "isValid" , (PyCFunction)PyOccurrence_isValid , METH_NOARGS, "Returns true if the occurrence is valid." } - , { "HasProperty" , (PyCFunction)PyOccurrence_HasProperty , METH_NOARGS, "Returns true if the occurrence owns some properties." } + , { "hasProperty" , (PyCFunction)PyOccurrence_hasProperty , METH_NOARGS, "Returns true if the occurrence owns some properties." } , { "destroy" , (PyCFunction)PyOccurrence_destroy , METH_NOARGS , "Destroy associated hurricane object, the python object remains." } , {NULL, NULL, 0, NULL} /* sentinel */