OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::SmallVectorBase Class Reference

SmallVectorBase - This is all the non-templated stuff common to all SmallVectors. More...

#include <OgreSmallVector.h>

+ Inheritance diagram for Ogre::SmallVectorBase:
+ Collaboration diagram for Ogre::SmallVectorBase:

Classes

union  U
 

Public Member Functions

bool empty () const
 
bool empty () const
 

Protected Member Functions

 SmallVectorBase (size_t Size)
 
 SmallVectorBase (size_t Size)
 
size_t capacity_in_bytes () const
 capacity_in_bytes - This returns capacity()*sizeof(T). More...
 
size_t capacity_in_bytes () const
 capacity_in_bytes - This returns capacity()*sizeof(T). More...
 
void grow_pod (size_t MinSizeInBytes, size_t TSize)
 grow_pod - This is an implementation of the grow() method which only works More...
 
void grow_pod (size_t MinSizeInBytes, size_t TSize)
 grow_pod - This is an implementation of the grow() method which only works More...
 
bool isSmall () const
 isSmall - Return true if this is a smallvector which has not had dynamic memory allocated for it. More...
 
bool isSmall () const
 isSmall - Return true if this is a smallvector which has not had dynamic memory allocated for it. More...
 
size_t size_in_bytes () const
 size_in_bytes - This returns size()*sizeof(T). More...
 
size_t size_in_bytes () const
 size_in_bytes - This returns size()*sizeof(T). More...
 

Protected Attributes

void * BeginX
 
void * CapacityX
 
void * EndX
 
union Ogre::SmallVectorBase::U FirstEl
 

Detailed Description

SmallVectorBase - This is all the non-templated stuff common to all SmallVectors.

Definition at line 116 of file OgreMain/include/OgreSmallVector.h.

Constructor & Destructor Documentation

Ogre::SmallVectorBase::SmallVectorBase ( size_t  Size)
inlineprotected

Definition at line 134 of file OgreMain/include/OgreSmallVector.h.

Ogre::SmallVectorBase::SmallVectorBase ( size_t  Size)
inlineprotected

Member Function Documentation

size_t Ogre::SmallVectorBase::capacity_in_bytes ( ) const
inlineprotected

capacity_in_bytes - This returns capacity()*sizeof(T).

Definition at line 149 of file OgreMain/include/OgreSmallVector.h.

References BeginX, and CapacityX.

size_t Ogre::SmallVectorBase::capacity_in_bytes ( ) const
inlineprotected

capacity_in_bytes - This returns capacity()*sizeof(T).

Definition at line 149 of file Components/MeshLodGenerator/include/OgreSmallVector.h.

References BeginX, and CapacityX.

bool Ogre::SmallVectorBase::empty ( ) const
inline

Definition at line 158 of file OgreMain/include/OgreSmallVector.h.

References BeginX, and EndX.

Referenced by Ogre::SmallVector< T, S >::SmallVector().

bool Ogre::SmallVectorBase::empty ( ) const
inline

Definition at line 158 of file Components/MeshLodGenerator/include/OgreSmallVector.h.

References BeginX, and EndX.

void Ogre::SmallVectorBase::grow_pod ( size_t  MinSizeInBytes,
size_t  TSize 
)
protected

grow_pod - This is an implementation of the grow() method which only works

on POD-like data types and is out of line to reduce code duplication.

Referenced by Ogre::SmallVectorTemplateBase< T, true >::grow().

void Ogre::SmallVectorBase::grow_pod ( size_t  MinSizeInBytes,
size_t  TSize 
)
protected

grow_pod - This is an implementation of the grow() method which only works

on POD-like data types and is out of line to reduce code duplication.

bool Ogre::SmallVectorBase::isSmall ( ) const
inlineprotected

isSmall - Return true if this is a smallvector which has not had dynamic memory allocated for it.

Definition at line 139 of file Components/MeshLodGenerator/include/OgreSmallVector.h.

References BeginX, and FirstEl.

bool Ogre::SmallVectorBase::isSmall ( ) const
inlineprotected

isSmall - Return true if this is a smallvector which has not had dynamic memory allocated for it.

Definition at line 139 of file OgreMain/include/OgreSmallVector.h.

References BeginX, and FirstEl.

Referenced by Ogre::SmallVectorImpl< T >::swap(), and Ogre::SmallVectorImpl< Triangle * >::~SmallVectorImpl().

size_t Ogre::SmallVectorBase::size_in_bytes ( ) const
inlineprotected

size_in_bytes - This returns size()*sizeof(T).

Definition at line 144 of file OgreMain/include/OgreSmallVector.h.

References BeginX, and EndX.

size_t Ogre::SmallVectorBase::size_in_bytes ( ) const
inlineprotected

size_in_bytes - This returns size()*sizeof(T).

Definition at line 144 of file Components/MeshLodGenerator/include/OgreSmallVector.h.

References BeginX, and EndX.

Member Data Documentation

union Ogre::SmallVectorBase::U Ogre::SmallVectorBase::FirstEl
protected

Referenced by isSmall().


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