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/BisectionLocator.h

    r2730 r2731  
    2121 * @author TakeshiNakazato
    2222 */
    23 class BisectionLocator : public Locator {
     23template <class T> class BisectionLocator : public Locator<T> {
    2424public:
    2525  // Default constructor.
     
    3131  // @param[in] copystorage whether allocate internal memory or not.
    3232  // @see Locator::set()
    33   BisectionLocator(double *v, unsigned int n, bool copystorage=true);
     33  BisectionLocator(T *v, unsigned int n, bool copystorage=true);
    3434
    3535  // Destructor.
     
    4040  // @return location as an index j.
    4141  // @see Locator::locate()
    42   unsigned int locate(double x);
     42  unsigned int locate(T x);
    4343};
    4444
    4545}
     46
     47#include "BisectionLocator.tcc"
     48
    4649#endif
Note: See TracChangeset for help on using the changeset viewer.