1SbName(3IV)()                                                    SbName(3IV)()
2
3
4

NAME

6       SbName — character string stored in a hash table
7

INHERITS FROM

9       SbName
10

SYNOPSIS

12       #include <Inventor/SbString.h>
13
14          Methods from class SbName:
15
16                         SbName()
17                         SbName(const char *s)
18                         SbName(const SbString &s)
19                         SbName(const SbName &n)
20                         ~SbName()
21     const char *        getString() const
22     int                 getLength() const
23     static SbBool       isIdentStartChar(char c)
24     static SbBool       isIdentChar(char c)
25     int                 operator !() const
26     int                 operator ==(const char *s, const SbName &n)
27     int                 operator ==(const SbName &n1, const SbName &n2)
28     int                 operator ==(const SbName &n, const char *s)
29     int                 operator !=(const char *s, const SbName &n)
30     int                 operator !=(const SbName &n1, const SbName &n2)
31     int                 operator !=(const SbName &n, const char *s)
32
33

DESCRIPTION

35       This  class of strings stores the string in a hash table. It is used by
36       the Inventor toolkit for keywords and other unique  names.  It  is  not
37       recommended  for general use (only in the context of Inventor objects).
38       When a string is stored in this table, a  pointer  to  the  storage  is
39       returned.  Two  identical  strings  will  return the same pointer. This
40       means that comparison of two SbNames for equality can  be  accomplished
41       by  comparing their identifiers. SbNames are used for strings which are
42       expected to show up frequently, such as node names.
43

METHODS

45                         SbName()
46                         SbName(const char *s)
47                         SbName(const SbString &s)
48                         SbName(const SbName &n)
49                         ~SbName()
50          Constructors and destructor.
51
52     const char *        getString() const
53          Returns pointer to the character string.
54
55     int                 getLength() const
56          Returns length of string.
57
58     static SbBool       isIdentStartChar(char c)
59          Returns TRUE if given character is a legal starting character for an
60          identifier.
61
62     static SbBool       isIdentChar(char c)
63          Returns TRUE if given character is a legal nonstarting character for
64          an identifier.
65
66     int                 operator !() const
67          Unary "not" operator; returns TRUE if string is empty ("").
68
69     int                 operator ==(const char *s, const SbName &n)
70     int                 operator ==(const SbName &n1, const SbName &n2)
71     int                 operator ==(const SbName &n, const char *s)
72          Equality operator for SbName/char* and SbName/SbName comparison.
73
74     int                 operator !=(const char *s, const SbName &n)
75     int                 operator !=(const SbName &n1, const SbName &n2)
76     int                 operator !=(const SbName &n, const char *s)
77          Inequality operator for SbName/char* and SbName/SbName comparison.
78
79

SEE ALSO

81       SbString
82
83
84
85
86                                                                 SbName(3IV)()
Impressum