Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
karto::Size2< T > Class Template Reference

#include <Karto.h>

Public Member Functions

const T GetHeight () const
 
const T GetWidth () const
 
kt_bool operator!= (const Size2 &rOther) const
 
Size2operator= (const Size2 &rOther)
 
kt_bool operator== (const Size2 &rOther) const
 
void SetHeight (T height)
 
void SetWidth (T width)
 
 Size2 ()
 
 Size2 (const Size2 &rOther)
 
 Size2 (T width, T height)
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

m_Height
 
m_Width
 

Friends

class boost::serialization::access
 
std::ostream & operator<< (std::ostream &rStream, const Size2 &rSize)
 

Detailed Description

template<typename T>
class karto::Size2< T >

Represents a size (width, height) in 2-dimensional real space.

Definition at line 872 of file Karto.h.

Constructor & Destructor Documentation

◆ Size2() [1/3]

template<typename T >
karto::Size2< T >::Size2 ( )
inline

Default constructor

Definition at line 878 of file Karto.h.

◆ Size2() [2/3]

template<typename T >
karto::Size2< T >::Size2 ( width,
height 
)
inline

Constructor initializing point location

Parameters
width
height

Definition at line 889 of file Karto.h.

◆ Size2() [3/3]

template<typename T >
karto::Size2< T >::Size2 ( const Size2< T > &  rOther)
inline

Copy constructor

Parameters
rOther

Definition at line 899 of file Karto.h.

Member Function Documentation

◆ GetHeight()

template<typename T >
const T karto::Size2< T >::GetHeight ( ) const
inline

Gets the height

Returns
the height

Definition at line 928 of file Karto.h.

◆ GetWidth()

template<typename T >
const T karto::Size2< T >::GetWidth ( ) const
inline

Gets the width

Returns
the width

Definition at line 910 of file Karto.h.

◆ operator!=()

template<typename T >
kt_bool karto::Size2< T >::operator!= ( const Size2< T > &  rOther) const
inline

Inequality operator

Definition at line 964 of file Karto.h.

◆ operator=()

template<typename T >
Size2& karto::Size2< T >::operator= ( const Size2< T > &  rOther)
inline

Assignment operator

Definition at line 945 of file Karto.h.

◆ operator==()

template<typename T >
kt_bool karto::Size2< T >::operator== ( const Size2< T > &  rOther) const
inline

Equality operator

Definition at line 956 of file Karto.h.

◆ serialize()

template<typename T >
template<class Archive >
void karto::Size2< T >::serialize ( Archive &  ar,
const unsigned int  version 
)
inlineprivate

Definition at line 985 of file Karto.h.

◆ SetHeight()

template<typename T >
void karto::Size2< T >::SetHeight ( height)
inline

Sets the height

Parameters
height

Definition at line 937 of file Karto.h.

◆ SetWidth()

template<typename T >
void karto::Size2< T >::SetWidth ( width)
inline

Sets the width

Parameters
width

Definition at line 919 of file Karto.h.

Friends And Related Function Documentation

◆ boost::serialization::access

template<typename T >
friend class boost::serialization::access
friend

Definition at line 983 of file Karto.h.

◆ operator<<

template<typename T >
std::ostream& operator<< ( std::ostream &  rStream,
const Size2< T > &  rSize 
)
friend

Write Size2 onto output stream

Parameters
rStreamoutput stream
rSizeto write

Definition at line 974 of file Karto.h.

Member Data Documentation

◆ m_Height

template<typename T >
T karto::Size2< T >::m_Height
private

Definition at line 982 of file Karto.h.

◆ m_Width

template<typename T >
T karto::Size2< T >::m_Width
private

Definition at line 981 of file Karto.h.


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


slam_toolbox
Author(s): Steve Macenski
autogenerated on Thu Jan 11 2024 03:37:56