#ifndef TRIM_REFRACTION_04_23_2008 #define TRIM_REFRACTION_04_23_2008 /** @file TrimRefrac.h @author Brian Magill @datecreated 04/23/2008 $Date:$ $Revision:$ @copyright (©) Copyright 2006 by GATS Inc. 11864 Canon Blvd., Suite 101, Newport News, VA 23606 All Rights Reserved. No part of this software or publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise without the prior written permission of GATS Inc. @brief: Trims the first N values of the solar extent and corresponding time */ //---------------------------------------------------------------------- // #include class TrimRefrac { private: int trimSize; public: TrimRefrac(int size = 0): trimSize(size) { } TrimRefrac(TrimRefrac const& rhs): trimSize(rhs.trimSize) { } TrimRefrac& operator = (TrimRefrac const& rhs ) { if (this == &rhs) return *this; trimSize = rhs.trimSize; return *this; }; ~TrimRefrac() { } int getTrimSize() { return trimSize; } /// /// Removes array elements with missing values /// /// @param startTime - first allowable time /// /// @param endTime - last allowable time /// /// @param RefracTime - time array with "missing value" data removed /// /// @param RefracExtent - solar extent array with "missing value" data removed /// void operator()(std::valarray const &InTime, std::valarray const &InValue, std::valarray &TruncTime, std::valarray &TruncValue) const; }; #endif