LCOV - code coverage report
Current view: top level - EnergyPlus - EnergyPlus.hh (source / functions) Coverage Total Hit
Test: lcov.output.filtered Lines: 100.0 % 2 2
Test Date: 2025-05-22 16:09:37 Functions: 100.0 % 1 1

            Line data    Source code
       1              : // EnergyPlus, Copyright (c) 1996-2025, The Board of Trustees of the University of Illinois,
       2              : // The Regents of the University of California, through Lawrence Berkeley National Laboratory
       3              : // (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
       4              : // National Laboratory, managed by UT-Battelle, Alliance for Sustainable Energy, LLC, and other
       5              : // contributors. All rights reserved.
       6              : //
       7              : // NOTICE: This Software was developed under funding from the U.S. Department of Energy and the
       8              : // U.S. Government consequently retains certain rights. As such, the U.S. Government has been
       9              : // granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable,
      10              : // worldwide license in the Software to reproduce, distribute copies to the public, prepare
      11              : // derivative works, and perform publicly and display publicly, and to permit others to do so.
      12              : //
      13              : // Redistribution and use in source and binary forms, with or without modification, are permitted
      14              : // provided that the following conditions are met:
      15              : //
      16              : // (1) Redistributions of source code must retain the above copyright notice, this list of
      17              : //     conditions and the following disclaimer.
      18              : //
      19              : // (2) Redistributions in binary form must reproduce the above copyright notice, this list of
      20              : //     conditions and the following disclaimer in the documentation and/or other materials
      21              : //     provided with the distribution.
      22              : //
      23              : // (3) Neither the name of the University of California, Lawrence Berkeley National Laboratory,
      24              : //     the University of Illinois, U.S. Dept. of Energy nor the names of its contributors may be
      25              : //     used to endorse or promote products derived from this software without specific prior
      26              : //     written permission.
      27              : //
      28              : // (4) Use of EnergyPlus(TM) Name. If Licensee (i) distributes the software in stand-alone form
      29              : //     without changes from the version obtained under this License, or (ii) Licensee makes a
      30              : //     reference solely to the software portion of its product, Licensee must refer to the
      31              : //     software as "EnergyPlus version X" software, where "X" is the version number Licensee
      32              : //     obtained under this License and may not use a different name for the software. Except as
      33              : //     specifically required in this Section (4), Licensee shall not use in a company name, a
      34              : //     product name, in advertising, publicity, or other promotional activities any name, trade
      35              : //     name, trademark, logo, or other designation of "EnergyPlus", "E+", "e+" or confusingly
      36              : //     similar designation, without the U.S. Department of Energy's prior written consent.
      37              : //
      38              : // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
      39              : // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
      40              : // AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
      41              : // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
      42              : // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
      43              : // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
      44              : // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
      45              : // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
      46              : // POSSIBILITY OF SUCH DAMAGE.
      47              : 
      48              : #ifndef EnergyPlus_hh_INCLUDED
      49              : #define EnergyPlus_hh_INCLUDED
      50              : 
      51              : // EnergyPlus Project-Wide Header File
      52              : //
      53              : // Language: C++
      54              : 
      55              : // C++ Headers
      56              : #include <cassert>
      57              : #include <cstdint> // C++11
      58              : #include <stdexcept>
      59              : 
      60              : #include <EnergyPlus/api/TypeDefs.h>
      61              : 
      62              : namespace EnergyPlus {
      63              : class FatalError : public std::runtime_error
      64              : {
      65              : public:
      66          119 :     FatalError(std::string const &msg) : runtime_error(msg)
      67              :     {
      68          119 :     }
      69              : };
      70              : } // namespace EnergyPlus
      71              : 
      72              : // macro to guarantee array sizing in debug builds
      73              : #define EP_SIZE_CHECK(array, min_size)                                                                                                               \
      74              :     assert(min_size >= 0);                                                                                                                           \
      75              :     assert(array.size() >= (size_t)min_size)
      76              : 
      77              : typedef std::int32_t Int32;
      78              : typedef std::int64_t Int64;
      79              : 
      80              : // ObjexxFCL
      81              : #include <ObjexxFCL/Array1.fwd.hh>
      82              : #include <ObjexxFCL/Array1A.fwd.hh>
      83              : #include <ObjexxFCL/Array1D.fwd.hh>
      84              : #include <ObjexxFCL/Array1S.fwd.hh>
      85              : #include <ObjexxFCL/Array2.fwd.hh>
      86              : #include <ObjexxFCL/Array2A.fwd.hh>
      87              : #include <ObjexxFCL/Array2D.fwd.hh>
      88              : #include <ObjexxFCL/Array2S.fwd.hh>
      89              : #include <ObjexxFCL/Array3D.fwd.hh>
      90              : #include <ObjexxFCL/Array4D.fwd.hh>
      91              : #include <ObjexxFCL/MArray1.fwd.hh>
      92              : #include <ObjexxFCL/Omit.hh>
      93              : #include <ObjexxFCL/Reference.fwd.hh>
      94              : #include <ObjexxFCL/Vector2.fwd.hh>
      95              : #include <ObjexxFCL/Vector3.fwd.hh>
      96              : #include <ObjexxFCL/Vector4.fwd.hh>
      97              : 
      98              : using ObjexxFCL::_;
      99              : 
     100              : using ObjexxFCL::Array1;
     101              : using ObjexxFCL::Array1_int;
     102              : using ObjexxFCL::Array1_string;
     103              : using ObjexxFCL::Array1A;
     104              : using ObjexxFCL::Array1A_int;
     105              : using ObjexxFCL::Array1D;
     106              : using ObjexxFCL::Array1D_bool;
     107              : using ObjexxFCL::Array1D_double;
     108              : using ObjexxFCL::Array1D_int;
     109              : using ObjexxFCL::Array1D_string;
     110              : using ObjexxFCL::Array1S;
     111              : using ObjexxFCL::Array1S_bool;
     112              : using ObjexxFCL::Array1S_int;
     113              : using ObjexxFCL::Array1S_string;
     114              : using ObjexxFCL::Array2;
     115              : using ObjexxFCL::Array2_int;
     116              : using ObjexxFCL::Array2A;
     117              : using ObjexxFCL::Array2A_bool;
     118              : using ObjexxFCL::Array2A_int;
     119              : using ObjexxFCL::Array2D;
     120              : using ObjexxFCL::Array2D_bool;
     121              : using ObjexxFCL::Array2D_int;
     122              : using ObjexxFCL::Array2D_string;
     123              : using ObjexxFCL::Array2S;
     124              : using ObjexxFCL::Array2S_bool;
     125              : using ObjexxFCL::Array2S_int;
     126              : using ObjexxFCL::Array2S_string;
     127              : using ObjexxFCL::Array3D;
     128              : using ObjexxFCL::Array3D_bool;
     129              : using ObjexxFCL::Array3D_int;
     130              : using ObjexxFCL::Array4D;
     131              : using ObjexxFCL::Array4D_int;
     132              : using ObjexxFCL::MArray1;
     133              : using ObjexxFCL::Reference;
     134              : using ObjexxFCL::Vector2;
     135              : using ObjexxFCL::Vector3;
     136              : using ObjexxFCL::Vector4;
     137              : 
     138              : // ObjexxFCL Functions
     139              : #include <ObjexxFCL/Array.functions.hh>
     140              : // #include <ObjexxFCL/Fmath.hh>
     141              : #include <ObjexxFCL/environment.hh>
     142              : #include <ObjexxFCL/floops.hh>
     143              : #include <ObjexxFCL/numeric.hh>
     144              : #include <ObjexxFCL/random.hh>
     145              : #include <ObjexxFCL/string.functions.hh>
     146              : #include <ObjexxFCL/time.hh>
     147              : 
     148              : using ObjexxFCL::CEILING;
     149              : using ObjexxFCL::equali;
     150              : using ObjexxFCL::floop_end;
     151              : using ObjexxFCL::get_environment_variable;
     152              : using ObjexxFCL::has;
     153              : using ObjexxFCL::has_any_of;
     154              : using ObjexxFCL::has_prefix;
     155              : using ObjexxFCL::has_prefixi;
     156              : using ObjexxFCL::hasi;
     157              : using ObjexxFCL::HUGE_;
     158              : using ObjexxFCL::index;
     159              : using ObjexxFCL::is_any_of;
     160              : using ObjexxFCL::is_blank;
     161              : using ObjexxFCL::len;
     162              : using ObjexxFCL::len_trim;
     163              : using ObjexxFCL::lessthani;
     164              : using ObjexxFCL::ljustified;
     165              : using ObjexxFCL::max;
     166              : using ObjexxFCL::min;
     167              : using ObjexxFCL::mod;
     168              : using ObjexxFCL::nint;
     169              : using ObjexxFCL::nint64;
     170              : using ObjexxFCL::not_blank;
     171              : using ObjexxFCL::pare;
     172              : using ObjexxFCL::pow_2;
     173              : using ObjexxFCL::pow_3;
     174              : using ObjexxFCL::pow_4;
     175              : using ObjexxFCL::pow_5;
     176              : using ObjexxFCL::pow_6;
     177              : using ObjexxFCL::pow_7;
     178              : using ObjexxFCL::RANDOM_NUMBER;
     179              : using ObjexxFCL::RANDOM_SEED;
     180              : using ObjexxFCL::rjustified;
     181              : using ObjexxFCL::root_4;
     182              : using ObjexxFCL::rstrip;
     183              : using ObjexxFCL::scan;
     184              : using ObjexxFCL::sign;
     185              : using ObjexxFCL::sized;
     186              : using ObjexxFCL::square;
     187              : using ObjexxFCL::strip;
     188              : using ObjexxFCL::stripped;
     189              : using ObjexxFCL::SYSTEM_CLOCK;
     190              : using ObjexxFCL::TINY;
     191              : using ObjexxFCL::trim;
     192              : using ObjexxFCL::trimmed;
     193              : using ObjexxFCL::uppercase;
     194              : using ObjexxFCL::uppercased;
     195              : 
     196              : #endif
        

Generated by: LCOV version 2.0-1