OpenWalnut  1.4.0
Public Member Functions | Private Attributes
WEEG2Segment Class Reference

Class which contains one segment of an EEG recording, read from a WPagerEEG. More...

#include <WEEG2Segment.h>

List of all members.

Public Member Functions

 WEEG2Segment (std::size_t segmentID, boost::shared_ptr< WPagerEEG > pager)
 Constructor.
std::size_t getNumberOfSamples () const
 Get the number of samples this segment consists of.
boost::shared_ptr
< WEEGValueMatrix
getValues (std::size_t start, std::size_t length) const
 Get the values of all channels for a given sample range.

Private Attributes

std::size_t m_segmentID
 number of this segment
boost::shared_ptr< WPagerEEGm_pager
 pager class which contains the data, read from a file on demand
std::size_t m_nbSamples
 number of samples this segment consists of

Detailed Description

Class which contains one segment of an EEG recording, read from a WPagerEEG.

Definition at line 41 of file WEEG2Segment.h.


Constructor & Destructor Documentation

WEEG2Segment::WEEG2Segment ( std::size_t  segmentID,
boost::shared_ptr< WPagerEEG pager 
)

Constructor.

Parameters:
segmentIDnumber of this segment
pagerpager class which contains the data, read from a file on demand

Definition at line 39 of file WEEG2Segment.cpp.

References m_nbSamples, m_pager, m_segmentID, and WRecording::MAX_RECORDING_SAMPLES.


Member Function Documentation

std::size_t WEEG2Segment::getNumberOfSamples ( ) const

Get the number of samples this segment consists of.

Returns:
number of samples

Definition at line 62 of file WEEG2Segment.cpp.

References m_nbSamples.

boost::shared_ptr< WEEGValueMatrix > WEEG2Segment::getValues ( std::size_t  start,
std::size_t  length 
) const

Get the values of all channels for a given sample range.

Parameters:
startstart sample of the sample range
lengthlength of the sample range
Returns:
matrix of values

Definition at line 67 of file WEEG2Segment.cpp.

References m_pager, and m_segmentID.


Member Data Documentation

std::size_t WEEG2Segment::m_nbSamples [private]

number of samples this segment consists of

Definition at line 73 of file WEEG2Segment.h.

Referenced by getNumberOfSamples(), and WEEG2Segment().

boost::shared_ptr< WPagerEEG > WEEG2Segment::m_pager [private]

pager class which contains the data, read from a file on demand

Definition at line 72 of file WEEG2Segment.h.

Referenced by getValues(), and WEEG2Segment().

std::size_t WEEG2Segment::m_segmentID [private]

number of this segment

Definition at line 71 of file WEEG2Segment.h.

Referenced by getValues(), and WEEG2Segment().


The documentation for this class was generated from the following files: