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

#include <Selection.h>

Public Member Functions

 Selection (const char *domainname=nullptr)
 
 Selection (size_t size, const char *domainname=nullptr)
 
 Selection (std::initializer_list< std::string > symbols, const char *domainname=nullptr)
 
 Selection (const Selection &org)
 
Selectionoperator= (const Selection &rhs)
 
int size () const
 
 operator bool () const
 
 operator int () 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() [1/4]

Selection::Selection ( const char *  domainname = nullptr)
explicit

◆ Selection() [2/4]

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

◆ Selection() [3/4]

cnoid::Selection::Selection ( std::initializer_list< std::string >  symbols,
const char *  domainname = nullptr 
)

◆ Selection() [4/4]

Selection::Selection ( const Selection org)

Member Function Documentation

◆ clear()

void Selection::clear ( )

◆ index()

int Selection::index ( const std::string &  symbol) const

◆ is()

bool cnoid::Selection::is ( int  index) const
inline

◆ label()

const char * Selection::label ( int  index) const

◆ operator bool()

cnoid::Selection::operator bool ( ) const
inlineexplicit

◆ operator int()

cnoid::Selection::operator int ( ) const
inline

◆ operator<<()

Selection & Selection::operator<< ( const std::string &  symbol)

◆ operator=()

Selection & Selection::operator= ( const Selection rhs)

◆ resize()

void Selection::resize ( int  s)

◆ select() [1/2]

bool Selection::select ( const std::string &  symbol)

◆ select() [2/2]

bool Selection::select ( int  index)

◆ selectedIndex()

int cnoid::Selection::selectedIndex ( ) const
inline

◆ selectedLabel()

const char * Selection::selectedLabel ( ) const

◆ selectedSymbol()

const char * Selection::selectedSymbol ( ) const

◆ selectIndex()

bool Selection::selectIndex ( int  index)

◆ setSymbol()

void Selection::setSymbol ( int  index,
const std::string &  symbol 
)

◆ size()

int cnoid::Selection::size ( ) const
inline

◆ symbol() [1/2]

std::string& cnoid::Selection::symbol ( int  index)
inline

◆ symbol() [2/2]

const std::string& cnoid::Selection::symbol ( int  index) const
inline

◆ which()

int cnoid::Selection::which ( ) const
inline

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