AnimatLab
2
Test
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
DoubleList.h
Go to the documentation of this file.
1
7
#pragma once
8
9
namespace
IntegrateFireSim
10
{
11
17
namespace
Utilities
18
{
25
class
DoubleList
26
{
27
public
:
28
35
DoubleList
(
void
) {cursor=head=tail=0;}
36
43
~DoubleList
(
void
) {
Release
();}
44
45
int
AddHead
(
double
d);
// add to head of list
46
int
AddTail
(
double
d);
// add to tail of list
47
int
Del
(
void
);
48
void
Release
(
void
);
49
double
*
Iterate
(
void
);
50
59
double
*
First
(
void
) {
if
(head==0)
return
0;
else
return
&head->data;}
60
69
bool
IsEmpty
() {
return
head==0;}
70
79
double
GetHead
() {
return
head->data;}
// list must not be empty
80
81
double
RemoveHead
();
// list must not be empty
82
83
private
:
84
struct
listelem {
85
double
data;
86
listelem* next;
87
};
89
listelem* head;
// pointer to head of list
91
listelem* tail;
93
listelem* cursor;
94
};
95
96
}
//Utilities
97
}
//IntegrateFireSim
IntegrateFireSim::Utilities::DoubleList::Del
int Del(void)
Deletes this object.
Definition:
DoubleList.cpp:73
IntegrateFireSim::Utilities::DoubleList::Iterate
double * Iterate(void)
Gets the iterate.
Definition:
DoubleList.cpp:108
IntegrateFireSim::Utilities::DoubleList::First
double * First(void)
Gets the first in the list.
Definition:
DoubleList.h:59
IntegrateFireSim::Utilities::DoubleList
List of doubles.
Definition:
DoubleList.h:25
IntegrateFireSim::Utilities::DoubleList::~DoubleList
~DoubleList(void)
Finaliser.
Definition:
DoubleList.h:43
IntegrateFireSim::Utilities::DoubleList::DoubleList
DoubleList(void)
Default constructor.
Definition:
DoubleList.h:35
IntegrateFireSim::Utilities::DoubleList::AddTail
int AddTail(double d)
Adds a tail.
Definition:
DoubleList.cpp:48
IntegrateFireSim::Utilities::DoubleList::IsEmpty
bool IsEmpty()
Query if this object is empty.
Definition:
DoubleList.h:69
IntegrateFireSim::Utilities::DoubleList::RemoveHead
double RemoveHead()
Removes the head.
Definition:
DoubleList.cpp:128
IntegrateFireSim::Utilities::DoubleList::AddHead
int AddHead(double d)
Adds a head.
Definition:
DoubleList.cpp:23
IntegrateFireSim::Utilities::DoubleList::Release
void Release(void)
Releases this object.
Definition:
DoubleList.cpp:90
IntegrateFireSim::Utilities::DoubleList::GetHead
double GetHead()
Gets the head object from this queue.
Definition:
DoubleList.h:79
IntegrateFireSim
Contains all of the classes to implement a basic integrate and fire neural model. ...
Definition:
CaActivation.cpp:18
Libraries
IntegrateFireSim
DoubleList.h
Generated on Tue Sep 29 2015 07:07:14 for AnimatLab by
1.8.10