GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SBNAME (3)

NAME

SbName — character string stored in a hash table

CONTENTS

Inherits From
Synopsis
Description
Methods
File Format/defaults
See Also

INHERITS FROM

SbName

SYNOPSIS

#include <Inventor/SbString.h>

Methods from class SbName:

       
                    
                     SbName()    
   
                    
                     SbName(const char *s)    
   
                    
                     SbName(const SbString &s)    
   
                    
                     SbName(const SbName &n)    
   
                    
                     ~SbName()    
const char *    
                    
const char *         getString() const    
int    
                    
int                  getLength() const    
static SbBool    
                    
static SbBool        isIdentStartChar(char c)    
static SbBool    
                    
static SbBool        isIdentChar(char c)    
int    
                    
int                  operator !() const    
int    
                    
int                  operator ==(const char *s, const SbName &n)    
int    
                    
int                  operator ==(const SbName &n1, const SbName &n2)    
int    
                    
int                  operator ==(const SbName &n, const char *s)    
int    
                    
int                  operator !=(const char *s, const SbName &n)    
int    
                    
int                  operator !=(const SbName &n1, const SbName &n2)    
int    
                    
int                  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

       
                    
                     SbName()    
   
                    
                     SbName(const char *s)    
   
                    
                     SbName(const SbString &s)    
   
                    
                     SbName(const SbName &n)    
   
                    
                     ~SbName()
Constructors and destructor.

    const char *    
                    
const char *         getString() const
Returns pointer to the character string.

    int    
                    
int                  getLength() const
Returns length of string.

    static SbBool    
                    
static SbBool        isIdentStartChar(char c)
Returns TRUE if given character is a legal starting character for an identifier.

    static SbBool    
                    
static SbBool        isIdentChar(char c)
Returns TRUE if given character is a legal nonstarting character for an identifier.

    int    
                    
int                  operator !() const
Unary "not" operator; returns TRUE if string is empty ("").

    int    
                    
int                  operator ==(const char *s, const SbName &n)    
int    
                    
int                  operator ==(const SbName &n1, const SbName &n2)    
int    
                    
int                  operator ==(const SbName &n, const char *s)
Equality operator for SbName/char* and SbName/SbName comparison.

    int    
                    
int                  operator !=(const char *s, const SbName &n)    
int    
                    
int                  operator !=(const SbName &n1, const SbName &n2)    
int    
                    
int                  operator !=(const SbName &n, const char *s)
Inequality operator for SbName/char* and SbName/SbName comparison.

FILE FORMAT/DEFAULTS

SEE ALSO

SbString

Search for    or go to Top of page |  Section 3 |  Main Index


SBNAME(3IV) (-->)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.