IntegrationManagerExpert.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2006 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Classes/Pulsar/IntegrationManagerExpert.h
10 
11 #ifndef __Pulsar_IntegrationManagerExpert_h
12 #define __Pulsar_IntegrationManagerExpert_h
13 
14 #include "Pulsar/IntegrationManager.h"
15 
16 namespace Pulsar {
17 
19 
31  class IntegrationManager::Expert : public Reference::Able {
32 
33  public:
34 
35  Expert (IntegrationManager* inst)
36  { instance = inst; }
37 
39  void append (const IntegrationManager* more_subints)
40  { instance->append (more_subints); }
41 
43  void manage (IntegrationManager* more_subints)
44  { instance->manage (more_subints); }
45 
47  void manage (Integration* integration)
48  { instance->manage (integration); }
49 
51  void insert (unsigned isubint, Integration* integration)
52  { instance->insert (isubint, integration); }
53 
55  template<class StrictWeakOrdering>
56  void sort (StrictWeakOrdering comp)
57  { instance->sort (comp); }
58 
59  void sort ()
60  { instance->sort (Pulsar::temporal_order); }
61 
63  unsigned get_size () const
64  { return instance->subints.size(); }
65 
66  private:
67 
70 
71  };
72 
73 }
74 
75 #endif
void append(const IntegrationManager *more_subints)
Append new_Integration copies of Integration objects to instance.
Definition: IntegrationManagerExpert.h:49
void sort(StrictWeakOrdering comp)
Sort the Integrations according to the specified order.
Definition: IntegrationManagerExpert.h:66
IntegrationManager()
null constructor
Definition: IntegrationManager.C:16
void insert(unsigned isubint, Integration *integration)
Insert the Integration instance into the specified location.
Definition: IntegrationManagerExpert.h:61
Array of Profiles integrated over the same time interval.
Definition: Integration.h:37
void manage(IntegrationManager *more_subints)
Append use_Integration modified Integration objects to instance.
Definition: IntegrationManagerExpert.h:53
unsigned get_size() const
Return the size of the subints vector.
Definition: IntegrationManagerExpert.h:73
Manages a vector of Integration instances.
Definition: IntegrationManager.h:33
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17