Ocean
Ocean::Devices::Measurement::Sample Class Reference

Definition of a sample holding a measurement. More...

Inheritance diagram for Ocean::Devices::Measurement::Sample:

Public Member Functions

const Timestamptimestamp () const
 Returns the sample timestamp. More...
 
const ObjectIdsobjectIds () const
 Returns the sample object ids specifying possible different measurement units. More...
 
const Metadatametadata () const
 Returns the metadata of this sample. More...
 

Protected Member Functions

 Sample (const Timestamp &timestamp, const ObjectIds &objectIds, const Metadata &metadata=Metadata())
 Creates a new measurement sample. More...
 
 Sample (const Timestamp &timestamp, ObjectIds &&objectIds, Metadata &&metadata=Metadata())
 Creates a new measurement sample. More...
 
virtual ~Sample ()
 Destructs a sample. More...
 

Protected Attributes

Timestamp timestamp_
 Sample timestamp. More...
 
ObjectIds objectIds_
 Measurement unit object ids. More...
 
Metadata metadata_
 The metadata of this sample. More...
 

Friends

class ObjectRef< Sample >
 

Detailed Description

Definition of a sample holding a measurement.

Constructor & Destructor Documentation

◆ Sample() [1/2]

Ocean::Devices::Measurement::Sample::Sample ( const Timestamp timestamp,
const ObjectIds objectIds,
const Metadata metadata = Metadata() 
)
protected

Creates a new measurement sample.

Parameters
timestampSample timestamp
objectIdsObject ids corresponding to different measurement units of one tracker
metadataOptional metadata of the new sample

◆ Sample() [2/2]

Ocean::Devices::Measurement::Sample::Sample ( const Timestamp timestamp,
ObjectIds &&  objectIds,
Metadata &&  metadata = Metadata() 
)
protected

Creates a new measurement sample.

Parameters
timestampSample timestamp
objectIdsObject ids corresponding to different measurement units of one tracker
metadataOptional metadata of the new sample

◆ ~Sample()

virtual Ocean::Devices::Measurement::Sample::~Sample ( )
protectedvirtual

Destructs a sample.

Member Function Documentation

◆ metadata()

const Measurement::Metadata & Ocean::Devices::Measurement::Sample::metadata ( ) const
inline

Returns the metadata of this sample.

Returns
The sample's meta data

◆ objectIds()

const Measurement::ObjectIds & Ocean::Devices::Measurement::Sample::objectIds ( ) const
inline

Returns the sample object ids specifying possible different measurement units.

Returns
Object ids

◆ timestamp()

const Timestamp & Ocean::Devices::Measurement::Sample::timestamp ( ) const
inline

Returns the sample timestamp.

Returns
Sample timestamp

Friends And Related Function Documentation

◆ ObjectRef< Sample >

friend class ObjectRef< Sample >
friend

Field Documentation

◆ metadata_

Metadata Ocean::Devices::Measurement::Sample::metadata_
protected

The metadata of this sample.

◆ objectIds_

ObjectIds Ocean::Devices::Measurement::Sample::objectIds_
protected

Measurement unit object ids.

◆ timestamp_

Timestamp Ocean::Devices::Measurement::Sample::timestamp_
protected

Sample timestamp.


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