SbName — character string stored in a hash table
Contents
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.
Inherits From
SbName
Methods
SbName()SbName(constchar*s)SbName(constSbString&s)SbName(constSbName&n)~SbName()
Constructors and destructor.
constchar*getString()const
Returns pointer to the character string.
intgetLength()const
Returns length of string.
staticSbBoolisIdentStartChar(charc)
Returns TRUE if given character is a legal starting character for an identifier.
staticSbBoolisIdentChar(charc)
Returns TRUE if given character is a legal nonstarting character for an identifier.
intoperator!()const
Unary "not" operator; returns TRUE if string is empty ("").
intoperator==(constchar*s,constSbName&n)intoperator==(constSbName&n1,constSbName&n2)intoperator==(constSbName&n,constchar*s)
Equality operator for SbName/char* and SbName/SbName comparison.
intoperator!=(constchar*s,constSbName&n)intoperator!=(constSbName&n1,constSbName&n2)intoperator!=(constSbName&n,constchar*s)
Inequality operator for SbName/char* and SbName/SbName comparison.
Name
SbName — character string stored in a hash table
See Also
SbStringSbName(3IV)()
Synopsis
#include<Inventor/SbString.h>
Methods from class SbName:
SbName()SbName(constchar*s)SbName(constSbString&s)SbName(constSbName&n)~SbName()constchar*getString()constintgetLength()conststaticSbBoolisIdentStartChar(charc)staticSbBoolisIdentChar(charc)intoperator!()constintoperator==(constchar*s,constSbName&n)intoperator==(constSbName&n1,constSbName&n2)intoperator==(constSbName&n,constchar*s)intoperator!=(constchar*s,constSbName&n)intoperator!=(constSbName&n1,constSbName&n2)intoperator!=(constSbName&n,constchar*s)