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  -  SOBASELIST (3)

NAME

SoBaseList — maintains a list of pointers to instances of the SoBase classes

CONTENTS

Inherits From
Synopsis
Description
Methods
See Also

INHERITS FROM

SbPList > SoBaseList

SYNOPSIS

#include <Inventor/SoLists.h>

Methods from class SoBaseList:

       
                    
                     SoBaseList()    
   
                    
                     SoBaseList(int size)    
   
                    
                     SoBaseList(const SoBaseList &l)    
   
                    
                     ~SoBaseList()    
void    
                    
void                 append(SoBase *ptr)    
void    
                    
void                 insert(SoBase *ptr, int addBefore)    
void    
                    
void                 remove(int which)    
void    
                    
void                 truncate(int start)    
void    
                    
void                 copy(const SoBaseList &l)    
SoBaseList &    
                    
SoBaseList &         operator =(const SoBaseList &l)    
SoBase *    
                    
SoBase *             operator [](int i) const    
void    
                    
void                 set(int i, SoBase *ptr)    
void    
                    
void                 addReferences(SbBool flag)

Methods from class SbPList:

    int    
                    
int                  find(const void *ptr) const    
int    
                    
int                  getLength() const    
int    
                    
int                  operator ==(const SbPList &pl) const    
int    
                    
int                  operator !=(const SbPList &pl) const

DESCRIPTION

This subclass of SbPList holds lists of pointers to instances of classes derived from SoBase (an abstract class). A flag indicates whether adding an instance pointer to the list should add a reference to the instance. If this flag is TRUE, then adding and removing pointers from the list updates reference counts in the corresponding instances.

METHODS

       
                    
                     SoBaseList()
Constructor.

       
                    
                     SoBaseList(int size)
Constructor that pre-allocates storage for size pointers.

       
                    
                     SoBaseList(const SoBaseList &l)
Constructor that copies the contents of another list.

       
                    
                     ~SoBaseList()
Destructor.

    void    
                    
void                 append(SoBase *ptr)
Adds a pointer to the end of the list.

    void    
                    
void                 insert(SoBase *ptr, int addBefore)
Inserts given pointer in list before pointer with given index.

    void    
                    
void                 remove(int which)
Removes pointer with given index.

    void    
                    
void                 truncate(int start)
Removes all pointers after one with given index, inclusive.

    void    
                    
void                 copy(const SoBaseList &l)
Copies a list, keeping all reference counts correct.

    SoBaseList &    
                    
SoBaseList &         operator =(const SoBaseList &l)
Copies a list, keeping all reference counts correct.

    SoBase *    
                    
SoBase *             operator [](int i) const
Accesses an element of a list.

    void    
                    
void                 set(int i, SoBase *ptr)
Sets an element of a list.

    void    
                    
void                 addReferences(SbBool flag)
Indicates whether to call ref() and unref() for bases in the list when adding/removing them. The default value is TRUE.

SEE ALSO

SoBase, SoNodeList, SoPathList

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


SOBASELIST(3IV) (-->)

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