13#ifndef ML_PROPERTY_INDEX_H
14#define ML_PROPERTY_INDEX_H
38 _manager->_register(
this);
43 : _manager(
other._manager)
44 , _propertyName(
other._propertyName)
45 , _currentIndex(
other._currentIndex)
46 , _valid(
other._valid)
48 _manager->_register(
this);
53 _manager->_unregister(
this);
65 _valid = _manager->hasProperty(_propertyName);
67 _currentIndex = _manager->getPropertyIndex(_propertyName);
72 return _manager.get();
76 return _manager.get();
91 const std::string _propertyName;
92 mutable size_t _currentIndex;
A base-class enabling the use of boost::intrusive_ptr in derived classes.
boost::intrusive_ptr< type > Pointer
A self-updating index for efficient name-based access of properties.
const PropertyManager * getManager() const
boost::intrusive_ptr< const type > ConstPointerType
PropertyManager * getManager()
SmartPropertyIndex(const PropertyManager::Pointer &manager, const std::string &propertyName)
const std::string & getName() const
SmartPropertyIndex(const SmartPropertyIndex &other)
boost::intrusive_ptr< type > PointerType
#define ML_BAD_PARAMETER
A bad/invalid parameter (or even an inappropriate image) has been passed to a module or an algorithm,...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
#define VESSELGRAPH_END_NAMESPACE
#define VESSELGRAPH_BEGIN_NAMESPACE