From 0e1e4e25731e5f30ed0a9dc0456f54a842fcafe1 Mon Sep 17 00:00:00 2001 From: Christophe Alexandre Date: Thu, 5 Jun 2008 17:08:28 +0000 Subject: [PATCH] Pad constructor with const Layer --- hurricane/doc/hurricane/Technology.dox | 9 --------- hurricane/src/hurricane/Pad.cpp | 8 ++++---- hurricane/src/hurricane/hurricane/Pad.h | 6 +++--- 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/hurricane/doc/hurricane/Technology.dox b/hurricane/doc/hurricane/Technology.dox index 0e3b5c83..871e5b33 100644 --- a/hurricane/doc/hurricane/Technology.dox +++ b/hurricane/doc/hurricane/Technology.dox @@ -54,10 +54,6 @@ * \Return the Layer named \c \ if it exists and is a BasicLayer, else \NULL. */ - /*! \function CompositeLayer* Technology::getCompositeLayer ( const Name& name ) const; - * \Return the Layer named \c \ if it exists and is a CompositeLayer, else \NULL. - */ - /*! \function Layers Technology::getLayers () const; * \Return Returns the collection of layers of the technology. * @@ -79,11 +75,6 @@ * which matches the Layer mask \c \ (uses the same order). */ - /*! \function CompositeLayers Technology::getCompositeLayers () const; - * \Return Returns the collection of composite layers of the technology - * (uses the same order). - */ - // \} diff --git a/hurricane/src/hurricane/Pad.cpp b/hurricane/src/hurricane/Pad.cpp index a744667c..a7290765 100644 --- a/hurricane/src/hurricane/Pad.cpp +++ b/hurricane/src/hurricane/Pad.cpp @@ -19,8 +19,8 @@ namespace Hurricane { // Pad implementation // **************************************************************************************************** -Pad::Pad(Net* net, Layer* layer, const Box& boundingBox) -// ***************************************************** +Pad::Pad(Net* net, const Layer* layer, const Box& boundingBox) +// *********************************************************** : Inherit(net), _layer(layer), _boundingBox(boundingBox) @@ -32,8 +32,8 @@ Pad::Pad(Net* net, Layer* layer, const Box& boundingBox) throw Error("Can't create " + _TName("Pad") + " : empty bounding box"); } -Pad* Pad::create(Net* net, Layer* layer, const Box& boundingBox) -// ************************************************************* +Pad* Pad::create(Net* net, const Layer* layer, const Box& boundingBox) +// ******************************************************************* { Pad* pad = new Pad(net, layer, boundingBox); diff --git a/hurricane/src/hurricane/hurricane/Pad.h b/hurricane/src/hurricane/hurricane/Pad.h index 40bab2ac..803aafe4 100644 --- a/hurricane/src/hurricane/hurricane/Pad.h +++ b/hurricane/src/hurricane/hurricane/Pad.h @@ -31,15 +31,15 @@ class Pad : public Component { // Attributes // ********** - private: Layer* _layer; + private: const Layer* _layer; private: Box _boundingBox; // Constructors // ************ - protected: Pad(Net* net, Layer* layer, const Box& boundingBox); + protected: Pad(Net* net, const Layer* layer, const Box& boundingBox); - public: static Pad* create(Net* net, Layer* layer, const Box& boundingBox); + public: static Pad* create(Net* net, const Layer* layer, const Box& boundingBox); // Accessors // *********