20 #ifdef GENOM_SERIALIZATION
21 #include <boost/archive/binary_iarchive.hpp>
22 #include <boost/archive/binary_oarchive.hpp>
23 #include <boost/serialization/base_object.hpp>
24 #include <boost/serialization/export.hpp>
25 #endif //GENOM_SERIALIZATION
29 #ifdef GENOM_SERIALIZATION
31 #endif //GENOM_SERIALIZATION
36 const boost::shared_ptr<BaseVectorType::ChildType>& inCreatedChild)
const throw (
Error) {
37 inCreatedChild->setName(getName());
59 std::vector < size_t > limits;
60 limits.push_back(inSize);
61 return newParameterArrayPtr(inName, limits, inFactory, inOriginalName);
85 create(newParameterArray);
86 newParameterArray->setName(inName);
87 newParameterArray->setOriginalName(inOriginalName);
88 newParameterArray->constructChildren(inFactory, inLimits);
89 return newParameterArray;
105 #ifdef GENOM_SERIALIZATION
106 template <
class Archive>
void ParameterArray::serialize(Archive& ar,
unsigned int) {
107 ar & boost::serialization::base_object< Parameter >(*this);
108 ar & boost::serialization::base_object< BaseVectorType >(*this);
112 template void ParameterArray::serialize<boost::archive::binary_oarchive>(
113 boost::archive::binary_oarchive& ar,
const unsigned int);
115 template void ParameterArray::serialize<boost::archive::binary_iarchive>(
116 boost::archive::binary_iarchive& ar,
const unsigned int);
118 #endif //GENOM_SERIALIZATION
boost::shared_ptr< ParameterArray > ParameterArraySharedPtr
void runVisitor(_Tp &inoutVisited, BaseVisitor &inoutVisitor)
Represents a parameter object in EDIF.
The Error object thrown by different methods of EdifOM.
Represents a parameter array.
virtual ParameterArraySharedPtr newParameterArrayPtr(const std::string &inName, const size_t &inSize, const ChildFactorySharedPtr &inFactory=BaseVectorType::ChildFactorySharedPtr(new BaseVectorType::ChildFactory()), const std::string &inOriginalName=std::string())
A base class for Visitor.
virtual void onChildCreate(const boost::shared_ptr< BaseVectorType::ChildType > &inCreatedChild) const
virtual ~ParameterArray()
boost::shared_ptr< ParameterArrayElement::Factory > ChildFactorySharedPtr
virtual void accept(BaseVisitor &inoutVisitor)
void setCurrentLocation(const std::string &inFunction, const std::string &inFile, uint32_t inLine)