Open Inventor Reference
|
Character string stored in a hash table. More...
#include <Inventor/SbString.h>
Public Member Functions | |
SbName () | |
Constructors and destructor. | |
SbName (const char *s) | |
Constructor that initializes to given character string. | |
SbName (const SbString &s) | |
Constructor that initializes to given SbString. | |
SbName (const SbName &n) | |
Constructors and destructor. | |
~SbName () | |
Constructors and destructor. | |
const char * | getString () const |
Returns pointer to the character string. | |
int | getLength () const |
Returns length of string. | |
bool | operator! () const |
Unary "not" operator; returns TRUE if string is empty (""). | |
Static Public Member Functions | |
static bool | isIdentStartChar (char c) |
Returns TRUE if given character is a legal starting character for an identifier. | |
static bool | isIdentChar (char c) |
Returns TRUE if given character is a legal nonstarting character for an identifier. | |
static bool | isBaseNameStartChar (char c) |
Returns TRUE if given character is a legal starting character for an SoBase's name. | |
static bool | isBaseNameChar (char c) |
Returns TRUE if given character is a legal nonstarting character for an SoBase's name. | |
Friends | |
INVENTOR_API bool | operator== (const SbName &n, const char *s) |
Equality operator for SbName/char* and SbName/SbName comparison. | |
INVENTOR_API bool | operator== (const char *s, const SbName &n) |
INVENTOR_API bool | operator== (const SbName &n1, const SbName &n2) |
INVENTOR_API bool | operator!= (const SbName &n, const char *s) |
Inequality operator for SbName/char* and SbName/SbName comparison. | |
INVENTOR_API bool | operator!= (const char *s, const SbName &n) |
INVENTOR_API bool | operator!= (const SbName &n1, const SbName &n2) |
This class of strings stores the string in a hash table. It is used by the Inventor toolkit for keywords and other unique names. It is not recommended for general use (only in the context of Inventor objects). When a string is stored in this table, a pointer to the storage is returned. Two identical strings will return the same pointer. This means that comparison of two SbNames for equality can be accomplished by comparing their identifiers. SbNames are used for strings which are expected to show up frequently, such as node names.
Definition at line 264 of file SbString.h.
SbName::SbName | ( | ) |
|
inline |
Definition at line 271 of file SbString.h.
|
inline |
Definition at line 274 of file SbString.h.
References SbString::getString().
|
inline |
Definition at line 277 of file SbString.h.
|
inline |
Definition at line 280 of file SbString.h.
|
inline |
Definition at line 286 of file SbString.h.
|
inline |
Definition at line 283 of file SbString.h.
|
static |
|
static |
|
static |
|
static |
|
inline |
Definition at line 305 of file SbString.h.
|
friend |
Definition at line 321 of file SbString.h.
|
friend |
Definition at line 318 of file SbString.h.
|
friend |
Definition at line 324 of file SbString.h.
|
friend |
Definition at line 311 of file SbString.h.
|
friend |
Definition at line 308 of file SbString.h.
|
friend |
Definition at line 314 of file SbString.h.