pike.git / src / modules / Yp / module.pmod.in

version» Context lines:

pike.git/src/modules/Yp/module.pmod.in:72:    string `[](string key)    {    return(domain->match(ypmap, key));    }       //! Returns the whole map as a mapping.    mapping(string:string) all()    {    return(domain->all(ypmap));    } +     mapping(string:string) cast_to_mapping()    {    return(domain->all(ypmap));    }       //! Call a function for each entry in the map.    //!    //! For each entry in the map, call the function @[fun].    //!    //! The function will be called like
pike.git/src/modules/Yp/module.pmod.in:119:    {    return(indices(domain->all(ypmap)));    }       //! Return the values of the map.    array(string) _values()    {    return(values(domain->all(ypmap)));    }    -  protected mixed cast(string type) +  //! Convert the map to a mapping +  protected mapping cast(string type)    {    if( type=="mapping" )    return cast_to_mapping();    return UNDEFINED;    }   }      #endif