Base class for Vish Objects that request a fiber bundle as input objects.
More...
#include <FishBundle.hpp>
List of all members.
Public Member Functions
-
BundleSlot & BundleSpacetimeSlot ()
- Allow writeable access to the spacetime (fiber bundle) slot contained in this Fish scale.
-
bool setBundlePtr (const RefPtr< ValuePool > &VP, const Fiber::BundlePtr &BP)
- Set the bundle pointer stored here.
-
Fish (const string &bundlename="spacetime", const Fiber::BundlePtr &BP=Fiber::BundlePtr(), int EL=5)
- Constructor, optionally provide a pointer to a fiber bundle.
-
Fish (int EL, const string &bundlename="spacetime", const Fiber::BundlePtr &BP=Fiber::BundlePtr())
- Constructor, setting the expert level.
-
~Fish ()
- Destructor, does nothing.
Static Public Member Functions
Detailed Description
template<>
class Wizt::Fish< Fiber::Bundle >
Base class for Vish Objects that request a fiber bundle as input objects.
Implements a fish scale which refers to a fiber bundle's slot. A local slot is stored here.
Objects that are derived from this base class will be able to connect to objects that export a Bundle object. An object exporting a Bundle object will require an member of type VOutput<BundlePtr> , such as in
struct MyBundleExporter : public VObject
{
VOutput<BundlePtr> myBundle;
MyBundleExporter(const string&name, int p, const RefPtr<VCreationPreferences>&VP)
: VObject(name, p, VP)
, myBundle(self(), "spacetime" )
{}
};