blob: 1ce524cdfabd3120b1738aff2b5dd4bbb9651fb8 (
plain)
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
|
// file : CIDLC/InterfaceEmitter.cpp
// author : Jeff Parsons <j.parsons@vanderbilt.edu>
// cvs-id : $Id$
#include "InterfaceEmitter.hpp"
InterfaceEmitter::InterfaceEmitter (Context& c)
: EmitterBase (c)
{
}
void
InterfaceEmitter::traverse (UnconstrainedInterface& i)
{
if (add (i))
{
Traversal::UnconstrainedInterface::traverse (i);
}
}
bool
InterfaceEmitter::add (UnconstrainedInterface& i)
{
return interfaces_.insert (&i).second;
}
|