Commit 26a08502 authored by Mike Kremer's avatar Mike Kremer

Extended properties by iterator accessors.

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@118 66977474-1d4b-4f09-8fe9-267525286df2
parent e3515714
......@@ -117,6 +117,85 @@ public:
return m_status_[h];
}
// Iterator access
VertexPropertyT<OpenVolumeMeshStatus>::const_iterator vstatus_begin() const {
return v_status_.begin();
}
VertexPropertyT<OpenVolumeMeshStatus>::iterator vstatus_begin() {
return v_status_.begin();
}
VertexPropertyT<OpenVolumeMeshStatus>::const_iterator vstatus_end() const {
return v_status_.end();
}
VertexPropertyT<OpenVolumeMeshStatus>::iterator vstatus_end() {
return v_status_.end();
}
EdgePropertyT<OpenVolumeMeshStatus>::const_iterator estatus_begin() const {
return e_status_.begin();
}
EdgePropertyT<OpenVolumeMeshStatus>::iterator estatus_begin() {
return e_status_.begin();
}
EdgePropertyT<OpenVolumeMeshStatus>::const_iterator estatus_end() const {
return e_status_.end();
}
EdgePropertyT<OpenVolumeMeshStatus>::iterator estatus_end() {
return e_status_.end();
}
HalfEdgePropertyT<OpenVolumeMeshStatus>::const_iterator hestatus_begin() const {
return he_status_.begin();
}
HalfEdgePropertyT<OpenVolumeMeshStatus>::iterator hestatus_begin() {
return he_status_.begin();
}
HalfEdgePropertyT<OpenVolumeMeshStatus>::const_iterator hestatus_end() const {
return he_status_.end();
}
HalfEdgePropertyT<OpenVolumeMeshStatus>::iterator hestatus_end() {
return he_status_.end();
}
FacePropertyT<OpenVolumeMeshStatus>::const_iterator fstatus_begin() const {
return f_status_.begin();
}
FacePropertyT<OpenVolumeMeshStatus>::iterator fstatus_begin() {
return f_status_.begin();
}
FacePropertyT<OpenVolumeMeshStatus>::const_iterator fstatus_end() const {
return f_status_.end();
}
FacePropertyT<OpenVolumeMeshStatus>::iterator fstatus_end() {
return f_status_.end();
}
HalfFacePropertyT<OpenVolumeMeshStatus>::const_iterator hfstatus_begin() const {
return hf_status_.begin();
}
HalfFacePropertyT<OpenVolumeMeshStatus>::iterator hfstatus_begin() {
return hf_status_.begin();
}
HalfFacePropertyT<OpenVolumeMeshStatus>::const_iterator hfstatus_end() const {
return hf_status_.end();
}
HalfFacePropertyT<OpenVolumeMeshStatus>::iterator hfstatus_end() {
return hf_status_.end();
}
CellPropertyT<OpenVolumeMeshStatus>::const_iterator cstatus_begin() const {
return c_status_.begin();
}
CellPropertyT<OpenVolumeMeshStatus>::iterator cstatus_begin() {
return c_status_.begin();
}
CellPropertyT<OpenVolumeMeshStatus>::const_iterator cstatus_end() const {
return c_status_.end();
}
CellPropertyT<OpenVolumeMeshStatus>::iterator cstatus_end() {
return c_status_.end();
}
/**
* \brief Delete all entities that have been marked as deleted
*
......
......@@ -195,6 +195,14 @@ public:
return p;
}
typename vector_type::const_iterator begin() const { return data_.begin(); }
typename vector_type::iterator begin() { return data_.begin(); }
typename vector_type::const_iterator end() const { return data_.end(); }
typename vector_type::iterator end() { return data_.end(); }
private:
vector_type data_;
......
......@@ -94,6 +94,9 @@ public:
typedef HandleT Handle;
typedef typename PropT::vector_type::const_iterator const_iterator;
typedef typename PropT::vector_type::iterator iterator;
/// Constructor
PropertyPtr(PropT* _ptr, ResourceManager& _resMan, Handle _handle);
......@@ -125,6 +128,14 @@ public:
unsigned int counter() const { return h_->count_; }
const_iterator begin() const { return h_->ptr_->begin(); }
iterator begin() { return h_->ptr_->begin(); }
const_iterator end() const { return h_->ptr_->end(); }
iterator end() { return h_->ptr_->end(); }
protected:
virtual void resize(unsigned int _size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment