File: LocalVariableRecord.C

package info (click to toggle)
guavac 1.0-5
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 2,716 kB
  • ctags: 2,357
  • sloc: cpp: 19,765; yacc: 1,629; makefile: 492; lex: 348; ansic: 284; sh: 280
file content (55 lines) | stat: -rw-r--r-- 1,217 bytes parent folder | download | duplicates (2)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright (c) 1997  David Engberg  All rights reserved
// $Id: LocalVariableRecord.C,v 1.1 1997/11/10 00:48:06 geppetto Exp $
#pragma implementation
#include "LocalVariableRecord.h"

//
//  Method name : CLocalVariableRecord
//  Description : Default constructor.  Don't use directly, just required
//    for templates.
//
CLocalVariableRecord::CLocalVariableRecord()
  : fDeclaration(),
    fIndex(0)
{
}

//
//  Method name : CLocalVariableRecord
//  Description : Constructor.
//
CLocalVariableRecord::CLocalVariableRecord(const CVariableDeclaration& decl,
					   VariableIndex index)
  : fDeclaration(decl),
    fIndex(index)
{
}

//
//  Method name : CLocalVariableRecord
//  Description : Copy constructor.
//
CLocalVariableRecord::CLocalVariableRecord(const CLocalVariableRecord& source)
  : fDeclaration(source.fDeclaration),
    fIndex(source.fIndex)
{
}

//
//  Method name : ~CLocalVariableRecord
//  Description : Destructor
//
CLocalVariableRecord::~CLocalVariableRecord()
{
}

//
//  Method name : SetVariableIndex
//  Description : Specifes the index of this local variable in the list for
//    the method.
//
void
CLocalVariableRecord::SetVariableIndex(VariableIndex index)
{
  fIndex = index;
}