43 #ifndef BASEPROPERTY_HH_ 44 #define BASEPROPERTY_HH_ 48 #include "OpenVolumeMeshHandle.hh" 52 class ResourceManager;
66 virtual const std::string& name()
const = 0;
70 virtual void delete_element(
size_t _idx) = 0;
72 virtual void swap_elements(
size_t _idx0,
size_t _idx1) = 0;
74 virtual void copy(
size_t _src_idx,
size_t _dst_idx) = 0;
76 virtual void serialize(std::ostream& _ostr)
const = 0;
78 virtual void deserialize(std::istream& _istr) = 0;
82 virtual bool persistent()
const = 0;
84 virtual bool anonymous()
const = 0;
86 virtual const std::string entityType()
const = 0;
88 virtual const std::string typeNameWrapper()
const = 0;
92 virtual void delete_multiple_entries(
const std::vector<bool>& _tags) = 0;
94 virtual void resize(
size_t ) = 0;
98 void lock() { lock_ =
true; }
100 void unlock() { lock_ =
false; }
102 bool locked()
const {
return lock_; }