CatapultServer  v0.5.0.1 (Elephant)
catapult::model::EntityRange< TEntity >::SingleBufferRange Class Reference
Inheritance diagram for catapult::model::EntityRange< TEntity >::SingleBufferRange:
Collaboration diagram for catapult::model::EntityRange< TEntity >::SingleBufferRange:

Public Member Functions

 SingleBufferRange ()
 
 SingleBufferRange (size_t dataSize, const std::vector< size_t > &offsets)
 
 SingleBufferRange (const uint8_t *pData, size_t dataSize, const std::vector< size_t > &offsets)
 
uint8_t * data ()
 
std::vector< std::shared_ptr< TEntity > > detachEntities ()
 
SingleBufferRange copy () const
 
- Public Member Functions inherited from catapult::model::EntityRange< TEntity >::SubRange
 SubRange ()
 
 SubRange (size_t numBytes)
 
 SubRange (SubRange &&rhs)
 
SubRangeoperator= (SubRange &&rhs)
 
constexpr bool empty () const
 
size_t size () const
 
constexpr size_t totalSize () const
 
constexpr auto & entities () const
 
auto & entities ()
 
void reset ()
 

Private Member Functions

const uint8_t * data () const
 
std::vector< size_t > generateOffsets () const
 

Private Attributes

std::vector< uint8_t > m_buffer
 

Constructor & Destructor Documentation

◆ SingleBufferRange() [1/3]

template<typename TEntity>
catapult::model::EntityRange< TEntity >::SingleBufferRange::SingleBufferRange ( )
inline
Here is the caller graph for this function:

◆ SingleBufferRange() [2/3]

template<typename TEntity>
catapult::model::EntityRange< TEntity >::SingleBufferRange::SingleBufferRange ( size_t  dataSize,
const std::vector< size_t > &  offsets 
)
inline
Here is the call graph for this function:

◆ SingleBufferRange() [3/3]

template<typename TEntity>
catapult::model::EntityRange< TEntity >::SingleBufferRange::SingleBufferRange ( const uint8_t *  pData,
size_t  dataSize,
const std::vector< size_t > &  offsets 
)
inline

Member Function Documentation

◆ copy()

template<typename TEntity>
SingleBufferRange catapult::model::EntityRange< TEntity >::SingleBufferRange::copy ( ) const
inline
Here is the call graph for this function:

◆ data() [1/2]

template<typename TEntity>
uint8_t* catapult::model::EntityRange< TEntity >::SingleBufferRange::data ( )
inline
Here is the caller graph for this function:

◆ data() [2/2]

template<typename TEntity>
const uint8_t* catapult::model::EntityRange< TEntity >::SingleBufferRange::data ( ) const
inlineprivate

◆ detachEntities()

template<typename TEntity>
std::vector<std::shared_ptr<TEntity> > catapult::model::EntityRange< TEntity >::SingleBufferRange::detachEntities ( )
inline
Here is the call graph for this function:

◆ generateOffsets()

template<typename TEntity>
std::vector<size_t> catapult::model::EntityRange< TEntity >::SingleBufferRange::generateOffsets ( ) const
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_buffer

template<typename TEntity>
std::vector<uint8_t> catapult::model::EntityRange< TEntity >::SingleBufferRange::m_buffer
private

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