The Vish Visualization Shell 0.3
Vish
Public Member Functions | List of all members
Wizt::VObjectIterator Struct Referenceabstract

Iterator functor to be used for iterating over the parents of a certain VObject. More...

#include <ocean/plankton/VObject.hpp>

Public Member Functions

virtual bool apply (const RefPtr< VObject > &vobj, const string &name, const type_info &type)=0
 Callback function.
 

Detailed Description

Iterator functor to be used for iterating over the parents of a certain VObject.

It will tell

  1. who is the certain parent object
  2. why is it a parent object, meaning the type which was requested
  3. what is the name of this parent object relative to the container

Member Function Documentation

◆ apply()

virtual bool Wizt::VObjectIterator::apply ( const RefPtr< VObject > &  vobj,
const string &  name,
const type_info &  type 
)
pure virtual

Callback function.

Parameters
vobjReference to the certain VObject
nameThe name under which the VObject will be accessed, relative to its source reference, which is independent from the VObject's actual name
typeThe type of the object, which is used in this specific context; in general the object may export a bunch of other types as well, but only this one is used here for this connection.