Lines Matching refs:nsID

319 struct SafeArrayTraits<nsID *>
323 static void Init(nsID * &aElem) { aElem = NULL; }
325 static void Uninit(nsID * &aElem)
334 static void Copy(const nsID * aFrom, nsID * &aTo)
338 aTo = (nsID *) ::nsMemory::Alloc(sizeof(nsID));
350 static void Init(const nsID * &aElem) { NOREF(aElem); AssertFailed(); }
351 static void Uninit(const nsID * &aElem) { NOREF(aElem); AssertFailed(); }
356 static const nsID **__asInParam_Arr(nsID **aArr)
358 return const_cast<const nsID **>(aArr);
360 static const nsID **__asInParam_Arr(const nsID **aArr) { return aArr; }
1335 * GUID arrays store pointers to nsID so that input arrays are |const nsID **|
1336 * and out arrays are |nsID ***|. Due to this difference, it is impossible to
1344 * raw() array type is different (nsID **, or GUID ** on XPCOM and GUID * on MS
1358 class SafeGUIDArray : public SafeArray<nsID *>
1362 typedef SafeArray<nsID *> Base;
1368 nsIDRef(nsID * &aVal) : mVal(aVal) {}
1370 operator const nsID &() const { return mVal ? *mVal : *Empty; }
1371 operator nsID() const { return mVal ? *mVal : *Empty; }
1373 const nsID *operator&() const { return mVal ? mVal : Empty; }
1375 nsIDRef &operator= (const nsID &aThat)
1386 nsID * &mVal;
1388 static const nsID *Empty;
1401 * special case, the return value of this operator on XPCOM is an nsID (GUID)
1402 * reference, instead of an nsID pointer (the actual SafeArray template
1417 const nsID &operator[] (size_t aIdx) const
1431 class SafeConstGUIDArray : public SafeArray<const nsID *,
1432 SafeArrayTraits<nsID *> >
1436 typedef SafeArray<const nsID *, SafeArrayTraits<nsID *> > Base;
1447 * special case, the return value of this operator on XPCOM is nsID (GUID)
1448 * instead of nsID *, for compatibility with the MS COM version.
1452 const nsID &operator[] (size_t aIdx) const
1454 AssertReturn(m.arr != NULL, **((const nsID * *)NULL));
1455 AssertReturn(aIdx < size(), **((const nsID * *)NULL));