Debian Codegraph @

doc/man/man3/ivm/basics/SbName.ivm

raw
1 NAME SbName "" "" { character string stored in a hash table }
2 INCLUDE SbString.h
3 DESC {
4 This class of strings stores the string in a hash table. It is
5 used by the Inventor toolkit for keywords and other unique names.
6 It is not recommended for general use (only in the context of Inventor
7 objects). When a string is stored in this table, a pointer to the
8 storage is returned. Two identical strings will return the same pointer.
9 This means that comparison of two \cSbName\.s
10 for equality can be accomplished by comparing their identifiers.
11 \cSbName\.s
12 are used for strings which are expected to show up frequently, such as
13 node names.
14 }
15 METHOD "" SbName() {}
16 METHOD CreateStr SbName(const char *s) {}
17 METHOD CreateSbStr SbName(const SbString &s) {}
18 METHOD CreateSbName SbName(const SbName &n) {}
19 METHOD "" ~SbName() {
20 Constructors and destructor.
21 }
22 METHOD getStr const char *getString() const {
23 Returns pointer to the character string.
24 }
25 METHOD getLen int getLength() const {
26 Returns length of string.
27 }
28 METHOD "" static SbBool isIdentStartChar(char c) {
29 Returns TRUE if given character is a legal starting character
30 for an identifier.
31 }
32 METHOD "" static SbBool isIdentChar(char c) {
33 Returns TRUE if given character is a legal nonstarting
34 character for an identifier.
35 }
36 METHOD "" int operator !() const {
37 Unary "not" operator; returns TRUE if string is empty ("").
38 }
39 BEGIN C++
40 METHOD "" int operator ==(const char *s, const SbName &n) {}
41 END
42 METHOD "" int operator ==(const SbName &n1, const SbName &n2) {}
43 METHOD IsEqStr int operator ==(const SbName &n, const char *s) {
44 Equality operator for SbName/char* and SbName/SbName comparison.
45 }
46 BEGIN C++
47 METHOD "" int operator !=(const char *s, const SbName &n) {}
48 END
49 METHOD "" int operator !=(const SbName &n1, const SbName &n2) {}
50 METHOD IsNEqStr int operator !=(const SbName &n, const char *s) {
51 Inequality operator for SbName/char* and SbName/SbName comparison.
52 }
53 ALSO { SbString }
54
55