SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
An iterator for references held by a ReferenceItem. More...
#include <ReferenceItem.h>
Classes | |
struct | CacheIterator |
Public Types | |
typedef const_iterator | self_type |
typedef std::random_access_iterator_tag | iterator_category |
typedef value_type | reference |
typedef value_type | pointer |
typedef std::ptrdiff_t | difference_type |
Public Member Functions | |
const_iterator (const const_iterator &it) | |
const_iterator & | operator= (const const_iterator &it) |
const_iterator & | operator++ () |
const_iterator & | operator-- () |
const_iterator | operator++ (int) |
const_iterator | operator-- (int) |
const_iterator | operator+ (const difference_type &d) const |
const_iterator | operator- (const difference_type &d) const |
reference | operator* () const |
pointer | operator-> () const |
reference | operator[] (const difference_type &d) |
template<typename T > | |
std::shared_ptr< T > | as () const |
Return the iterator's target object cast to a shared-pointer type T. | |
bool | isSet () const |
Public Attributes | |
const typedef smtk::resource::PersistentObjectPtr | value_type |
Friends | |
class | ReferenceItem |
difference_type SMTKCORE_EXPORT | operator- (const const_iterator &, const const_iterator &) |
bool SMTKCORE_EXPORT | operator< (const const_iterator &it1, const const_iterator &it2) |
bool SMTKCORE_EXPORT | operator> (const const_iterator &it1, const const_iterator &it2) |
bool SMTKCORE_EXPORT | operator<= (const const_iterator &it1, const const_iterator &it2) |
bool SMTKCORE_EXPORT | operator>= (const const_iterator &it1, const const_iterator &it2) |
bool SMTKCORE_EXPORT | operator== (const const_iterator &it1, const const_iterator &it2) |
bool SMTKCORE_EXPORT | operator!= (const const_iterator &it1, const const_iterator &it2) |
An iterator for references held by a ReferenceItem.
Iterators into ReferenceItem will always dereference to a PersistentObjectPtr, regardless of the underlying storage mechanism used to hold the reference.