27 #include <Inventor/SoType.h>
28 #include <Inventor/lists/SoAuditorList.h>
29 #include <Inventor/C/base/rbptree.h>
38 static void initClass(
void);
41 void unref(
void)
const;
42 void unrefNoDelete(
void)
const;
43 int32_t getRefCount(
void)
const;
47 virtual SoType getTypeId(
void)
const = 0;
48 SbBool isOfType(
SoType type)
const;
49 static SoType getClassTypeId(
void);
51 virtual SbName getName(
void)
const;
52 virtual void setName(
const SbName & newname);
54 static void addName(
SoBase *
const base,
const char *
const name);
55 static void removeName(
SoBase *
const base,
const char *
const name);
57 virtual void startNotify(
void);
61 void removeAuditor(
void *
const auditor,
const SoNotRec::Type type);
64 virtual void addWriteReference(
SoOutput * out, SbBool isfromfield = FALSE);
65 SbBool shouldWrite(
void);
67 static void incrementCurrentWriteCounter(
void);
68 static void decrementCurrentWriteCounter(
void);
75 static void setInstancePrefix(
const SbString & c);
77 static void setTraceRefs(SbBool trace);
78 static SbBool getTraceRefs(
void);
80 static SbBool connectRoute(
SoInput * input,
81 const SbName & fromnodename,
const SbName & fromfieldname,
84 void assertAlive(
void)
const;
85 static SbBool readRoute(
SoInput * input);
89 enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 };
94 virtual void destroy(
void);
96 SbBool hasMultipleWriteRefs(
void)
const;
97 SbBool writeHeader(
SoOutput * out, SbBool isgroup, SbBool isengine)
const;
98 void writeFooter(
SoOutput * out)
const;
99 virtual const char * getFileFormatName(
void)
const;
101 virtual SbBool readInstance(
SoInput * input,
unsigned short flags) = 0;
103 static uint32_t getCurrentWriteCounter(
void);
104 static void staticDataLock(
void);
105 static void staticDataUnlock(
void);
108 static void cleanClass(
void);
110 static SoType classTypeId;
113 mutable int referencecount : 28;
114 mutable unsigned int alive : 4;
118 cc_rbptree auditortree;
125 inline void intrusive_ptr_add_ref(
SoBase * obj) { obj->
ref(); }
126 inline void intrusive_ptr_release(
SoBase * obj) { obj->
unref(); }
128 #endif // !COIN_SOBASE_H
The SoBase class is the top-level superclass for a number of class-hierarchies.SoBase provides the ba...
Definition: SoBase.h:36
The SoOutput class is an abstraction of an output stream.SoOutput offers the ability to write basic t...
Definition: SoOutput.h:42
The SoBaseList class is a container for pointers to SoBase derived objects.The additional capability ...
Definition: SoBaseList.h:32
void ref(void) const
Definition: SoBase.cpp:459
The SoAuditorList class is used to keep track of auditors for certain object classes.This class is mainly for internal use (from SoBase) and it should not be necessary to be familiar with it for "ordinary" Coin use.
Definition: SoAuditorList.h:43
void unref(void) const
Definition: SoBase.cpp:509
BaseFlags
Definition: SoBase.h:89
The SbString class is a string class with convenience functions for string operations.This is the class used for storing and working with character strings. It automatically takes care of supporting all the "bookkeeping" tasks usually associated with working with character strings, like memory allocation and deallocation etc.
Definition: SbString.h:42
The SoNotList class is a list of SoNotRec notification records.
Definition: SoNotification.h:34
The SoType class is the basis for the run-time type system in Coin.Many of the classes in the Coin li...
Definition: SoType.h:50
The SbName class stores strings by reference.The class is used by Coin for storing keywords...
Definition: SbName.h:31
Type
Definition: SoNotRec.h:35