Develop Biology
The language of life
Line.h
Go to the documentation of this file.
1/*
2 * This file is a part of the Biology project by eons LLC.
3 * Biology (aka Develop Biology) is a framework for approaching software
4 * development from a natural sciences perspective.
5 *
6 * Copyright (C) 2022 Séon O'Shannon & eons LLC
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Affero General Public License as
10 * published by the Free Software Foundation, either version 3 of the
11 * License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Affero General Public License for more details.
17 *
18 * You should have received a copy of the GNU Affero General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22#pragma once
23
24#include "Linear.h"
25#include "Arrangement.h"
26
27namespace bio {
28namespace physical {
29
37class Line :
38 public Arrangement< Linear >
39{
40public:
41
45 Line(Index expectedSize = 2);
46
50 virtual ~Line();
51
57 virtual Index SeekToName(Name name);
58
64 virtual Index SeekToId(StandardDimension id);
65
71 ByteStream Access(const Index index);
72
78 const ByteStream Access(const Index index) const;
79
86 virtual bool AreEqual(
87 Index internal,
88 const ByteStream external
89 ) const;
90
97
103 virtual const Identifiable< StandardDimension >* LinearAccess(Index index) const;
104};
105
106} //physical namespace
107} //bio namespace
virtual Index SeekToId(StandardDimension id)
Definition: Line.cpp:83
virtual ~Line()
Definition: Line.cpp:35
Line(Index expectedSize=2)
Definition: Line.cpp:28
virtual Identifiable< StandardDimension > * LinearAccess(Index index)
Definition: Line.cpp:56
virtual bool AreEqual(Index internal, const ByteStream external) const
Definition: Line.cpp:50
virtual Index SeekToName(Name name)
Definition: Line.cpp:66
ByteStream Access(const Index index)
Definition: Line.cpp:40
Definition: Cell.h:31
uint32_t Index
Definition: Types.h:57
const char * Name
Definition: Types.h:46