Polaris: RegistryElem.cc Source File

RegistryElem.cc

Go to the documentation of this file.
00001 ///
00002 /// \file RegistryElem.cc
00003 ///
00004 #ifdef POLARIS_GNU_PRAGMAS
00005 #pragma implementation
00006 #endif
00007 ///
00008 #include "RegistryElem.h"
00009 
00010 RegistryElem::~RegistryElem()
00011 {
00012 }
00013 int RegistryElem::size()
00014 {
00015     return _size;
00016 }
00017 void RegistryElem::size(int s)
00018 {
00019     _size = s;
00020 }
00021 Database<void *, IntElem> *
00022 RegistryElem::list() 
00023 {
00024     return _list;
00025 }
00026 void 
00027 RegistryElem::list(Database<void *, IntElem> *l)
00028 {
00029     _list = l;
00030 }
00031 void RegistryElem::print(ostream &o) const
00032 {
00033     o << "RegistryElem(size = " << _size << " ptr = " << _list << ")";
00034 }
00035 Listable *RegistryElem::listable_clone() const
00036 {
00037     return new RegistryElem(*this);
00038 }
00039 
00040 RegistryElem::RegistryElem(int size, Database<void *, IntElem> *list)
00041 {
00042     _size = size;
00043     _list = list;
00044 }
 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:06:06 2005