humoto
Public Member Functions | Private Attributes | List of all members
humoto::LeftRightContainer< t_Data > Class Template Reference

Detailed Description

template<typename t_Data>
class humoto::LeftRightContainer< t_Data >

Container for two symmetric objects.

Template Parameters
t_Datatype of the objects

Definition at line 58 of file leftright.h.

#include <leftright.h>

Public Member Functions

void copyLeft (const LeftRightContainer< t_Data > &copy_from)
 Get/set/copy left or right object. More...
 
void copyRight (const LeftRightContainer< t_Data > &copy_from)
 Get/set/copy left or right object. More...
 
t_Data & getLeft ()
 Get/set/copy left or right object. More...
 
const t_Data & getLeft () const
 Get/set/copy left or right object. More...
 
t_Data & getRight ()
 Get/set/copy left or right object. More...
 
const t_Data & getRight () const
 Get/set/copy left or right object. More...
 
t_Data & operator[] (const LeftOrRight::Type left_or_right)
 Access the element. More...
 
const t_Data & operator[] (const LeftOrRight::Type left_or_right) const
 Access the element. More...
 
void setLeft (const t_Data &data)
 Get/set/copy left or right object. More...
 
void setRight (const t_Data &data)
 Get/set/copy left or right object. More...
 

Private Attributes

t_Data data [LeftOrRight::COUNT]
 

Member Function Documentation

◆ copyLeft()

template<typename t_Data>
void humoto::LeftRightContainer< t_Data >::copyLeft ( const LeftRightContainer< t_Data > &  copy_from)
inline

Get/set/copy left or right object.

Returns
data object

Definition at line 111 of file leftright.h.

◆ copyRight()

template<typename t_Data>
void humoto::LeftRightContainer< t_Data >::copyRight ( const LeftRightContainer< t_Data > &  copy_from)
inline

Get/set/copy left or right object.

Returns
data object

Definition at line 114 of file leftright.h.

◆ getLeft() [1/2]

template<typename t_Data>
t_Data& humoto::LeftRightContainer< t_Data >::getLeft ( )
inline

Get/set/copy left or right object.

Returns
data object

Definition at line 93 of file leftright.h.

◆ getLeft() [2/2]

template<typename t_Data>
const t_Data& humoto::LeftRightContainer< t_Data >::getLeft ( ) const
inline

Get/set/copy left or right object.

Returns
data object

Definition at line 96 of file leftright.h.

◆ getRight() [1/2]

template<typename t_Data>
t_Data& humoto::LeftRightContainer< t_Data >::getRight ( )
inline

Get/set/copy left or right object.

Returns
data object

Definition at line 99 of file leftright.h.

◆ getRight() [2/2]

template<typename t_Data>
const t_Data& humoto::LeftRightContainer< t_Data >::getRight ( ) const
inline

Get/set/copy left or right object.

Returns
data object

Definition at line 102 of file leftright.h.

◆ operator[]() [1/2]

template<typename t_Data>
t_Data& humoto::LeftRightContainer< t_Data >::operator[] ( const LeftOrRight::Type  left_or_right)
inline

Access the element.

Parameters
[in]left_or_right
Returns
data object

Definition at line 71 of file leftright.h.

◆ operator[]() [2/2]

template<typename t_Data>
const t_Data& humoto::LeftRightContainer< t_Data >::operator[] ( const LeftOrRight::Type  left_or_right) const
inline

Access the element.

Parameters
[in]left_or_right
Returns
data object

Definition at line 81 of file leftright.h.

◆ setLeft()

template<typename t_Data>
void humoto::LeftRightContainer< t_Data >::setLeft ( const t_Data &  data)
inline

Get/set/copy left or right object.

Returns
data object

Definition at line 105 of file leftright.h.

◆ setRight()

template<typename t_Data>
void humoto::LeftRightContainer< t_Data >::setRight ( const t_Data &  data)
inline

Get/set/copy left or right object.

Returns
data object

Definition at line 108 of file leftright.h.

Member Data Documentation

◆ data

template<typename t_Data>
t_Data humoto::LeftRightContainer< t_Data >::data[LeftOrRight::COUNT]
private

Definition at line 61 of file leftright.h.


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