atrri

Refractive indices varying with wavelength
git clone git://git.meso-star.fr/atrri.git
Log | Files | Refs | README | LICENSE

atrri_c.h (1287B)


      1 /* Copyright (C) 2022, 2023 |Méso|Star> (contact@meso-star.com)
      2  * Copyright (C) 2021 Centre National de la Recherche Scientifique
      3  *
      4  * This program is free software: you can redistribute it and/or modify
      5  * it under the terms of the GNU General Public License as published by
      6  * the Free Software Foundation, either version 3 of the License, or
      7  * (at your option) any later version.
      8  *
      9  * This program is distributed in the hope that it will be useful,
     10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     12  * GNU General Public License for more details.
     13  *
     14  * You should have received a copy of the GNU General Public License
     15  * along with this program. If not, see <http://www.gnu.org/licenses/>. */
     16 
     17 #ifndef ATRRI_C_H
     18 #define ATRRI_C_H
     19 
     20 #include "atrri.h"
     21 
     22 #include <rsys/dynamic_array.h>
     23 #include <rsys/logger.h>
     24 #include <rsys/ref_count.h>
     25 
     26 #define DARRAY_NAME refractive_id
     27 #define DARRAY_DATA struct atrri_refractive_index
     28 #include <rsys/dynamic_array.h>
     29 
     30 struct mem_allocator;
     31 
     32 struct atrri {
     33   struct darray_refractive_id refract_ids;
     34 
     35   struct mem_allocator* allocator;
     36   struct logger* logger;
     37   struct logger logger__; /* Default logger */
     38   int verbose;
     39   ref_T ref;
     40 };
     41 
     42 #endif /* ATRRI_C_H */