Ignore:
Timestamp:
01/16/13 16:45:43 (11 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-4770

Ready for Test: Yes

Interface Changes: Yes/No?

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Redefined Locator and its derived classes as template class.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/BufferedBisectionLocator.h

    r2730 r2731  
    2222 * @author TakeshiNakazato
    2323 */
    24 class BufferedBisectionLocator : public Locator {
     24template <class T> class BufferedBisectionLocator : public Locator<T> {
    2525public:
    2626  // Default constructor.
     
    3232  // @param[in] copystorage whether allocate internal memory or not.
    3333  // @see Locator::set()
    34   BufferedBisectionLocator(double *v, unsigned int n, bool copystorage=true);
     34  BufferedBisectionLocator(T *v, unsigned int n, bool copystorage=true);
    3535
    3636  // Destructor.
     
    4141  // @return location as an index j.
    4242  // @see Locator::locate()
    43   unsigned int locate(double x);
     43  unsigned int locate(T x);
    4444private:
    4545
     
    4949
    5050}
     51
     52#include "BufferedBisectionLocator.tcc"
     53
    5154#endif
Note: See TracChangeset for help on using the changeset viewer.