Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Sequence Class Reference

Class for transforming the .seq file into an intern representation. More...

#include <sequence.hpp>

List of all members.

Public Member Functions

 Sequence ()
 Constructor.
 Sequence (const char *fname)
 Constructor.
 ~Sequence ()
 Destructor.
void loadFromFile (const char *fname)
 Loads a sequence from a file.
void setTaskId (int i, int value)
 Sets a task id at the given position in a sequence.
int getTaskId (int i)
 Gets a task id at the given position in a sequence.
int & operator[] (int)
 Gets a task id at the given position in a sequence.
int size ()
 Gets the size/length of the sequence.

Protected Attributes

vector< int > idList


Detailed Description

Class for transforming the .seq file into an intern representation.

Definition at line 31 of file sequence.hpp.


Constructor & Destructor Documentation

Sequence::Sequence  ) 
 

Constructor.

Definition at line 29 of file sequence.cpp.

Sequence::Sequence const char *  fname  ) 
 

Constructor.

Parameters:
fname file name of the sequence file which will be loaded
Definition at line 37 of file sequence.cpp.

References loadFromFile().

Here is the call graph for this function:

Sequence::~Sequence  ) 
 

Destructor.

Definition at line 44 of file sequence.cpp.


Member Function Documentation

int Sequence::getTaskId int  i  ) 
 

Gets a task id at the given position in a sequence.

Parameters:
i index of the task id
Returns:
task id
Definition at line 84 of file sequence.cpp.

References idList.

void Sequence::loadFromFile const char *  fname  ) 
 

Loads a sequence from a file.

Parameters:
fname file name of the sequence file which will be loaded
Definition at line 52 of file sequence.cpp.

References PtfCore::getMessageLog(), Singleton< PtfCore >::getSingleton(), and idList.

Referenced by Sequence().

Here is the call graph for this function:

int & Sequence::operator[] int  i  ) 
 

Gets a task id at the given position in a sequence.

Parameters:
i index of the task id
Returns:
task id
Definition at line 93 of file sequence.cpp.

References idList.

void Sequence::setTaskId int  i,
int  value
 

Sets a task id at the given position in a sequence.

Parameters:
i index of the task id
value value to set
Definition at line 75 of file sequence.cpp.

References idList.

int Sequence::size  ) 
 

Gets the size/length of the sequence.

Returns:
size of the sequence
Definition at line 101 of file sequence.cpp.

References idList.


Member Data Documentation

vector<int> Sequence::idList [protected]
 

Definition at line 42 of file sequence.hpp.

Referenced by getTaskId(), loadFromFile(), operator[](), setTaskId(), and size().


The documentation for this class was generated from the following files:
Generated on Fri Dec 17 14:54:31 2004 for Psychological Test Framework by doxygen 1.3.8