|
FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
|
Information per time slice, mainly a set of Grid objects that are accessed via GridID objects. More...
#include <Slice.hpp>
Classes | |
| class | Loader |
| An loader object that may be associated with each Slice, such that data can created on access. More... | |
Public Types | |
| enum | LoaderPriority { HDF5 , COMPUTED_GRID } |
| Enums specifying the priority for various loaders. | |
| typedef map< RefPtr< GridID >, RefPtr< Grid > > | grids_t |
| typedef std::multimap< LoaderPriority, RefPtr< Loader > > | DeferredLoader_t |
| typedef GridIterator | Iterator |
Public Types inherited from Fiber::OwnerBase | |
| template<class ItemType > | |
| using | Item = MemCore::InterfaceData< ItemType > |
| An optional convenience class that allows to easily add arbitrary types to Intercubes . | |
Public Member Functions | |
| auto | getNumberOfGrids () const noexcept |
| RefPtr< GridList > | getIDList () const |
| bool | accessSlice () const |
| Access a slice and loads its data, if they are not loaded yet. | |
| bool | isNotYetLoaded () const |
| bool | isLoaded () const |
| Slice (const OwnerOf< Slice > &SliceOwner, const RefPtr< GlobalCharts > &Atlas) | |
| Construct Slice object. | |
| ~Slice () | |
| Destruct Slice object. | |
| void | extremeUnction () override |
| Grid & | newGrid (const string &gridname) |
| Create a new Grid object, overwriting an existing one. | |
| Grid & | newGrid (const string &gridname, const string &ParentGridName) |
| Create a new Grid object as a child relationship to an existing one, overwriting an existing one. | |
| bool | insert (const string &gridname, const RefPtr< Grid > &G) |
| Insert a Grid object under the given name in this slice, eventually overwriting an existing Grid. | |
| Grid & | operator[] (const string &gridname) |
| Retrieve a grid from a textual description, creating one, if desired. | |
| Grid & | operator[] (const RefPtr< GridID > &gridname) |
| Retrieve an existing grid, possibly creating one. | |
| RefPtr< GridID > | makeGridID (const string &gridname) |
| Get a Grid for the given textual description. | |
| RefPtr< GridID > | findGridID (const string &gridname) |
| Find a grid ID for a given string. | |
| RefPtr< Grid > | operator() (const string &gridname) |
| Find a Grid object from its textual description. | |
| grids_t::value_type | getUniqueGrid () |
| RefPtr< Grid > | operator() (const RefPtr< GridID > &gridname) |
| Find a grid via a grid identifier. | |
| int | iterate (GridIterator &GI, const RefPtr< MemCore::StringList > &TheseGridsOnly=NullPtr()) |
| Iterate over all or a subset of grids on this slice. | |
| template<class Functor > | |
| int | iterate_grids (const Functor &F) const |
| int | getMemoryUsage (memsize_t &UsedMemory, memsize_t &WantedMemory) const |
| Memory usage. | |
| string | xml () const |
Public Member Functions inherited from Fiber::Ownable< Slice > | |
| void | x_updateOwnershipAge (const MemCore::Ageable &theNewAge) override |
| Forward some age to all Owners. | |
| void | insertOwner (const Container &theOwner) |
| Add some owner. | |
| bool | insertOwner (const MemCore::WeakPtr< Container > &theOwner) |
| Add some owner. | |
| void | addOwner (const Container &theOwner, const MemCore::Ageable &theNewAge) |
| Add some owner and broadcast a new age to all Ownerrs. | |
| void | addOwner (const MemCore::WeakPtr< Container > &theOwner, const MemCore::Ageable &theNewAge) |
| Add some owner and broadcast a new age to all Ownerrs. | |
| Ownable () | |
| Default constructor, empty Ownership list. | |
| Ownable (const Ownable &) | |
| Copy constructor, does NOT copy any ownership information, the new Ownable will be unowned. | |
| Ownable (const MemCore::WeakPtr< Container > &theOwner, const MemCore::Ageable &theNewAge) | |
| Construct an Ownable with an initial owner. | |
| Ownable (const Container &theOwner, const MemCore::Ageable &theNewAge) | |
| Construct an Ownable with an initial owner. | |
| Ownable & | operator= (const Ownable &) |
| Assignment, does NOT copy any ownership information, the assigned Ownable will retain all its ownership information. | |
| MemCore::WeakPtr< Container > | getPrimaryOwner () const |
| Get the first valid owner. | |
| size_t | getNumberOfValidOwners () const |
| Get the first valid owner. | |
| bool | processOwnership (MemCore::Intercube &Output, const MemCore::Intercube &Input) const override |
| Process some ownership action. | |
Public Member Functions inherited from Fiber::OwnerBase | |
| bool | processOwnership (MemCore::Intercube &OutputAndInput) const |
| Process ownership where the input information is shared with the output information in the same Intercube. | |
Public Member Functions inherited from MemCore::Intercube | |
| void | addInterface (const RefPtr< InterfaceBase > &I) const |
| void | addInterfaceData (const Data &D) |
| void | addInterfaceData (const Data &D) |
| void | clearInterfaces () |
| bool | const_iterateInterfaces (const RefPtr< InterfaceIterationParameter > &IIP) const |
| virtual RefPtr< InterfaceBase > | createInterface (const type_info &) const |
| RefPtr< InterfaceBase > | findInterface (const type_info &t) const |
| RefPtr< InterfaceBase > | getInterface (const type_info &t) |
| std::string | getInterfaceNames (const char delim=';') const |
| bool | gotNewInterfaceData (const Data &D) |
| bool | gotNewInterfaceData (mutex &M, const Data &D) |
| bool | gotNewInterfaceData (mutex &M, const Data &D) |
| bool | gotNewInterfaceData (mutex &M, const Data &D, const Selector &S) |
| bool | gotNewInterfaceData (mutex &M, const Data &D, const Selector *S) |
| bool | hasChangedInterfaceData (const Data &D) const |
| bool | hasChangedInterfaceData (const Data &D) const |
| bool | hasChangedInterfaceData (const Data &D, const Selector &) const |
| bool | hasChangedInterfaceData (const Data &D, const Selector *) const |
| bool | hasInterface (const type_info &t) const |
| bool | iterateInterfaces (const RefPtr< InterfaceIterationParameter > &IIP) |
| void | printInterfaces () const |
| void | registerInterface (const type_info &t) |
| void | removeInterface () |
| void | removeInterfaceBase (const type_info &InterfaceBaseID) |
Public Member Functions inherited from Fiber::SaveableAttributes | |
| void | attributesHaveBeenSaved () const |
| bool | attributesNeedSaving () const |
Public Member Functions inherited from MemCore::Attributes | |
| MemCore::RefPtr< MemCore::ChunkBase > | getAttribute (const std::string &name) const |
| const Ageable & | getAttributeAge () const |
| std::pair< bool, T > | getAttributeValue (const string &AttributeName, size_t ElementNumber=0) const |
| attributes_t & | getAttributeValues () |
| const attributes_t & | getAttributeValues () const |
| size_t | getNumberOfAttributes () const |
| bool | hasAttribute (const std::string &name) const |
| int | Iterate (const Functor &L) const |
| int | iterate (Iterator &it) const |
| int | iterate_attributes (const Functor &L) const |
| size_t | NumberOfAttributes () const |
| void | setAttribute (const std::string &name, const MemCore::RefPtr< MemCore::ChunkBase > &AttribData) |
| ResizableChunk< T > & | setAttributeValue (const std::string &name, const T &AttribData) |
| ResizableChunk< T > & | setAttributeValues (const std::string &name, const std::initializer_list< T > &AttribData) |
| const T & | setValue (const T &AttribData, const std::string &name) |
| const T & | setValue (const T &AttribData, const std::string &name, const std::string &Comment, const std::string &CommentPrefix="Comment") |
| string | toString () const |
| const Ageable & | touchAttributes () const |
| const Ageable & | updateAttributeAge (const Ageable &A) const |
Public Attributes | |
| DeferredLoader_t | DeferredLoader |
| An optionally associated loader map. | |
Public Attributes inherited from Fiber::Ownable< Slice > | |
| std::unordered_set< MemCore::WeakPtr< Container > > | Owners |
| The (internal) list of owners. | |
Public Attributes inherited from Fiber::SaveableAttributes | |
| MemCore::Ageable | LastSavedAttributes |
Information per time slice, mainly a set of Grid objects that are accessed via GridID objects.
A slice in the fiber bundle data model hierarchy.
| int Fiber::Slice::iterate | ( | GridIterator & | GI, |
| const RefPtr< MemCore::StringList > & | TheseGridsOnly = NullPtr() |
||
| ) |
Iterate over all or a subset of grids on this slice.
References accessSlice(), Fiber::GridIterator::apply(), std::map< typename _Key, typename _Tp, typename _Compare, typename _Alloc >::begin(), and std::map< typename _Key, typename _Tp, typename _Compare, typename _Alloc >::end().
Lambda iterator for bundles, provides Slices:
@eode iterate_grids( [](const GridID&GId, const Grid&G) { Verbose(0) << " Grid " << GId.Name(); return true; } );
Referenced by Fiber::ShapefileSaver::apply_const().
Create a new Grid object as a child relationship to an existing one, overwriting an existing one.
References accessSlice(), findGridID(), and makeGridID().
Retrieve a grid from a textual description, creating one, if desired.
A GridID is reused or created.
References accessSlice(), and makeGridID().
|
mutable |
An optionally associated loader map.
The integer part contains the priority of the loaders and the Loaders contains the references to the loader objects. Priorities are like the nice value, lower the value higher the priority. If it's size is not zero, it will be called upon each slice access.
Referenced by accessSlice().