pike.git / lib / modules / Mapping.pmod

version» Context lines:

pike.git/lib/modules/Mapping.pmod:95:    update_joined();    return indices(joined);    }       protected array(mixed) _values()    {    update_joined();    return values(joined);    }    -  protected mixed `+(mixed ... args) +  protected mixed `+(mixed arg)    {    update_joined(); -  return predef::`+(joined, @args); +  return predef::`+(joined, arg);    }    -  protected mixed ``+(mixed ... args) +  protected mixed ``+(mixed arg)    {    update_joined(); -  return predef::`+(@args, joined); +  return predef::`+(arg, joined);    }    -  protected mixed `-(mixed ... args) +  protected mixed `-(mixed arg)    {    update_joined(); -  return predef::`-(joined, @args); +  return predef::`-(joined, arg);    }    -  protected mixed ``-(mixed ... args) +  protected mixed ``-(mixed arg)    {    update_joined(); -  return predef::`-(@args, joined); +  return predef::`-(arg, joined);    }    -  protected mixed `|(mixed ... args) +  protected mixed `|(mixed arg)    {    update_joined(); -  return predef::`|(joined, @args); +  return predef::`|(joined, [mapping|object]arg);    }    -  protected mixed ``|(mixed ... args) +  protected mixed ``|(mixed arg)    {    update_joined(); -  return predef::`|(@args, joined); +  return predef::`|(arg, joined);    }    -  protected mixed `&(mixed ... args) +  protected mixed `&(mixed arg)    {    update_joined(); -  return predef::`&(joined, @args); +  return predef::`&(joined, [array|mapping|multiset|object]arg);    }    -  protected mixed ``&(mixed ... args) +  protected mixed ``&(mixed arg)    {    update_joined(); -  return predef::`&(@args, joined); +  return predef::`&(arg, joined);    }    -  protected mixed `^(mixed ... args) +  protected mixed `^(mixed arg)    {    update_joined(); -  return predef::`^(joined, @args); +  return predef::`^(joined, [mapping|object]arg);    }    -  protected mixed ``^(mixed ... args) +  protected mixed ``^(mixed arg)    {    update_joined(); -  return predef::`^(@args, joined); +  return predef::`^(arg, joined);    }       protected mixed cast(string type)    {    update_joined();    switch(type) {    case "mapping": return joined + ([]);    case "array": return (array)joined;    }    return UNDEFINED;