man SbName () - character string stored in a hash table

NAME

SbName - character string stored in a hash table

INHERITS FROM

SbName

SYNOPSIS

#include <Inventor/SbString.h> Methods from class SbName: c } c } SbName()

c } c } SbName(const char *s)

c } c } SbName(const SbString &s)

c } c } SbName(const SbName &n)

c } c } ~SbName()

c } c } getString() const

c } c } getLength() const

c } c } isIdentStartChar(char c)

c } c } isIdentChar(char c)

c } c } operator !() const

c } c } operator ==(const char *s, const SbName &n)

c } c } operator ==(const SbName &n1, const SbName &n2)

c } c } operator ==(const SbName &n, const char *s)

c } c } operator !=(const char *s, const SbName &n)

c } c } operator !=(const SbName &n1, const SbName &n2)

c } c } operator !=(const SbName &n, const char *s)

DESCRIPTION

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.

METHODS

c } c } SbName()

c } c } SbName(const char *s)

c } c } SbName(const SbString &s)

c } c } SbName(const SbName &n)

c } c } ~SbName()

Constructors and destructor. c } c } getString() const

Returns pointer to the character string. c } c } getLength() const

Returns length of string. c } c } isIdentStartChar(char c)

Returns TRUE if given character is a legal starting character for an identifier. c } c } isIdentChar(char c)

Returns TRUE if given character is a legal nonstarting character for an identifier. c } c } operator !() const

Unary "not" operator; returns TRUE if string is empty (""). c } c } operator ==(const char *s, const SbName &n)

c } c } operator ==(const SbName &n1, const SbName &n2)

c } c } operator ==(const SbName &n, const char *s)

Equality operator for SbName/char* and SbName/SbName comparison. c } c } operator !=(const char *s, const SbName &n)

c } c } operator !=(const SbName &n1, const SbName &n2)

c } c } operator !=(const SbName &n, const char *s)

Inequality operator for SbName/char* and SbName/SbName comparison.

SEE ALSO

SbString