Choreonoid  1.8
Classes | Public Member Functions | Static Public Member Functions | List of all members
cnoid::GeneralId Class Reference

#include <GeneralId.h>

Classes

struct  Hash
 

Public Member Functions

 GeneralId ()
 
 GeneralId (int id)
 
 GeneralId (const std::string &id)
 
 GeneralId (const GeneralId &org)
 
GeneralIdoperator= (const GeneralId &rhs)
 
GeneralIdoperator= (int rhs)
 
GeneralIdoperator= (const std::string &rhs)
 
bool operator== (const GeneralId &rhs) const
 
bool operator!= (const GeneralId &rhs) const
 
bool operator== (int rhs) const
 
bool operator!= (int rhs) const
 
bool operator== (const std::string &rhs) const
 
bool operator!= (const std::string &rhs) const
 
bool isValid () const
 
bool isInt () const
 
bool isString () const
 
int toInt () const
 
const std::string & toString () const
 
std::string label () const
 
bool read (const Mapping &archive, const char *key)
 
bool write (Mapping &archive, const char *key) const
 

Static Public Member Functions

static GeneralId defaultId ()
 

Constructor & Destructor Documentation

◆ GeneralId() [1/4]

cnoid::GeneralId::GeneralId ( )
inline

◆ GeneralId() [2/4]

cnoid::GeneralId::GeneralId ( int  id)
inline

◆ GeneralId() [3/4]

cnoid::GeneralId::GeneralId ( const std::string &  id)
inline

◆ GeneralId() [4/4]

cnoid::GeneralId::GeneralId ( const GeneralId org)
inline

Member Function Documentation

◆ defaultId()

static GeneralId cnoid::GeneralId::defaultId ( )
inlinestatic

◆ isInt()

bool cnoid::GeneralId::isInt ( ) const
inline

◆ isString()

bool cnoid::GeneralId::isString ( ) const
inline

◆ isValid()

bool cnoid::GeneralId::isValid ( ) const
inline

◆ label()

std::string GeneralId::label ( ) const

◆ operator!=() [1/3]

bool cnoid::GeneralId::operator!= ( const GeneralId rhs) const
inline

◆ operator!=() [2/3]

bool cnoid::GeneralId::operator!= ( const std::string &  rhs) const
inline

◆ operator!=() [3/3]

bool cnoid::GeneralId::operator!= ( int  rhs) const
inline

◆ operator=() [1/3]

GeneralId& cnoid::GeneralId::operator= ( const GeneralId rhs)
inline

◆ operator=() [2/3]

GeneralId& cnoid::GeneralId::operator= ( const std::string &  rhs)
inline

◆ operator=() [3/3]

GeneralId& cnoid::GeneralId::operator= ( int  rhs)
inline

◆ operator==() [1/3]

bool cnoid::GeneralId::operator== ( const GeneralId rhs) const
inline

◆ operator==() [2/3]

bool cnoid::GeneralId::operator== ( const std::string &  rhs) const
inline

◆ operator==() [3/3]

bool cnoid::GeneralId::operator== ( int  rhs) const
inline

◆ read()

bool GeneralId::read ( const Mapping archive,
const char *  key 
)

◆ toInt()

int cnoid::GeneralId::toInt ( ) const
inline

◆ toString()

const std::string& cnoid::GeneralId::toString ( ) const
inline

◆ write()

bool GeneralId::write ( Mapping archive,
const char *  key 
) const

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