te::rp::FeederConstRasterInfoAndVector Class Reference

#include <FeedersRaster.h>

Inheritance diagram for te::rp::FeederConstRasterInfoAndVector:
te::rp::FeederConstRaster te::rp::AbstractFeeder< const te::rst::Raster >

Public Member Functions

 FeederConstRasterInfoAndVector (const std::vector< const te::rst::Raster * > rastersPtrsVec, const std::vector< std::string > &rTypes, const std::vector< std::map< std::string, std::string > > &rInfos)
 Constructor from a vector of input rasters infos;. More...
 
te::rst::Raster const * getCurrentObj () const
 Return the current sequence object. More...
 
unsigned int getCurrentOffset () const
 Return the index of the current object. More...
 
unsigned int getObjsCount () const
 Return the total number of feeder objects. More...
 
void getRasterNames (std::vector< std::string > &rasterNames)
 Returns a vector of all rasters names. More...
 
bool moveNext ()
 Advances to the next sequence obeject. More...
 
bool moveTo (const unsigned int index)
 Jump to the given object index. More...
 
void reset ()
 Reset the feeder to the first position (subsequent accesses will start from the first sequence obejct). More...
 
 ~FeederConstRasterInfoAndVector ()
 

Protected Member Functions

 FeederConstRasterInfoAndVector ()
 

Protected Attributes

std::unique_ptr< te::rst::Rasterm_currentRasterHandler
 
te::rst::Raster const * m_currentRasterNakedPtr
 
std::vector< const te::rst::Raster * >::size_type m_CurrentRasterOffset
 
std::vector< const te::rst::Raster * > m_rasters
 
std::vector< std::map< std::string, std::string > > m_rInfos
 
std::vector< std::string > m_rTypes
 

Detailed Description

Definition at line 146 of file FeedersRaster.h.

Constructor & Destructor Documentation

◆ FeederConstRasterInfoAndVector() [1/2]

te::rp::FeederConstRasterInfoAndVector::FeederConstRasterInfoAndVector ( const std::vector< const te::rst::Raster * >  rastersPtrsVec,
const std::vector< std::string > &  rTypes,
const std::vector< std::map< std::string, std::string > > &  rInfos 
)

Constructor from a vector of input rasters infos;.

Parameters
rTypesThe name of the specific drivers to instantiate each raster.
rInfosThe necessary information to instantiate each raster.
rastersPtrsVecInput vector of rasters pointers.
Note
The given rasters must always be avaliable.

◆ ~FeederConstRasterInfoAndVector()

te::rp::FeederConstRasterInfoAndVector::~FeederConstRasterInfoAndVector ( )

◆ FeederConstRasterInfoAndVector() [2/2]

te::rp::FeederConstRasterInfoAndVector::FeederConstRasterInfoAndVector ( )
protected

Member Function Documentation

◆ getCurrentObj()

te::rst::Raster const* te::rp::FeederConstRasterInfoAndVector::getCurrentObj ( ) const
virtual

Return the current sequence object.

Returns
A pointer to the current object or a null pointer if there are no object to return.

Implements te::rp::FeederConstRaster.

◆ getCurrentOffset()

unsigned int te::rp::FeederConstRasterInfoAndVector::getCurrentOffset ( ) const
virtual

Return the index of the current object.

Returns
The index of the current object.

Implements te::rp::FeederConstRaster.

◆ getObjsCount()

unsigned int te::rp::FeederConstRasterInfoAndVector::getObjsCount ( ) const
virtual

Return the total number of feeder objects.

Returns
The total number of feeder objects.

Implements te::rp::FeederConstRaster.

◆ getRasterNames()

void te::rp::FeederConstRaster::getRasterNames ( std::vector< std::string > &  rasterNames)
inherited

Returns a vector of all rasters names.

Parameters
uriStringsA vector of all rasters names.

◆ moveNext()

bool te::rp::FeederConstRasterInfoAndVector::moveNext ( )
virtual

Advances to the next sequence obeject.

Returns
true if the advance was completed or false if the objects sequence end was reached.
Note
This method can invalidate any pointer returned by getCurrentObj.

Implements te::rp::FeederConstRaster.

◆ moveTo()

bool te::rp::FeederConstRasterInfoAndVector::moveTo ( const unsigned int  index)
virtual

Jump to the given object index.

Returns
true if the jump was completed or false on errors.
Note
This method can invalidate any pointer returned by getCurrentObj.

Implements te::rp::FeederConstRaster.

◆ reset()

void te::rp::FeederConstRasterInfoAndVector::reset ( )
virtual

Reset the feeder to the first position (subsequent accesses will start from the first sequence obejct).

Note
This method can invalidate any pointer returned by getCurrentObj.

Implements te::rp::FeederConstRaster.

Member Data Documentation

◆ m_currentRasterHandler

std::unique_ptr< te::rst::Raster > te::rp::FeederConstRasterInfoAndVector::m_currentRasterHandler
protected

Definition at line 180 of file FeedersRaster.h.

◆ m_currentRasterNakedPtr

te::rst::Raster const* te::rp::FeederConstRasterInfoAndVector::m_currentRasterNakedPtr
protected

Definition at line 175 of file FeedersRaster.h.

◆ m_CurrentRasterOffset

std::vector< const te::rst::Raster* >::size_type te::rp::FeederConstRasterInfoAndVector::m_CurrentRasterOffset
protected

Definition at line 174 of file FeedersRaster.h.

◆ m_rasters

std::vector< const te::rst::Raster* > te::rp::FeederConstRasterInfoAndVector::m_rasters
protected

Definition at line 177 of file FeedersRaster.h.

◆ m_rInfos

std::vector< std::map< std::string, std::string > > te::rp::FeederConstRasterInfoAndVector::m_rInfos
protected

Definition at line 179 of file FeedersRaster.h.

◆ m_rTypes

std::vector< std::string > te::rp::FeederConstRasterInfoAndVector::m_rTypes
protected

Definition at line 178 of file FeedersRaster.h.


The documentation for this class was generated from the following file: