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

Utility class to generate a sequentially numbered series of names. More...

#include <OgreCommon.h>

Public Member Functions

 NameGenerator (const NameGenerator &rhs)
 
 NameGenerator (const String &prefix)
 
String generate ()
 Generate a new name. More...
 
unsigned long long int getNext () const
 Get the internal counter. More...
 
void reset ()
 Reset the internal counter. More...
 
void setNext (unsigned long long int val)
 Manually set the internal counter (use caution) More...
 

Protected Attributes

unsigned long long int mNext
 
String mPrefix
 

Detailed Description

Utility class to generate a sequentially numbered series of names.

Definition at line 770 of file OgreCommon.h.

Constructor & Destructor Documentation

Ogre::NameGenerator::NameGenerator ( const NameGenerator rhs)
inline

Definition at line 777 of file OgreCommon.h.

Ogre::NameGenerator::NameGenerator ( const String prefix)
inline

Definition at line 780 of file OgreCommon.h.

Member Function Documentation

String Ogre::NameGenerator::generate ( )
inline

Generate a new name.

Definition at line 783 of file OgreCommon.h.

References OGRE_LOCK_AUTO_MUTEX.

unsigned long long int Ogre::NameGenerator::getNext ( ) const
inline

Get the internal counter.

Definition at line 806 of file OgreCommon.h.

References OGRE_LOCK_AUTO_MUTEX.

void Ogre::NameGenerator::reset ( void  )
inline

Reset the internal counter.

Definition at line 792 of file OgreCommon.h.

References OGRE_LOCK_AUTO_MUTEX.

void Ogre::NameGenerator::setNext ( unsigned long long int  val)
inline

Manually set the internal counter (use caution)

Definition at line 799 of file OgreCommon.h.

References OGRE_LOCK_AUTO_MUTEX.

Member Data Documentation

unsigned long long int Ogre::NameGenerator::mNext
protected

Definition at line 774 of file OgreCommon.h.

String Ogre::NameGenerator::mPrefix
protected

Definition at line 773 of file OgreCommon.h.


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