/// <summary> /// Creates a P4Map object populated with the view defined by lines. /// </summary> /// <param name="lines">Lines in the Map view.</param> public P4Map(params string[] lines) { // always use UTF8 _map = new P4MapMaker(Encoding.UTF8); Insert(lines); }
private P4Map(P4MapMaker mapmaker) { _map = mapmaker; }
/// <summary> /// Creates an empty Map. /// </summary> public P4Map() { // always use UTF8 _map = new P4MapMaker(Encoding.UTF8); }
/// <summary> /// Joins two map objects to form the intersection of the two views. /// </summary> /// <param name="left">Left-hand map.</param> /// <param name="right">Right-hand map.</param> /// <returns>P4Map object of the intersection of the two maps.</returns> public static P4Map Join(P4Map left, P4Map right) { return(new P4Map(P4MapMaker.Join(left._map, right._map))); }