Choreonoid  1.5
Public Member Functions | List of all members
cnoid::Selection Class Reference

#include <Selection.h>

Public Member Functions

 Selection (const char *domainname=0)
 
 Selection (size_t size, const char *domainname=0)
 
int size () const
 
 operator bool () const
 
void resize (int s)
 
void clear ()
 
void setSymbol (int index, const std::string &symbol)
 
Selectionoperator<< (const std::string &symbol)
 
std::string & symbol (int index)
 
const std::string & symbol (int index) const
 
int index (const std::string &symbol) const
 
const char * label (int index) const
 
bool select (int index)
 
bool selectIndex (int index)
 
bool select (const std::string &symbol)
 
int selectedIndex () const
 
int which () const
 
bool is (int index) const
 
const char * selectedSymbol () const
 
const char * selectedLabel () const
 

Constructor & Destructor Documentation

Selection::Selection ( const char *  domainname = 0)
explicit
Selection::Selection ( size_t  size,
const char *  domainname = 0 
)
explicit

Member Function Documentation

void Selection::clear ( )
int Selection::index ( const std::string &  symbol) const
bool cnoid::Selection::is ( int  index) const
inline
const char * Selection::label ( int  index) const
cnoid::Selection::operator bool ( ) const
inline
Selection & Selection::operator<< ( const std::string &  symbol)
void Selection::resize ( int  s)
bool Selection::select ( int  index)
bool Selection::select ( const std::string &  symbol)
int cnoid::Selection::selectedIndex ( ) const
inline
const char * Selection::selectedLabel ( ) const
const char * Selection::selectedSymbol ( ) const
bool Selection::selectIndex ( int  index)
void Selection::setSymbol ( int  index,
const std::string &  symbol 
)
int cnoid::Selection::size ( ) const
inline
std::string& cnoid::Selection::symbol ( int  index)
inline
const std::string& cnoid::Selection::symbol ( int  index) const
inline
int cnoid::Selection::which ( ) const
inline

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