16#include "SoShaderSystem.h"
50 ptrsSize =
pl.ptrsSize;
51 ptrs =
new Type[ptrsSize];
53 for (
int i = 0;
i < nPtrs;
i++)
66 if (nPtrs + 1 > ptrsSize)
68 ptrs[nPtrs++] = value;
72 int find(
const Type& value)
const
74 for (
int i = 0;
i < nPtrs;
i++)
94 ptrs[
i] = ptrs[
i - 1];
104 for (
int i = which;
i < nPtrs - 1;
i++)
105 ptrs[
i] = ptrs[
i + 1];
129 for (
int i = 0;
i < nPtrs;
i++)
130 ptrs[
i] =
pl.ptrs[
i];
150 return pl.nPtrs == nPtrs ? compare(
pl) :
FALSE;
154 return pl.nPtrs == nPtrs ? !compare(
pl) :
TRUE;
175 for (
int i = 0;
i < nPtrs;
i++)
176 if ((*
this)[
i] !=
pl[
i])
189 void grow(
int max)
const
196 SoDebugError::post(
"(internal) SbList::grow",
"newSize <= oldSize!");
210 void setSize(
int size)
219 void expand(
int size)
224 while (size > ptrsSize) {
230 SoDebugError::post(
"SbList::expand",
"Attempt to expand list beyond capacity;\n A core dump is likely");
238 if (ptrs !=
nullptr) {
239 for (
int i = 0;
i < nPtrs;
i++)
This contains the definition of the SbList generic pointer list class; an SbList is a list of (void *...
SbList & operator=(const SbList &pl)
void append(const Type &value)
Type & operator[](int i) const
int operator==(const SbList &pl) const
void copy(const SbList &pl)
int find(const Type &value) const
int operator!=(const SbList &pl) const
void insert(const Type &value, int addBefore)
Target mlrange_cast(Source arg)
Generic version of checked ML casts.