OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Ogre::ChunkBase< _Type > Class Template Referenceabstract

#include <StdMeshLoaderBinaryChunks.h>

Inheritance diagram for Ogre::ChunkBase< _Type >:
[legend]
Collaboration 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

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

Definition at line 286 of file StdMeshLoaderBinaryChunks.h.

Constructor & Destructor Documentation

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

Definition at line 284 of file StdMeshLoaderBinaryChunks.h.

284 : type(static_cast<Type>(0)) {}
template<class _Type>
virtual Ogre::ChunkBase< _Type >::~ChunkBase ( )
virtualdefault

Member Function Documentation

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

Definition at line 292 of file StdMeshLoaderBinaryChunks.h.

292 { return size; }
template<class _Type>
Type Ogre::ChunkBase< _Type >::GetType ( ) const
inline

Definition at line 291 of file StdMeshLoaderBinaryChunks.h.

291 { return type; }
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  }

Member Data Documentation

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.

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

Definition at line 288 of file StdMeshLoaderBinaryChunks.h.

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

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

Definition at line 287 of file StdMeshLoaderBinaryChunks.h.

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


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