Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Link.h
1/*
2 * HalLink.h
3 *
4 * Created on: 30-04-2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HALLINK_H_
10#define HALLINK_H_
11#include "Array.h"
12
13#include <TObject.h>
14
21namespace Hal {
22 class Link : public TObject {
23 Int_t fActiveSize;
24 Int_t fSize;
25 Int_t* fLinks; // [fActiveSize]
26 public:
31 Link(Int_t i = 1);
32 Link(const Link& link);
38 Link operator=(const Link& link);
44 void SetNextLink(Int_t i);
50 void SetLink(Int_t index, Int_t val) { fLinks[index] = val; }
51 void ExpandFast(Int_t size);
52 void SetLinkAndExpand(Int_t index, Int_t val);
59 inline Int_t GetLink(Int_t index) const { return fLinks[index]; };
64 inline Int_t GetLinkSize() const { return fActiveSize; };
65 virtual void Clear(Option_t* opt = "");
66 void ClearLinks();
67 virtual ~Link();
68 ClassDef(Link, 1)
69 };
70} // namespace Hal
71
72#endif /* HALLINK_H_ */