File: fgalist.cc

package info (click to toggle)
ftpgrab 0.1.5-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 444 kB
  • sloc: cpp: 2,906; makefile: 103
file content (28 lines) | stat: -rw-r--r-- 487 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// fgalist.cc

#include "fgalist.h"

// Action interface
#ifndef _FGACTIONI_H
#include "fgactioni.h"
#endif

void
FGActionList::DoActions(void) const
{
  std::vector<FGActionInterface*>::const_iterator iActions;

  for (iActions = begin(); iActions != end(); iActions++) {
    (*iActions)->Do();
  }
}

void
FGActionList::FreeResources(void)
{
  std::vector<FGActionInterface*>::iterator iActions;

  for (iActions = begin(); iActions != end(); iActions++) {
    delete *iActions;
  }
}