00001 /* 00002 * Float64Max.hpp 00003 * 00004 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. 00005 * 00006 * Oracle is a registered trademarks of Oracle Corporation and/or its 00007 * affiliates. 00008 * 00009 * This software is the confidential and proprietary information of Oracle 00010 * Corporation. You shall not disclose such confidential and proprietary 00011 * information and shall use it only in accordance with the terms of the 00012 * license agreement you entered into with Oracle. 00013 * 00014 * This notice may not be removed or altered. 00015 */ 00016 #ifndef COH_FLOAT64_MAX_HPP 00017 #define COH_FLOAT64_MAX_HPP 00018 00019 #include "coherence/lang.ns" 00020 00021 #include "coherence/util/aggregator/AbstractFloat64Aggregator.hpp" 00022 #include "coherence/util/ValueExtractor.hpp" 00023 00024 COH_OPEN_NAMESPACE3(coherence,util,aggregator) 00025 00026 00027 /** 00028 * Calculates a maximum of numeric values extracted from a set of entries in a 00029 * Map. All the extracted Number objects will be treated as 00030 * <tt>float64_t</tt> values. 00031 00032 * @author djl 2008.05.09 00033 */ 00034 class COH_EXPORT Float64Max 00035 : public class_spec<Float64Max, 00036 extends<AbstractFloat64Aggregator> > 00037 { 00038 friend class factory<Float64Max>; 00039 00040 // ----- constructors --------------------------------------------------- 00041 00042 protected: 00043 /** 00044 * Default constructor (necessary for the PortableObject interface). 00045 */ 00046 Float64Max(); 00047 00048 /** 00049 * Construct a Float64Max aggregator. 00050 * 00051 * @param vExtractor the extractor that provides a value in the form 00052 * of any object that is a Number 00053 */ 00054 Float64Max(ValueExtractor::View vExtractor); 00055 00056 00057 // ----- AbstractAggregator Interface ---------------------------------- 00058 00059 protected: 00060 /** 00061 * {@inheritDoc} 00062 */ 00063 virtual void init(bool fFinal); 00064 00065 /** 00066 * {@inheritDoc} 00067 */ 00068 virtual void process(Object::View v, bool fFinal); 00069 }; 00070 00071 COH_CLOSE_NAMESPACE3 00072 00073 #endif // COH_FLOAT64_MAX_HPP