summaryrefslogtreecommitdiff
path: root/cad/src/experimental/CoNTub/C++/TabPe.h
blob: e276328ea218332b07e965e014ae9c1a4075d9fc (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
27
// Copyright 2006-2007 Nanorex, Inc.  See LICENSE file for details. 
#ifndef TABPE_H_INCLUDED
#define TABPE_H_INCLUDED

#include "String.h"

/*
 * There is never a need for more than one periodic table in any
 * program run. The periodicTable() function provides a pointer to
 * an instance of the periodic table, and that's the right thing
 * to use.
 */

class tabPe
{
    String *simbolo;
    double *sz, *en2, *en3;
 public:
    double *en1;
    tabPe();  // only to be called from tabPe_getInstance()
    String getSimbolo (int t);
    double getSize (int t);
};

tabPe *periodicTable(void);

#endif