Tide 0.1.0
Public Member Functions | Protected Member Functions | Protected Attributes | Friends

tide::TrackJoinBlocks Class Reference

JoinBlocks track operation. More...

#include <tide/track_operation.h>

Inheritance diagram for tide::TrackJoinBlocks:
Inheritance graph
[legend]
Collaboration diagram for tide::TrackJoinBlocks:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TrackJoinBlocks ()
 Construct a new JoinBlocks operation.
 ~TrackJoinBlocks ()
 Destructor.
std::string type () const
 Get the type of operation to be performed.
void append (uint64_t uid)
 Append a new UID to this operation.
uint64_t remove (unsigned int pos)
 Remove a UID.
uint64_t operator[] (unsigned int pos) const
 Const subscript operator.
unsigned int count () const
 Get the number of UIDs stored.
virtual std::streamsize write_body (std::ostream &output)
 TODO: Proper vector model for UIDs.

Protected Member Functions

virtual std::streamsize body_size () const
 Get the size of the body of this element.
virtual std::streamsize read_body (std::istream &input, std::streamsize size)
 Element body loading.

Protected Attributes

std::vector< UIntElementuids_

Friends

bool operator== (TrackJoinBlocks const &lhs, TrackJoinBlocks const &rhs)
 Equality operator.

Detailed Description

JoinBlocks track operation.

This track operation is used to join the blocks of the source tracks into a single virtual track. Usually it is used to join tracks that are distinct in time. Joining tracks overlapped in time will lead to interleaved blocks of data at best and undefined results at worst, and should be avoided.

Definition at line 78 of file track_operation.h.


Constructor & Destructor Documentation

tide::TrackJoinBlocks::TrackJoinBlocks ( )

Construct a new JoinBlocks operation.

tide::TrackJoinBlocks::~TrackJoinBlocks ( ) [inline]

Destructor.

Definition at line 86 of file track_operation.h.


Member Function Documentation

void tide::TrackJoinBlocks::append ( uint64_t  uid)

Append a new UID to this operation.

Parameters:
[in]uidThe UID to append.
Exceptions:
ValueOutOfRangeif a zero-value UID is appended.
virtual std::streamsize tide::TrackJoinBlocks::body_size ( ) const [protected, virtual]

Get the size of the body of this element.

Implements tide::Element.

unsigned int tide::TrackJoinBlocks::count ( ) const [inline]

Get the number of UIDs stored.

Definition at line 115 of file track_operation.h.

uint64_t tide::TrackJoinBlocks::operator[] ( unsigned int  pos) const

Const subscript operator.

Gets the UID at the specified position.

virtual std::streamsize tide::TrackJoinBlocks::read_body ( std::istream &  input,
std::streamsize  size 
) [protected, virtual]

Element body loading.

Implements tide::Element.

uint64_t tide::TrackJoinBlocks::remove ( unsigned int  pos)

Remove a UID.

Parameters:
[in]posThe position of the UID to remove.
Returns:
The removed UID.
std::string tide::TrackJoinBlocks::type ( ) const [inline, virtual]

Get the type of operation to be performed.

Implements tide::TrackOperationBase.

Definition at line 89 of file track_operation.h.

virtual std::streamsize tide::TrackJoinBlocks::write_body ( std::ostream &  output) [virtual]

TODO: Proper vector model for UIDs.

Element body writing.

Exceptions:
ValueOutOfRangeif a zero-value UID is written.

Implements tide::Element.


Friends And Related Function Documentation

bool operator== ( TrackJoinBlocks const &  lhs,
TrackJoinBlocks const &  rhs 
) [friend]

Equality operator.

Definition at line 142 of file track_operation.h.


Member Data Documentation

std::vector<UIntElement> tide::TrackJoinBlocks::uids_ [protected]

Definition at line 130 of file track_operation.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines