Introduction to Standard C++2Ex

Total Page:16

File Type:pdf, Size:1020Kb

Introduction to Standard C++2Ex Introduction to Standard C++ Lecture 04: Template Functions and Template Classes Massimiliano Culpo1 1CINECA - SuperComputing Applications and Innovation Department 07.04.2014 M.Culpo (CINECA) Introduction to C++ 07.04.2014 1 / 26 Templates Table of contents - Language rules 1 Templates Template declarations Function templates Class templates Name resolution 2 Summary 3 Bibliography M.Culpo (CINECA) Introduction to C++ 07.04.2014 2 / 26 Templates Template declarations Table of contents - Language rules 1 Templates Template declarations Function templates Class templates Name resolution 2 Summary 3 Bibliography M.Culpo (CINECA) Introduction to C++ 07.04.2014 3 / 26 Templates Template declarations Template declarations (x14) A template defines a family of classes or functions: template <typenameT > T const& max (T const& a , T const& b) f // ifa < b then useb else usea returna < b ? b : a ; g 1 A template declaration shall: declare or define a function or a class define a member function, a member class or a static data member define a member template of a class or class template 2 A template declaration is also a definition if its declaration defines a function or a class M.Culpo (CINECA) Introduction to C++ 07.04.2014 4 / 26 Templates Template declarations Template parameters (x14.1) template<constX & x , i n ti > voidf () f i ++; // error: can't assign or modify &x ; // OK &i ; // error: can't take the address i n t& r i = i ; // error const int& c r i = i ; // OK g 1 There are three kinds of allowed template parameters: non-type template parameters type template parameters template template parameters 2 A non-type template parameter shall be either: an integral or enumeration type a pointer/reference to object or function M.Culpo (CINECA) Introduction to C++ 07.04.2014 5 / 26 Templates Template declarations Template parameters (x14.1) template<c l a s sK , c l a s sV > c l a s s Map f std :: vector<K> key ; std :: vector<V> value ; g ; template<c l a s sK , c l a s sV , template<c l a s sT > c l a s sC > c l a s s Map f C<K> key ; C<V> value ; g ; 1 The keyword class names a type parameter 2 Template classes may also be used as template parameters M.Culpo (CINECA) Introduction to C++ 07.04.2014 6 / 26 Templates Template declarations Template parameters (x14.1) A default argument may be specified for any kind of template parameter: template<c l a s s T1, c l a s s T2 = int > c l a s sA ; template <c l a s sT = f l o a t > s t r u c tB f g ; template <template <c l a s s TT = f l o a t > c l a s sT > s t r u c tA f i n l i n e voidf (); i n l i n e voidg (); g ; template <template <c l a s s TT> c l a s sT > voidA <T>:: f () f T<> t ; g // error template <template <c l a s s TT = char> c l a s sT > voidA <T>:: g () f T<> t ; g // OK − T<char> M.Culpo (CINECA) Introduction to C++ 07.04.2014 7 / 26 Templates Function templates Table of contents - Language rules 1 Templates Template declarations Function templates Class templates Name resolution 2 Summary 3 Bibliography M.Culpo (CINECA) Introduction to C++ 07.04.2014 8 / 26 Templates Function templates Function templates (x14.5.6) A function template defines an unbounded set of related functions: // sort.hxx template<c l a s sT > void sort ( T& input ); The mere use of a function template can trigger an instantiation: #include "sort.hxx" std :: vector< double > vec ; s o r t ( vec ); A function template can be overloaded: 1 with other function templates 2 with normal functions M.Culpo (CINECA) Introduction to C++ 07.04.2014 9 / 26 Templates Function templates Overloading of function templates /∗ Maximum of two ints ∗/ i n t const& max ( i n t const& a , i n t const& b ); /∗ Maximum of two values of any type ∗/ template <typenameT > T const& max (T const& a , T const& b ); /∗ Maximum of three values of any type ∗/ template <typenameT > T const& max (T const& a , T const& b , T const& c ); i n t main () f :: max( 7 , 42 , 6 8 ) ; // template for three arguments :: max (7.0, 42.0); // max<double> :: max('a','b'); // max<char> :: max( 7 , 4 2 ) ; // non−template for two ints :: max<>(7, 4 2 ) ; // max<int > :: max<double >(7 , 4 2 ) ; // max<double> :: max('a', 42.7); // non−template for two ints g M.Culpo (CINECA) Introduction to C++ 07.04.2014 10 / 26 Templates Class templates Table of contents - Language rules 1 Templates Template declarations Function templates Class templates Name resolution 2 Summary 3 Bibliography M.Culpo (CINECA) Introduction to C++ 07.04.2014 11 / 26 Templates Class templates Class templates (x14.5.1) A class template defines an unbounded set of related types: template<c l a s sT > c l a s s Array f T∗ v ; i n t sz ; p u b l i c : e x p l i c i t Array ( i n t ); T& operator []( i n t ); T& elem ( i n ti ) f r e t u r nv [ i ]; g g ; A member function may be defined outside the class in which it is declared: template<c l a s sT > T& Array<T>:: operator []( i n ti ) f i f ( i <0 j j sz<=i ) e r r o r ("Array: range error"); r e t u r nv [ i ]; g M.Culpo (CINECA) Introduction to C++ 07.04.2014 12 / 26 Templates Class templates Class templates (x14.5.1) Similar rules apply to class member: template<c l a s sT > s t r u c tA f c l a s sB ; g ; A<int >::B∗ b1 ; template<c l a s sT > c l a s sA <T>::B f g ; A<int >::B b2 ; For a member function of a class template: Array<int > v1 ( 2 0 ) ; Array<dcomplex> v2 ( 3 0 ) ; // Array<int >::operator[]() v1 [ 3 ] = 7 ; // Array<dcomplex >::operator[]() v2 [ 3 ] = dcomplex ( 7 , 8 ) ; the template arguments are determined by the type of the object for which the member function is called. M.Culpo (CINECA) Introduction to C++ 07.04.2014 13 / 26 Templates Class templates Member template (x14.5.2) A template can be declared within a class or class template: template<c l a s sT > s t r u c t string f template<c l a s s T2> i n t compare ( const T2&); template<c l a s s T2> s t r i n g ( const string <T2>& s ) f /∗ ... ∗/ g g ; template<c l a s sT > template<c l a s s T2> i n t string <T>:: compare ( const T2& s ) f /∗ ... ∗/ g M.Culpo (CINECA) Introduction to C++ 07.04.2014 14 / 26 Templates Class templates Member template (x14.5.2) template <c l a s sT > s t r u c t AA f template <c l a s sC > v i r t u a l voidg (C); // error g ; c l a s sB f v i r t u a l voidf ( i n t ); g ; c l a s sD : p u b l i cB f template <c l a s sT > voidf (T); // no override voidf ( i n ti ) f f <>( i ); g // overriding g ; 1 A local class shall not have member templates 2 A member function template: shall not be virtual does not override a virtual function M.Culpo (CINECA) Introduction to C++ 07.04.2014 15 / 26 Templates Class templates Class template partial specialization (x14.5.5) template<c l a s s T1, c l a s s T2, i n tI > c l a s sA f g ; // Primary class template template<c l a s sT , i n tI > c l a s sA <T, T∗ , I> f g ; // #1 template<c l a s s T1, c l a s s T2, i n tI > c l a s sA <T1∗ , T2, I> f g ; // #2 1 A class template may be partially specialized 2 Each class template partial specialization is a distinct template 3 Definitions shall be provided for its members M.Culpo (CINECA) Introduction to C++ 07.04.2014 16 / 26 Templates Name resolution Table of contents - Language rules 1 Templates Template declarations Function templates Class templates Name resolution 2 Summary 3 Bibliography M.Culpo (CINECA) Introduction to C++ 07.04.2014 17 / 26 Templates Name resolution The typename keyword (x14.6) The keyword typename clarifies that an identifier is a type: template <c l a s sT > c l a s sA f typenameT :: SubType ∗ ptr ; /∗ ... ∗/ g ; Without typename, the expression: T :: SubType ∗ ptr ; would be a multiplication of a static member of class T with ptr. In general, typename has to be used whenever a name that depends on a template parameter is a type. M.Culpo (CINECA) Introduction to C++ 07.04.2014 18 / 26 Templates Name resolution The .template construct (x14.6) Consider the following example: template <c l a s sT > c l a s sC f p u b l i c : template<c l a s sU > s t r i n g i f y (); g template<i n tN > void print (C<N> const& bs ) f cout << bs .
Recommended publications
  • Jational Register of Historic Places Inventory -- Nomination Form
    •m No. 10-300 REV. (9/77) UNITED STATES DEPARTMENT OF THE INTERIOR NATIONAL PARK SERVICE JATIONAL REGISTER OF HISTORIC PLACES INVENTORY -- NOMINATION FORM SEE INSTRUCTIONS IN HOW TO COMPLETE NATIONAL REGISTER FORMS ____________TYPE ALL ENTRIES -- COMPLETE APPLICABLE SECTIONS >_____ NAME HISTORIC BROADWAY THEATER AND COMMERCIAL DISTRICT________________________ AND/OR COMMON LOCATION STREET & NUMBER <f' 300-8^9 ^tttff Broadway —NOT FOR PUBLICATION CITY. TOWN CONGRESSIONAL DISTRICT Los Angeles VICINITY OF 25 STATE CODE COUNTY CODE California 06 Los Angeles 037 | CLASSIFICATION CATEGORY OWNERSHIP STATUS PRESENT USE X.DISTRICT —PUBLIC ^.OCCUPIED _ AGRICULTURE —MUSEUM _BUILDING(S) —PRIVATE —UNOCCUPIED .^COMMERCIAL —PARK —STRUCTURE .XBOTH —WORK IN PROGRESS —EDUCATIONAL —PRIVATE RESIDENCE —SITE PUBLIC ACQUISITION ACCESSIBLE ^ENTERTAINMENT _ REUGIOUS —OBJECT _IN PROCESS 2L.YES: RESTRICTED —GOVERNMENT —SCIENTIFIC —BEING CONSIDERED — YES: UNRESTRICTED —INDUSTRIAL —TRANSPORTATION —NO —MILITARY —OTHER: NAME Multiple Ownership (see list) STREET & NUMBER CITY. TOWN STATE VICINITY OF | LOCATION OF LEGAL DESCRIPTION COURTHOUSE. REGISTRY OF DEEDSETC. Los Angeie s County Hall of Records STREET & NUMBER 320 West Temple Street CITY. TOWN STATE Los Angeles California ! REPRESENTATION IN EXISTING SURVEYS TiTLE California Historic Resources Inventory DATE July 1977 —FEDERAL ^JSTATE —COUNTY —LOCAL DEPOSITORY FOR SURVEY RECORDS office of Historic Preservation CITY, TOWN STATE . ,. Los Angeles California DESCRIPTION CONDITION CHECK ONE CHECK ONE —EXCELLENT —DETERIORATED —UNALTERED ^ORIGINAL SITE X.GOOD 0 —RUINS X_ALTERED _MOVED DATE- —FAIR _UNEXPOSED DESCRIBE THE PRESENT AND ORIGINAL (IF KNOWN) PHYSICAL APPEARANCE The Broadway Theater and Commercial District is a six-block complex of predominately commercial and entertainment structures done in a variety of architectural styles. The district extends along both sides of Broadway from Third to Ninth Streets and exhibits a number of structures in varying condition and degree of alteration.
    [Show full text]
  • Interstate Commerce Commission Washington
    INTERSTATE COMMERCE COMMISSION WASHINGTON REPORT NO. 3374 PACIFIC ELECTRIC RAILWAY COMPANY IN BE ACCIDENT AT LOS ANGELES, CALIF., ON OCTOBER 10, 1950 - 2 - Report No. 3374 SUMMARY Date: October 10, 1950 Railroad: Pacific Electric Lo cation: Los Angeles, Calif. Kind of accident: Rear-end collision Trains involved; Freight Passenger Train numbers: Extra 1611 North 2113 Engine numbers: Electric locomo­ tive 1611 Consists: 2 muitiple-uelt 10 cars, caboose passenger cars Estimated speeds: 10 m. p h, Standing ft Operation: Timetable and operating rules Tracks: Four; tangent; ] percent descending grade northward Weather: Dense fog Time: 6:11 a. m. Casualties: 50 injured Cause: Failure properly to control speed of the following train in accordance with flagman's instructions - 3 - INTERSTATE COMMERCE COMMISSION REPORT NO, 3374 IN THE MATTER OF MAKING ACCIDENT INVESTIGATION REPORTS UNDER THE ACCIDENT REPORTS ACT OF MAY 6, 1910. PACIFIC ELECTRIC RAILWAY COMPANY January 5, 1951 Accident at Los Angeles, Calif., on October 10, 1950, caused by failure properly to control the speed of the following train in accordance with flagman's instructions. 1 REPORT OF THE COMMISSION PATTERSON, Commissioner: On October 10, 1950, there was a rear-end collision between a freight train and a passenger train on the Pacific Electric Railway at Los Angeles, Calif., which resulted in the injury of 48 passengers and 2 employees. This accident was investigated in conjunction with a representative of the Railroad Commission of the State of California. 1 Under authority of section 17 (2) of the Interstate Com­ merce Act the above-entitled proceeding was referred by the Commission to Commissioner Patterson for consideration and disposition.
    [Show full text]
  • Attachment C: Provider Narrative Template
    ATTACHMENT C PROVIDER NARRATIVE TEMPLATE CHILD ADVOCACY CENTER SERVICES Agency Name: PROVIDER NARRATIVE (35 points) Maximum of 5 pages, not including attachments, Times New Roman, at least 10 font, 1 inch margins. Description of requested attachments can be found in Attachment B KidTraks Provider User Guide - Appendix B. Respondents should only submit one Provider Narrative regardless of how many CAC locations the Respondent is proposing. The Provider Narrative must address the following topics: GENERAL INFORMATION • Describe your agency’s history and development to date, including the history and development of your agency’s CAC services. This includes important organizational history of the agency, previous agency name if changed, and staffing trends throughout life of the agency. • Describe the current organizational chart of agency leadership, including current Board of Directors, positions held, and qualifications of staff. If your agency does not follow this organizational structure, please provide details specific to your agency structure and procedures. o Requested attachment: Organizational Chart • List any accreditation, community partnerships, or affiliation. o Requested attachment: Supporting documentation of accreditation, partnership, or affiliation AGENCY BUSINESS MODEL/LOGISTICS • What is the legal status of your organization, including when it became a registered business with the State of Indiana? o Requested attachment: Legal Status • Is your agency in good standing with all State and Federal agencies? o Requested attachment: Secretary of State Entity Report • How do you plan or how do you currently structure staff employment within your organization for CAC services? For example: do you offer benefits, are you using subcontractors, how will you ensure that your staff will be paid for work they complete for your agency? • Describe your use of subcontractors for CAC services (if any).
    [Show full text]
  • Universal Template Parameters
    Universal Template Parameters Document #: P1985R0 Date: 2020-01-13 Project: Programming Language C++ Evolution Working Group Incubator Reply-to: Mateusz Pusz (Epam Systems) <[email protected]> Gašper Ažman <[email protected]> Contents 1 Introduction 1 2 Motivation 1 3 Proposed Solution 2 4 Implications 2 5 Example Applications 3 5.1 Enabling higher order metafunctions..................................3 5.2 Making dependent static_assert(false) work...........................3 5.3 Checking whether a type is an instantiation of a given template...................3 6 Other Considered Syntaxes 4 6.1 . and ... instead of template auto and template auto ... ...................4 7 Acknowledgements 4 8 References 4 1 Introduction We propose a universal template parameter. This would allow for a generic apply and other higher-order template metafunctions, as well as certain type traits. 2 Motivation Imagine trying to write a metafunction for apply. While apply is very simple, a metafunction like bind or curry runs into the same problems; for demonstration, apply is clearest. It works for pure types: template<template<class...> classF, typename... Args> using apply=F<Args...>; template<typenameX> classG{ using type=X;}; 1 static_assert(std::is_same<apply<G, int>,G<int>>{}); // OK As soon as G tries to take any kind of NTTP (non-type template parameter) or a template-template parameter, apply becomes impossible to write; we need to provide analogous parameter kinds for every possible combination of parameters: template<template<class> classF> usingH=F<int>; apply<H, G> // error, can't pass H as arg1 of apply, and G as arg2 3 Proposed Solution Introduce a way to specify a truly universal template parameter that can bind to anything usable as a template argument.
    [Show full text]
  • Downtown Walking
    N Montgomery St Clinton Ct Autumn A B C D E F G H I J d v N Blv Stockton Av A Guadalupe Gardens n Mineta San José Market Center VTA Light Rail Japantown African Aut t North S 1 mile to Mountain View 1.1 miles ame 0.8 miles International Airport ne American u i m a D + Alum Rock 1 n 3.2 miles e Community t r Terr Avaya Stadium St S N Almade N St James Services th Not 2.2 miles Peralta Adobe Arts + Entertainment Whole Park 0.2 miles 5 N Foods Fallon House St James Bike Share Anno Domini Gallery H6 Hackworth IMAX F5 San José Improv I3 Market W St John St Little Italy W St John St 366 S 1st St Dome 201 S Market St 62 S 2nd St Alum Rock Alum Food + Drink | Cafés St James California Theatre H6 Institute of H8 San José G4 Mountain View 345 S 1st St Contemporary Art Museum of Art Winchester Bike Share US Post Santa Teresa 560 S 1st St 110 S Market St Oce Camera 3 Cinema I5 One grid square E St John St 288 S 2nd St KALEID Gallery J3 San José Stage Co. H7 Center for the E5 88 S 4th St 490 S 1st St represents approx. Trinity Performing Arts Episcopal MACLA/Movimiento H8 SAP Center B2 255 Almaden Blvd 3 minutes walk SAP Center n St Cathedral de Arte y Cultura Latino 525 W Santa Clara St San José Sharks | Music m Americana 510 S 1st St tu Children’s D7 Tabard Theatre Co.
    [Show full text]
  • Minutes of Claremore Public Works Authority Meeting Council Chambers, City Hall, 104 S
    MINUTES OF CLAREMORE PUBLIC WORKS AUTHORITY MEETING COUNCIL CHAMBERS, CITY HALL, 104 S. MUSKOGEE, CLAREMORE, OKLAHOMA MARCH 03, 2008 CALL TO ORDER Meeting called to order by Mayor Brant Shallenburger at 6:00 P.M. ROLL CALL Nan Pope called roll. The following were: Present: Brant Shallenburger, Buddy Robertson, Tony Mullenger, Flo Guthrie, Mick Webber, Terry Chase, Tom Lehman, Paula Watson Absent: Don Myers Staff Present: City Manager Troy Powell, Nan Pope, Serena Kauk, Matt Mueller, Randy Elliott, Cassie Sowers, Phil Stowell, Steve Lett, Daryl Golbek, Joe Kays, Gene Edwards, Tim Miller, Tamryn Cluck, Mark Dowler Pledge of Allegiance by all. Invocation by James Graham, Verdigris United Methodist Church. ACCEPTANCE OF AGENDA Motion by Mullenger, second by Lehman that the agenda for the regular CPWA meeting of March 03, 2008, be approved as written. 8 yes, Mullenger, Lehman, Robertson, Guthrie, Shallenburger, Webber, Chase, Watson. ITEMS UNFORESEEN AT THE TIME AGENDA WAS POSTED None CALL TO THE PUBLIC None CURRENT BUSINESS Motion by Mullenger, second by Lehman to approve the following consent items: (a) Minutes of Claremore Public Works Authority meeting on February 18, 2008, as printed. (b) All claims as printed. (c) Approve budget supplement for upgrading the electric distribution system and adding an additional Substation for the new Oklahoma Plaza Development - $586,985 - Leasehold improvements to new project number assignment. (Serena Kauk) (d) Approve budget supplement for purchase of an additional concrete control house for new Substation #5 for Oklahoma Plaza Development - $93,946 - Leasehold improvements to new project number assignment. (Serena Kauk) (e) Approve budget supplement for electrical engineering contract with Ledbetter, Corner and Associates for engineering design phase for Substation #5 - Oklahoma Plaza Development - $198,488 - Leasehold improvements to new project number assignment.
    [Show full text]
  • Motive L16h-Ac
    DATA SHEET MOTIVE L16H-AC MODEL L16H-AC with Bayonet Cap VOLTAGE 6 MATERIAL Polypropylene DIMENSIONS Inches (mm) BATTERY Deep-Cycle Flooded/Wet Lead-Acid Battery COLOR Maroon WATERING Single-Point Watering Kit *Polyon™ Case 6 VOLT PHYSICAL SPECIFICATIONS BCI MODEL NAME VOLTAGE CELL(S) TERMINAL TYPE G DIMENSIONS C INCHES (mm) WEIGHT H LBS. (kg) LENGTH WIDTH HEIGHT F 903 L16H-AC* 6 3 6 125 (57) 11.66 (296) 6.94 (176) 16.74 (425) ELECTRICAL SPECIFICATIONS CRANKING PERFORMANCE CAPACITY A MINUTES CAPACITY B AMP-HOURS (Ah) ENERGY (kWh) INTERNAL RESISTANCE (mΩ) SHORT CIRCUIT CURRENT (amps) C.C.A.D @ 0°F (-18°C) C.A.E @ 32°F (0°C) @ 25 Amps @ 75 Amps 5-Hr 10-Hr 20-Hr 100-Hr 100-Hr — — — — 935 245 357 400 435 483 2.89 CHARGING INSTRUCTIONS CHARGING TEMPERATURE COMPENSATION CHARGER VOLTAGE SETTINGS (AT 77°F/25°C) ADD SUBTRACT SYSTEM VOLTAGE 6V 12V 24V 36V 48V 0.005 volt per cell for every 1°C below 25°C 0.005 volt per cell for every 1°C above 25°C 0.0028 volt per cell for every 1°F below 77°F 0.0028 volt per cell for every 1°F above 77°F Bulk Charge 7.41 14.82 29.64 44.46 59.28 Float Charge 6.75 13.50 27.00 40.50 54.00 OPERATIONAL DATA Equalize Charge 8.10 16.20 32.40 48.60 64.80 OPERATING TEMPERATURE SELF DISCHARGE -4°F to 113°F (-20°C to +45°C). At 5 – 15% per month depending on storage Do not install or charge batteries in a sealed or non-ventilated compartment.
    [Show full text]
  • Los Angeles Transportation Transit History – South LA
    Los Angeles Transportation Transit History – South LA Matthew Barrett Metro Transportation Research Library, Archive & Public Records - metro.net/library Transportation Research Library & Archive • Originally the library of the Los • Transportation research library for Angeles Railway (1895-1945), employees, consultants, students, and intended to serve as both academics, other government public outreach and an agencies and the general public. employee resource. • Partner of the National • Repository of federally funded Transportation Library, member of transportation research starting Transportation Knowledge in 1971. Networks, and affiliate of the National Academies’ Transportation • Began computer cataloging into Research Board (TRB). OCLC’s World Catalog using Library of Congress Subject • Largest transit operator-owned Headings and honoring library, forth largest transportation interlibrary loan requests from library collection after U.C. outside institutions in 1978. Berkeley, Northwestern University and the U.S. DOT’s Volpe Center. • Archive of Los Angeles transit history from 1873-present. • Member of Getty/USC’s L.A. as Subject forum. Accessing the Library • Online: metro.net/library – Library Catalog librarycat.metro.net – Daily aggregated transportation news headlines: headlines.metroprimaryresources.info – Highlights of current and historical documents in our collection: metroprimaryresources.info – Photos: flickr.com/metrolibraryarchive – Film/Video: youtube/metrolibrarian – Social Media: facebook, twitter, tumblr, google+,
    [Show full text]
  • Would You Believe L.A.? (Revisited)
    WOULD YOU BELIEVE L.A.? (REVISITED) Downtown Walking Tours 35th Anniversary sponsored by: Major funding for the Los Angeles Conservancy’s programs is provided by the LaFetra Foundation and the Kenneth T. and Eileen L. Norris Foundation. Media Partners: Photos by Annie Laskey/L. A. Conservancy except as noted: Bradbury Building by Anthony Rubano, Orpheum Theatre and El Dorado Lofts by Adrian Scott Fine/L.A. Conservancy, Ace Hotel Downtown Los Angeles by Spencer Lowell, 433 Spring and Spring Arcade Building by Larry Underhill, Exchange Los Angeles from L.A. Conservancy archives. 523 West Sixth Street, Suite 826 © 2015 Los Angeles Conservancy Los Angeles, CA 90014 Based on Would You Believe L.A.? written by Paul Gleye, with assistance from John Miller, 213.623.2489 . laconservancy.org Roger Hatheway, Margaret Bach, and Lois Grillo, 1978. ince 1980, the Los Angeles Conservancy’s walking tours have introduced over 175,000 Angelenos and visitors alike to the rich history and culture of Sdowntown’s architecture. In celebration of the thirty-fifth anniversary of our walking tours, the Los Angeles Conservancy is revisiting our first-ever offering: a self-guided tour from 1978 called Would You Believe L.A.? The tour map included fifty-nine different sites in the historic core of downtown, providing the basis for the Conservancy’s first three docent-led tours. These three tours still take place regularly: Pershing Square Landmarks (now Historic Downtown), Broadway Historic Theatre District (now Broadway Theatre and Commercial District), and Palaces of Finance (now Downtown Renaissance). In the years since Would You Believe L.A.? was created and the first walking tours began, downtown Los Angeles has undergone many changes.
    [Show full text]
  • 2020 FORM 8453-C California E-File Return Authorization for Corporations
    Date Accepted DO NOT MAIL THIS FORM TO THE FTB TAXABLE YEAR FORM 2020 California e-file Return Authorization for Corporations 8453-C Corporation name California Corporation No., CA SOS file no., or FEIN Part I Tax Return Information (whole dollars only) 1 Total income (Form 100, line 9; Form 100S, line 8; Form 100W, line 9 or Form 100X, line 6) .............................. 1 2 Taxable income (Form 100, line 22; Form 100S, line 20; Form 100W, line 22 or Form 100X, line 10) ........................ 2 3 Total tax (Form 100, line 30; Form 100S, line 29; Form 100W, line 30 or Form 100X, line 18) ............................. 3 4 Tax due (Form 100, line 39; Form 100S, line 38; Form 100W, line 36 or Form 100X, line 20) .............................. 4 5 Overpayment (Form 100, line 40; Form 100S, line 39; Form 100W, line 37 or Form 100X, line 27) ......................... 5 Part II Settle the Account Electronically for Taxable Year 2020 6 Direct deposit of refund (For Forms 100, 100S, and 100W only.) 7 Electronic funds withdrawal 7a Amount 7b Withdrawal date (mm/dd/yyyy) Part III Schedule of Estimated Tax Payments for Taxable Year 2021 (These are NOT installment payments for the current amount the corporation owes.) First Payment Second Payment Third Payment Fourth Payment 8 Amount 9 Withdrawal Date Part IV Banking Information (Have you verified the corporation’s banking information?) 10 Routing number 11 Account number 12 Type of account: Checking Savings Part V Declaration of Officer I authorize the corporate account to be settled as designated in Part II. If I check Part IIll, Box 6, I declare that the bank account specified in Part IV for the direct deposit refund agrees with the authorization stated on my return.
    [Show full text]
  • The Neighborly Substation the Neighborly Substation Electricity, Zoning, and Urban Design
    MANHATTAN INSTITUTE CENTER FORTHE RETHINKING DEVELOPMENT NEIGHBORLY SUBstATION Hope Cohen 2008 er B ecem D THE NEIGHBORLY SUBstATION THE NEIGHBORLY SUBstATION Electricity, Zoning, and Urban Design Hope Cohen Deputy Director Center for Rethinking Development Manhattan Institute In 1879, the remarkable thing about Edison’s new lightbulb was that it didn’t burst into flames as soon as it was lit. That disposed of the first key problem of the electrical age: how to confine and tame electricity to the point where it could be usefully integrated into offices, homes, and every corner of daily life. Edison then designed and built six twenty-seven-ton, hundred-kilowatt “Jumbo” Engine-Driven Dynamos, deployed them in lower Manhattan, and the rest is history. “We will make electric light so cheap,” Edison promised, “that only the rich will be able to burn candles.” There was more taming to come first, however. An electrical fire caused by faulty wiring seriously FOREWORD damaged the library at one of Edison’s early installations—J. P. Morgan’s Madison Avenue brownstone. Fast-forward to the massive blackout of August 2003. Batteries and standby generators kicked in to keep trading alive on the New York Stock Exchange and the NASDAQ. But the Amex failed to open—it had backup generators for the trading-floor computers but depended on Consolidated Edison to cool them, so that they wouldn’t melt into puddles of silicon. Banks kept their ATM-control computers running at their central offices, but most of the ATMs themselves went dead. Cell-phone service deteriorated fast, because soaring call volumes quickly drained the cell- tower backup batteries.
    [Show full text]
  • Transmission Line General Requirements Including Typical Overhead Line Structures
    Transmission Line General Requirements Including Typical Overhead Line Structures Document Number: 1-03-FR-09 VERSION 1.0 June 2018 This functional requirements document is in line with the organisation's 1-03-ACS- 01 Transmission Line Conductors, 1-03-ACS-02 Transmission Line Insulators, 1-03- ACS-03 Transmission Line Earthing, 1-03-ACS-04 Pole Structures and Foundations, 1-03-ACS-05 Lattice Structures and Foundations Asset Class Strategies. Intellectual property rights and disclaimer This document is published in accordance with the requirements of Chapter 5 of the National Electricity Rules (NER). It is a functional requirement document only and is not intended to contain any comprehensive or project specific designs, specifications or other information. Whilst care has been taken to ensure that the contents of this document are accurate, ElectraNet Pty Limited (ElectraNet) does not represent or warrant that the information contained in this document is complete, accurate or adequate in any respect. ElectraNet reserves the right to amend this document at any time without notice to any person. The user must carefully examine and check the information contained in this document and carry out its own independent technical and legal assessment and due diligence to ensure that the information in this document is used appropriately and that in doing so, all requirements (including requirements at law) are satisfied. For the avoidance of any doubt, the publication of this document does not limit or detract from the user’s obligations at law, and does not and will not give rise to any claim (including, without limitation, in contract, tort, equity, under statute or otherwise) against ElectraNet or any of its ‘Associates’ (as that term is defined in Corporations Act 2001 (Cth)).
    [Show full text]