OpenClonk
Ogre::ChunkBase< _Type > Class Template Referenceabstract

#include <StdMeshLoaderBinaryChunks.h>

Inheritance diagram for Ogre::ChunkBase< _Type >:
[legend]

Public Member Functions

virtual ~ChunkBase ()=default
 
Type GetType () const
 
size_t GetSize () const
 

Static Public Member Functions

static Type Peek (const DataStream *stream)
 

Static Public Attributes

static const size_t ChunkHeaderLength = sizeof(uint16_t) + sizeof(uint32_t)
 

Protected Types

typedef _Type Type
 

Protected Member Functions

 ChunkBase ()
 
virtual void ReadImpl (DataStream *stream)=0
 

Protected Attributes

Type type
 
size_t size
 

Detailed Description

template<class _Type>
class Ogre::ChunkBase< _Type >

Definition at line 281 of file StdMeshLoaderBinaryChunks.h.

Member Typedef Documentation

◆ Type

template<class _Type >
typedef _Type Ogre::ChunkBase< _Type >::Type
protected

Definition at line 286 of file StdMeshLoaderBinaryChunks.h.

Constructor & Destructor Documentation

◆ ChunkBase()

template<class _Type >
Ogre::ChunkBase< _Type >::ChunkBase ( )
inlineprotected

Definition at line 284 of file StdMeshLoaderBinaryChunks.h.

284 : type(static_cast<Type>(0)) {}

◆ ~ChunkBase()

template<class _Type >
virtual Ogre::ChunkBase< _Type >::~ChunkBase ( )
virtualdefault

Member Function Documentation

◆ GetSize()

template<class _Type >
size_t Ogre::ChunkBase< _Type >::GetSize ( ) const
inline

Definition at line 292 of file StdMeshLoaderBinaryChunks.h.

292 { return size; }

References Ogre::ChunkBase< _Type >::size.

◆ GetType()

template<class _Type >
Type Ogre::ChunkBase< _Type >::GetType ( ) const
inline

Definition at line 291 of file StdMeshLoaderBinaryChunks.h.

291 { return type; }

References Ogre::ChunkBase< _Type >::type.

◆ Peek()

template<class _Type >
static Type Ogre::ChunkBase< _Type >::Peek ( const DataStream stream)
inlinestatic

Definition at line 295 of file StdMeshLoaderBinaryChunks.h.

296  {
297  return static_cast<Type>(stream->Peek<uint16_t>());
298  }

References Ogre::DataStream::Peek().

Here is the call graph for this function:

◆ ReadImpl()

Member Data Documentation

◆ ChunkHeaderLength

template<class _Type >
const size_t Ogre::ChunkBase< _Type >::ChunkHeaderLength = sizeof(uint16_t) + sizeof(uint32_t)
static

Definition at line 294 of file StdMeshLoaderBinaryChunks.h.

◆ size

template<class _Type >
size_t Ogre::ChunkBase< _Type >::size
protected

Definition at line 288 of file StdMeshLoaderBinaryChunks.h.

Referenced by Ogre::ChunkBase< _Type >::GetSize().

◆ type

template<class _Type >
Type Ogre::ChunkBase< _Type >::type
protected

Definition at line 287 of file StdMeshLoaderBinaryChunks.h.

Referenced by Ogre::ChunkBase< _Type >::GetType().


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