FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
Public Member Functions | List of all members
Fiber::TypedIterator< T > Class Template Reference

Public Member Functions

 TypedIterator ()
 Default constructor.
 
 TypedIterator (const RefPtr< MemBase > &src)
 Construct from untyped array.
 
 TypedIterator (const RefPtr< TypedArray< T > > &src)
 Construct from typed array.
 
bool operator= (const RefPtr< MemBase > &src)
 assign from untyped array
 
bool operator= (const RefPtr< TypedArray< T > > &src)
 assign from typed array
 
template<int N>
bool operator= (const RefPtr< MemArray< N, T > > &src)
 assign from typed array
 
 operator bool () const
 The TypedIterator will evaluate to a true boolean if it the underlying array may provide a CreativeIterator.
 
const RefPtr< TypedArray< T > > & operator() () const
 Retrieve the associated pointer to the typed array.
 
CreativeIterator< T > & operator* () const
 Retrieve an iterator to the underlying data, if possible.
 

Member Function Documentation

◆ operator*()

template<class T >
CreativeIterator< T > & Fiber::TypedIterator< T >::operator* ( ) const
inline

Retrieve an iterator to the underlying data, if possible.

If not, some assertions() are issued in debug mode. In optimize mode, this function will just crash, so it may only be called if the boolean evaluation of this TypedIterator has returned true.