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

#include "Atomo.h"

class AtomList
{
    int _size, capacity;
    Atomo *contents;
public:
    AtomList(void);
    AtomList(int n);
    ~AtomList(void);
    Atomo *get(int i);
    AtomList neighborhood(Atomo *);
    void add(Atomo a);
    int size(void);
    void remove(int);
    void set(int, Atomo);
    int contains(Atomo);
};

#endif