summaryrefslogtreecommitdiff
path: root/cad/plugins/CoNTub/src/AtomList.h
blob: 421b4a31f457dcb877cc27b1ffb789b767f6bf63 (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
// Copyright 2006-2007 Nanorex, Inc.  See LICENSE file for details. 
/* $Id$ */

#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