ldas-tools-framecpp  2.6.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition > Class Template Reference

Used for TOC optimization of channel offsets. More...

#include <FrTOC.hh>

Public Types

typedef INT_4U frame_count_type
 
typedef INT_4U n_type
 
typedef TString name_type
 
typedef TPosition position_type
 
typedef std::vector
< position_type
info_type
 
typedef std::map< name_type,
info_type
Map_type
 
typedef std::vector< name_typekey_container_type
 

Public Member Functions

Common::FrameSpec::size_type Bytes (const Common::StreamBase &Stream) const
 
const key_container_typeGetPositionKeys () const
 
void write (Common::OStream &Stream) const
 
const PositionWithCacheoperator= (const PositionWithCache &Source)
 

Protected Member Functions

 PositionWithCache ()
 
 PositionWithCache (Common::IStream &Stream, frame_count_type FrameCount)
 
const Map_typegetInfo () const
 
Map_type::const_iterator getInfo (const std::string &Name) const
 
Map_type::const_iterator getInfo (INT_4U Index) const
 
void cachePositions (istream_type &Stream)
 TOC optimization. More...
 
void setPositionsOffset (istream_type &Stream)
 
bool operator== (const PositionWithCache &RHS) const
 

Protected Attributes

key_container_type m_keys
 
Map_type m_info
 

Detailed Description

template<typename TString, typename TPosition>
class FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >

Used for TOC optimization of channel offsets.

Member Typedef Documentation

template<typename TString, typename TPosition>
typedef INT_4U FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::frame_count_type
template<typename TString, typename TPosition>
typedef std::vector< position_type > FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::info_type
template<typename TString, typename TPosition>
typedef std::vector< name_type > FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::key_container_type
template<typename TString, typename TPosition>
typedef std::map< name_type, info_type > FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::Map_type
template<typename TString, typename TPosition>
typedef INT_4U FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::n_type
template<typename TString, typename TPosition>
typedef TString FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::name_type
template<typename TString, typename TPosition>
typedef TPosition FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::position_type

Constructor & Destructor Documentation

template<typename TString, typename TPosition>
FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::PositionWithCache ( )
inlineprotected
template<typename TString, typename TPosition>
FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::PositionWithCache ( Common::IStream Stream,
frame_count_type  FrameCount 
)
inlineprotected

Member Function Documentation

template<typename TString, typename TPosition>
Common::FrameSpec::size_type FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::Bytes ( const Common::StreamBase Stream) const
inline
template<typename TString, typename TPosition>
void FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::cachePositions ( istream_type Stream)
inlineprotected

TOC optimization.

This method optimizes the TOC reading by only reading the structure offsets. Once read, it is moved into the structure.

template<typename TString, typename TPosition>
const Map_type& FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::getInfo ( ) const
inlineprotected
template<typename TString, typename TPosition>
Map_type::const_iterator FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::getInfo ( const std::string &  Name) const
inlineprotected
template<typename TString, typename TPosition>
Map_type::const_iterator FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::getInfo ( INT_4U  Index) const
inlineprotected
template<typename TString, typename TPosition>
const key_container_type& FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::GetPositionKeys ( ) const
inline
template<typename TString, typename TPosition>
const PositionWithCache& FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::operator= ( const PositionWithCache< TString, TPosition > &  Source)
inline
template<typename TString, typename TPosition>
bool FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::operator== ( const PositionWithCache< TString, TPosition > &  RHS) const
inlineprotected
template<typename TString, typename TPosition>
void FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::setPositionsOffset ( istream_type Stream)
inlineprotected
template<typename TString, typename TPosition>
void FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::write ( Common::OStream Stream) const
inline

Member Data Documentation

template<typename TString, typename TPosition>
Map_type FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::m_info
protected
template<typename TString, typename TPosition>
key_container_type FrameCPP::Common::FrTOC::PositionWithCache< TString, TPosition >::m_keys
protected

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