#include <Inventor/SbName.h>
Public Methods | |
SbName (void) | |
SbName (const char *nameString) | |
SbName (const SbString &str) | |
SbName (const SbName &name) | |
~SbName (void) | |
const char * | getString (void) const |
int | getLength (void) const |
int | operator! (void) const |
operator const char * (void) const | |
Static Public Methods | |
SbBool | isIdentStartChar (const char c) |
SbBool | isIdentChar (const char c) |
SbBool | isBaseNameStartChar (const char c) |
SbBool | isBaseNameChar (const char c) |
Friends | |
COIN_DLL_API int | operator== (const SbName &lhs, const char *rhs) |
COIN_DLL_API int | operator== (const char *lhs, const SbName &rhs) |
COIN_DLL_API int | operator== (const SbName &lhs, const SbName &rhs) |
COIN_DLL_API int | operator!= (const SbName &lhs, const char *rhs) |
COIN_DLL_API int | operator!= (const char *lhs, const SbName &rhs) |
COIN_DLL_API int | operator!= (const SbName &lhs, const SbName &rhs) |
The class is used by inventor for keywords and other unique names that are used all over the place and would waste tons of memory if they were duplicated for each reference. Because strings are uniquely identified by their reference, string comparisons for SbName objects are very efficient.
|
This is the default constructor. |
|
Constructor. Adds the nameString string to the name table. |
|
Constructor. Adds str to the name table. |
|
Copy constructor. |
|
The destructor. |
|
This method returns pointer to character array for the name. |
|
This method returns the number of characters in the name. |
|
This method checks if the c character is a valid identifier start character for a name.
|
|
This method checks if the c character is a valid character for a name.
|
|
Returns SoBase derived objects needs to be named in a manner which will not clash with the special characters reserved as tokens in the syntax rules of Open Inventor and VRML files. This method is not part of the original Open Inventor API.
|
|
Returns SoBase derived objects needs to be named in a manner which will not clash with the special characters reserved as tokens in the syntax rules of Open Inventor and VRML files. This method is not part of the original Open Inventor API.
|
|
This unary operator results in |
|
This operator returns a pointer to the character array for the name string. It is intended for implicit use. Use SbName::getString() explicitly instead of this operator- it might be removed later.
|
|
This operator checks for equality and returns TRUE if so, and FALSE otherwise. |
|
This operator checks for equality and returns TRUE if so, and FALSE otherwise. |
|
This operator checks for equality and returns TRUE if so, and FALSE otherwise. |
|
This operator checks for inequality and returns TRUE if so, and FALSE if the names are equal. |
|
This operator checks for inequality and returns TRUE if so, and FALSE if the names are equal. |
|
This operator checks for inequality and returns TRUE if so, and FALSE if the names are equal. |