In file ../include/EST_TrackMap.h:

class EST_TrackMap

Track maps provide a mapping from symbolic track names to the actual position of the information within a track frame.

Inheritance:


Public Classes

[more] ChannelMapping

[more]struct ChannelMappingElement
structure for the table
[more] Table of type to position pairs

Public Methods

[more] EST_TrackMap (void)
Default constructor
[more] EST_TrackMap (EST_TrackMap &from, int refcount)
Copy the mapping
[more] EST_TrackMap (struct ChannelMappingElement map[])
Create from static table
[more]void clear (void)
Empty the map
[more]void set (EST_ChannelType type, short pos)
Record the position of a channel
[more]short get (EST_ChannelType type) const
Get the position of a channel
[more]short operator() (EST_ChannelType type) const
Get the position of a channel
[more]bool has_channel (EST_ChannelType type) const
Does the mapping contain a position for this channel?
[more]short last_channel (void) const
Returns the index of the last known channel
[more]EST_ChannelType channel_type (unsigned short channel) const
Returns the type of the channel at the given position

Public

[more]#define NO_SUCH_CHANNEL (-1)
Returned if we ask for a channel not in the map

Protected Methods

[more] EST_TrackMap (int refcount)
Creation function used by friends to create refcounted maps
[more] EST_TrackMap (const EST_TrackMap* parent, int offset, int refcount)
Creation function used by friends to create sub-trak maps
[more]void copy (EST_TrackMap &from)
copy an exiting map
[more]void init (void)
Initialise the map

Protected

[more]#define EST_TM_REFCOUNTED (1)
Pass to creation function to turn on refcounting


Inherited from EST_Handleable:


Documentation

Track maps provide a mapping from symbolic track names to the actual position of the information within a track frame. The symbolic names are defined by the EST_ChannelType enumerated type.

Track maps can be declared statically by code which always uses tracks of a given style, or they can be built at run time as is done by lpc_analysis to record whichinformation the user has requested. Finally they can be constructed by the Track itself from the names of the channels, for instance when a track has just been read in from a file.

o ChannelMapping
An auxiliary type used just to define static EST_TrackMaps. Defining one of these and then converting it to an EST_TrackMap is, unfortunatly, the only way C++ allows to define a constant EST_TrackMap.

ostruct ChannelMappingElement
structure for the table

o Table of type to position pairs
Table of type to position pairs

o#define NO_SUCH_CHANNEL(-1)
Returned if we ask for a channel not in the map

o#define EST_TM_REFCOUNTED(1)
Pass to creation function to turn on refcounting

o EST_TrackMap(int refcount)
Creation function used by friends to create refcounted maps

o EST_TrackMap(const EST_TrackMap* parent, int offset, int refcount)
Creation function used by friends to create sub-trak maps

ovoid copy(EST_TrackMap &from)
copy an exiting map

ovoid init(void)
Initialise the map

o EST_TrackMap(void)
Default constructor

o EST_TrackMap(EST_TrackMap &from, int refcount)
Copy the mapping

o EST_TrackMap(struct ChannelMappingElement map[])
Create from static table

ovoid clear(void)
Empty the map

ovoid set(EST_ChannelType type, short pos)
Record the position of a channel

oshort get(EST_ChannelType type) const
Get the position of a channel

oshort operator() (EST_ChannelType type) const
Get the position of a channel

obool has_channel(EST_ChannelType type) const
Does the mapping contain a position for this channel?

oshort last_channel(void) const
Returns the index of the last known channel

oEST_ChannelType channel_type(unsigned short channel) const
Returns the type of the channel at the given position


This class has no child classes.
Friends:
class EST_Track
ostream& operator << (ostream &st, const EST_TrackMap &m)
Author:
Richard Caley <rjc@cstr.ed.ac.uk>
Version:
See Also:
EST_Track
EST_ChannelType
EST_TrackMap:example

Alphabetic index HTML hierarchy of classes or Java


This page is part of the Edinburgh Speech Tools Library documentation
Copyright University of Edinburgh 1997
Contact: speech_tools@cstr.ed.ac.uk