7 #include "fwData/registry/macros.hpp" 8 #include "fwData/Exception.hpp" 9 #include "fwData/List.hpp" 34 List::csptr other = List::dynamicConstCast(_source);
36 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
39 m_container = other->m_container;
46 List::csptr other = List::dynamicConstCast(_source);
48 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
53 for(
const ContainerType::value_type &obj : other->m_container)
FWDATA_API void cachedDeepCopy(const Object::csptr &_source, DeepCopyCacheType &cache) override
Defines deep copy.
#define SLM_TRACE_FUNC()
Trace contextual function signature.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Implements data exception class.
FWDATA_API List(::fwData::Object::Key key)
Constructor.
FWDATA_API void shallowCopy(const Object::csptr &_source) override
Defines shallow copy.
FWDATA_API void fieldDeepCopy(const ::fwData::Object::csptr &source)
A deep copy of fields (objects in m_children)
This class defines a list of objects.
virtual const std::string & getClassname() const override
return full object's classname with its namespace, i.e. fwCore::BaseObject
static FWDATA_API::fwData::Object::sptr copy(const ::fwData::Object::csptr &source)
return a copy of the source. if source is a null pointer, return a null pointer.
Contains the representation of the data objects used in the framework.
virtual FWDATA_API ~List()
Destructor.
FWDATA_API void fieldShallowCopy(const ::fwData::Object::csptr &source)
A shallow copy of fields (objects in m_children)