Choreonoid  1.8
Public Member Functions | Protected Attributes | List of all members
cnoid::IdPair< T > Class Template Reference

#include <IdPair.h>

Public Member Functions

 IdPair ()
 
 IdPair (T id0, T id1)
 
 IdPair (const T *src)
 
void set (T id0, T id1)
 
operator() (int which) const
 
operator[] (int which) const
 
T & operator[] (int which)
 
bool operator== (const IdPair &pair2) const
 
bool operator< (const IdPair &pair2) const
 

Protected Attributes

id [2]
 

Constructor & Destructor Documentation

◆ IdPair() [1/3]

template<class T = int>
cnoid::IdPair< T >::IdPair ( )
inline

◆ IdPair() [2/3]

template<class T = int>
cnoid::IdPair< T >::IdPair ( id0,
id1 
)
inline

◆ IdPair() [3/3]

template<class T = int>
cnoid::IdPair< T >::IdPair ( const T *  src)
inline

Member Function Documentation

◆ operator()()

template<class T = int>
T cnoid::IdPair< T >::operator() ( int  which) const
inline

◆ operator<()

template<class T = int>
bool cnoid::IdPair< T >::operator< ( const IdPair< T > &  pair2) const
inline

◆ operator==()

template<class T = int>
bool cnoid::IdPair< T >::operator== ( const IdPair< T > &  pair2) const
inline

◆ operator[]() [1/2]

template<class T = int>
T& cnoid::IdPair< T >::operator[] ( int  which)
inline

◆ operator[]() [2/2]

template<class T = int>
T cnoid::IdPair< T >::operator[] ( int  which) const
inline

◆ set()

template<class T = int>
void cnoid::IdPair< T >::set ( id0,
id1 
)
inline

Member Data Documentation

◆ id

template<class T = int>
T cnoid::IdPair< T >::id[2]
protected

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