Ogre::NameGenerator Class Reference
Core » General

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

`#include <OgreNameGenerator.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
| OGRE_AUTO_MUTEX

## Detailed Description

Utility class to generate a sequentially numbered series of names.

Definition at line 56 of file OgreNameGenerator.h.

## Constructor & Destructor Documentation

## NameGenerator() [1/2]

Ogre::NameGenerator::NameGenerator | ( | const NameGenerator & | rhs | ) |

Definition at line 63 of file OgreNameGenerator.h.

## NameGenerator() [2/2]

Ogre::NameGenerator::NameGenerator | ( | const String & | prefix | ) |

Definition at line 66 of file OgreNameGenerator.h.

## Member Function Documentation

## generate()

String Ogre::NameGenerator::generate | ( |  | ) |

Generate a new name.

Definition at line 69 of file OgreNameGenerator.h.

References OGRE_LOCK_AUTO_MUTEX.

## getNext()

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

Get the internal counter.

Definition at line 92 of file OgreNameGenerator.h.

References OGRE_LOCK_AUTO_MUTEX.

## reset()

void Ogre::NameGenerator::reset | ( | void |  | ) |

Reset the internal counter.

Definition at line 78 of file OgreNameGenerator.h.

References OGRE_LOCK_AUTO_MUTEX.

## setNext()

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

Manually set the internal counter (use caution)

Definition at line 85 of file OgreNameGenerator.h.

References OGRE_LOCK_AUTO_MUTEX.

## Member Data Documentation

## mNext

unsigned long long int Ogre::NameGenerator::mNext

protected

Definition at line 60 of file OgreNameGenerator.h.

## mPrefix

String Ogre::NameGenerator::mPrefix

protected

Definition at line 59 of file OgreNameGenerator.h.

## OGRE_AUTO_MUTEX

Ogre::NameGenerator::OGRE_AUTO_MUTEX

protected

Definition at line 61 of file OgreNameGenerator.h.

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

- OgreNameGenerator.h

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.