16 #ifndef TORC_GENERIC_LIBRARY_HPP
17 #define TORC_GENERIC_LIBRARY_HPP
22 #ifdef GENOM_SERIALIZATION
23 #include <boost/serialization/access.hpp>
24 #include <boost/serialization/split_member.hpp>
25 #endif //GENOM_SERIALIZATION
64 #ifdef GENOM_SERIALIZATION
65 friend class boost::serialization::access;
66 #endif //GENOM_SERIALIZATION
241 virtual void getCells(std::vector<CellSharedPtr>& outCells);
274 Library(const Library&);
276 Library& operator =(const Library&);
279 #ifdef GENOM_SERIALIZATION
280 template <
class Archive>
void load(Archive& ar,
unsigned int);
282 template <
class Archive>
void save(Archive& ar,
unsigned int)
const;
286 void restoreAllCells() throw (
Error);
288 BOOST_SERIALIZATION_SPLIT_MEMBER()
290 #endif //GENOM_SERIALIZATION
295 #ifdef GENOM_SERIALIZATION
296 mutable std::list<std::string> mDumpedCells;
297 #endif //GENOM_SERIALIZATION
315 std::map<Unit, ScaleFactor> temp;
328 #ifdef GENOM_SERIALIZATION
330 #endif //GENOM_SERIALIZATION
331 mCellSymTab.applyOnAll(action);
347 #ifdef GENOM_SERIALIZATION
355 const DumpRestoreData& inData)
throw (
Error);
356 #endif //GENOM_SERIALIZATION
360 #endif // TORC_GENERIC_LIBRARY_HPP
An acyclic inoutVisitor implementation.
const std::map< Unit, ScaleFactor > getScaleFactors() const
void addCell(const CellSharedPtr &inCell)
bool setScaleFactor(Unit inUnit, const ScaleFactor &inScale)
An object that has a parent.
const EdifLevel getLevel() const
void setSimulationInfo(const SimulationInfoSharedPtr &inSource)
virtual void accept(BaseVisitor &inoutVisitor)
Represents class that can hold userData.
virtual void getCells(std::vector< CellSharedPtr > &outCells)
bool findScaleFactor(Unit inUnit, ScaleFactor &outResult) const
void applyOnAllCells(const _Action &action)
The Error object thrown by different methods of EdifOM.
VisitorType< Library > Visitor
boost::shared_ptr< Library > LibrarySharedPtr
A base class for Visitor.
boost::shared_ptr< SimulationInfo > SimulationInfoSharedPtr
SymTab< std::string, CellSharedPtr > mCellSymTab
SimulationInfoSharedPtr mSimulationInfo
virtual CellSharedPtr findCell(const std::string &inName)
void removeCell(const std::string &inName)
void setLevel(const EdifLevel &inSource)
SymTab< Unit, ScaleFactor > mScaleFactors
virtual LibrarySharedPtr newLibraryPtr(const std::string &inName, const RootSharedPtr &inRootPtr, const EdifLevel &inEdifLevel=eEdifLevel0, const std::string &inOriginalName=std::string())
boost::shared_ptr< Cell > CellSharedPtr
An object that has a name.
Represents objects that can be renamed.
Represents objects that have status.
A placeholder for a factory method.
boost::shared_ptr< Root > RootSharedPtr
const SimulationInfoSharedPtr getSimulationInfo() const
An object that receives an inoutVisitor.
Used to implement external object referencing.
void setCurrentLocation(const std::string &inFunction, const std::string &inFile, uint32_t inLine)