LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIMutableArray.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 1 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIMutableArray.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIMutableArray_h__
       6             : #define __gen_nsIMutableArray_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIArrayExtensions_h__
      10             : #include "nsIArrayExtensions.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : 
      18             : /* starting interface:    nsIMutableArray */
      19             : #define NS_IMUTABLEARRAY_IID_STR "af059da0-c85b-40ec-af07-ae4bfdc192cc"
      20             : 
      21             : #define NS_IMUTABLEARRAY_IID \
      22             :   {0xaf059da0, 0xc85b, 0x40ec, \
      23             :     { 0xaf, 0x07, 0xae, 0x4b, 0xfd, 0xc1, 0x92, 0xcc }}
      24             : 
      25           2 : class NS_NO_VTABLE nsIMutableArray : public nsIArrayExtensions {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMUTABLEARRAY_IID)
      29             : 
      30             :   /* void appendElement (in nsISupports element, [optional] in boolean weak); */
      31             :   NS_IMETHOD AppendElement(nsISupports *element, bool weak) = 0;
      32             : 
      33             :   /* void removeElementAt (in unsigned long index); */
      34             :   NS_IMETHOD RemoveElementAt(uint32_t index) = 0;
      35             : 
      36             :   /* void insertElementAt (in nsISupports element, in unsigned long index, in boolean weak); */
      37             :   NS_IMETHOD InsertElementAt(nsISupports *element, uint32_t index, bool weak) = 0;
      38             : 
      39             :   /* void replaceElementAt (in nsISupports element, in unsigned long index, in boolean weak); */
      40             :   NS_IMETHOD ReplaceElementAt(nsISupports *element, uint32_t index, bool weak) = 0;
      41             : 
      42             :   /* void clear (); */
      43             :   NS_IMETHOD Clear(void) = 0;
      44             : 
      45             : };
      46             : 
      47             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIMutableArray, NS_IMUTABLEARRAY_IID)
      48             : 
      49             : /* Use this macro when declaring classes that implement this interface. */
      50             : #define NS_DECL_NSIMUTABLEARRAY \
      51             :   NS_IMETHOD AppendElement(nsISupports *element, bool weak) override; \
      52             :   NS_IMETHOD RemoveElementAt(uint32_t index) override; \
      53             :   NS_IMETHOD InsertElementAt(nsISupports *element, uint32_t index, bool weak) override; \
      54             :   NS_IMETHOD ReplaceElementAt(nsISupports *element, uint32_t index, bool weak) override; \
      55             :   NS_IMETHOD Clear(void) override; 
      56             : 
      57             : /* Use this macro when declaring the members of this interface when the
      58             :    class doesn't implement the interface. This is useful for forwarding. */
      59             : #define NS_DECL_NON_VIRTUAL_NSIMUTABLEARRAY \
      60             :   nsresult AppendElement(nsISupports *element, bool weak); \
      61             :   nsresult RemoveElementAt(uint32_t index); \
      62             :   nsresult InsertElementAt(nsISupports *element, uint32_t index, bool weak); \
      63             :   nsresult ReplaceElementAt(nsISupports *element, uint32_t index, bool weak); \
      64             :   nsresult Clear(void); 
      65             : 
      66             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      67             : #define NS_FORWARD_NSIMUTABLEARRAY(_to) \
      68             :   NS_IMETHOD AppendElement(nsISupports *element, bool weak) override { return _to AppendElement(element, weak); } \
      69             :   NS_IMETHOD RemoveElementAt(uint32_t index) override { return _to RemoveElementAt(index); } \
      70             :   NS_IMETHOD InsertElementAt(nsISupports *element, uint32_t index, bool weak) override { return _to InsertElementAt(element, index, weak); } \
      71             :   NS_IMETHOD ReplaceElementAt(nsISupports *element, uint32_t index, bool weak) override { return _to ReplaceElementAt(element, index, weak); } \
      72             :   NS_IMETHOD Clear(void) override { return _to Clear(); } 
      73             : 
      74             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      75             : #define NS_FORWARD_SAFE_NSIMUTABLEARRAY(_to) \
      76             :   NS_IMETHOD AppendElement(nsISupports *element, bool weak) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendElement(element, weak); } \
      77             :   NS_IMETHOD RemoveElementAt(uint32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveElementAt(index); } \
      78             :   NS_IMETHOD InsertElementAt(nsISupports *element, uint32_t index, bool weak) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertElementAt(element, index, weak); } \
      79             :   NS_IMETHOD ReplaceElementAt(nsISupports *element, uint32_t index, bool weak) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceElementAt(element, index, weak); } \
      80             :   NS_IMETHOD Clear(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(); } 
      81             : 
      82             : #if 0
      83             : /* Use the code below as a template for the implementation class for this interface. */
      84             : 
      85             : /* Header file */
      86             : class nsMutableArray : public nsIMutableArray
      87             : {
      88             : public:
      89             :   NS_DECL_ISUPPORTS
      90             :   NS_DECL_NSIMUTABLEARRAY
      91             : 
      92             :   nsMutableArray();
      93             : 
      94             : private:
      95             :   ~nsMutableArray();
      96             : 
      97             : protected:
      98             :   /* additional members */
      99             : };
     100             : 
     101             : /* Implementation file */
     102             : NS_IMPL_ISUPPORTS(nsMutableArray, nsIMutableArray)
     103             : 
     104             : nsMutableArray::nsMutableArray()
     105             : {
     106             :   /* member initializers and constructor code */
     107             : }
     108             : 
     109             : nsMutableArray::~nsMutableArray()
     110             : {
     111             :   /* destructor code */
     112             : }
     113             : 
     114             : /* void appendElement (in nsISupports element, [optional] in boolean weak); */
     115             : NS_IMETHODIMP nsMutableArray::AppendElement(nsISupports *element, bool weak)
     116             : {
     117             :     return NS_ERROR_NOT_IMPLEMENTED;
     118             : }
     119             : 
     120             : /* void removeElementAt (in unsigned long index); */
     121             : NS_IMETHODIMP nsMutableArray::RemoveElementAt(uint32_t index)
     122             : {
     123             :     return NS_ERROR_NOT_IMPLEMENTED;
     124             : }
     125             : 
     126             : /* void insertElementAt (in nsISupports element, in unsigned long index, in boolean weak); */
     127             : NS_IMETHODIMP nsMutableArray::InsertElementAt(nsISupports *element, uint32_t index, bool weak)
     128             : {
     129             :     return NS_ERROR_NOT_IMPLEMENTED;
     130             : }
     131             : 
     132             : /* void replaceElementAt (in nsISupports element, in unsigned long index, in boolean weak); */
     133             : NS_IMETHODIMP nsMutableArray::ReplaceElementAt(nsISupports *element, uint32_t index, bool weak)
     134             : {
     135             :     return NS_ERROR_NOT_IMPLEMENTED;
     136             : }
     137             : 
     138             : /* void clear (); */
     139             : NS_IMETHODIMP nsMutableArray::Clear()
     140             : {
     141             :     return NS_ERROR_NOT_IMPLEMENTED;
     142             : }
     143             : 
     144             : /* End of implementation class template. */
     145             : #endif
     146             : 
     147             : 
     148             : #endif /* __gen_nsIMutableArray_h__ */

Generated by: LCOV version 1.13